News for hackers. Stuff that matters.
Re:Honeypot code challenge by mlitchard on Friday August 07, 2015 @02:29PM (#10024102)
I do like doing these things for fun. Unfortunately they restrict language choice. And the languages available, while useful, aren't fun. In other words, "Where the Haskell at?"
Re:Honeypot code challenge by ark_aung on Friday August 07, 2015 @09:35PM (#10025993)
Exactly! Where is Haskell at??
Re:Honeypot code challenge by benmcnelly on Friday August 07, 2015 @09:30AM (#10022297)
Nice try future robot overlords. You have Ai, write your own code..
Re:Honeypot code challenge by Sumaso on Friday August 07, 2015 @10:01AM (#10022509)
I managed to get 845 on the first level, using horrible horrible hard coding.

Anyone do better? Or get a real dynamic solution?

Re:Honeypot code challenge by FooNull on Tuesday August 11, 2015 @03:42AM (#10039577)
I didn't beat your score on level 1, but I did create a dynamic solution in javascript. You can view it at http://pastebin.com/wMVyqvz3 (copy and paste the code into honeypot and switch the language setting to js, obviously).

My script builds a map of the level as the robot drives around, using information from the lidar scans with each step. It can then use this map to seek out unknown areas, plan movements, detect enemy movement on all 4 sides, lots of things

The framework is relatively robust. Feel free to erase my `exports.update` function and write your own. As long as you use the custom tank.forward(), tank.shoot(), tank.turn_right() (etc) functions instead of calling their api, it will build a reliable map that you can reference for better decision making.

If you want to see an ASCII version of the robot's internal view of the map, change the `var verbose = false;` to true at the top of the script. But this tends to make my browser lag after the ~60th step. So much output! But it also gives you a step-by-step breakdown of the logic for why it's making each decision. Which is interesting to watch, and useful for debugging.

The whole thing is pretty messy. And I'd like to clean it up, but after 3 days and not getting anything else accomplished in my life (like work) I need stop for a while. It was a fun proof of concept for mapping.

Re:Honeypot code challenge by NicoJuicy on Friday August 07, 2015 @01:01PM (#10023544)
Got a pretty simple solution for level 1: http://honeypot.softwareskills.se/#/contest/5587cf988a4c5edb...

840 score and 36 LoC, good enough

Re:Honeypot code challenge by ForFreedom on Friday August 07, 2015 @11:28AM (#10022999)
You did that in what code?
Re:Honeypot code challenge by imauld on Friday August 07, 2015 @10:37AM (#10022708)
Classic humans.

We are being overrun by robots! I guess we could build a robot tank to fight the robots...

Re:Honeypot code challenge by babo on Friday August 07, 2015 @08:13AM (#10021979)
Python3 framework is broken: SystemError: E:Unable to read /etc/apt/apt.conf.d/ - opendir (13: Permission denied)
Re:Honeypot code challenge by hartjer on Friday August 07, 2015 @11:25AM (#10022981)
Weird, at first it never seemed to run any code no matter what I put in (js/java/python/c++), but after a few refreshes it started to work for me.
Re:Honeypot code challenge by babo on Friday August 07, 2015 @01:02PM (#10023552)
It's fixed now.
Re:Honeypot code challenge by yAnonymous on Friday August 07, 2015 @11:07AM (#10022845)
There goes my weekend.
Re:Honeypot code challenge by hislaziness on Friday August 07, 2015 @08:04AM (#10021958)
Sounds familiar. Robocode, c++ robots, c robots?
Re:Honeypot code challenge by coderu on Friday August 07, 2015 @12:06PM (#10023238)
Re:Honeypot code challenge by ForFreedom on Friday August 07, 2015 @11:13AM (#10022890)
php, c?