@Geobits I think I found a bug at GenericPack:112 and GenericPack117. If there are no prey in sight, the line is blank but the tokens array has a length of 1. Since tokens.length/2 is 0.5 which is greater than 0, it enters the for loop and throws an exception on Double.valueOf. I fixed it by adding tokens.length>1&& to the for loop condition.
@FGreg Hmm. Does that actually happen? I've been using it with no exceptions being thrown so far, and I know for certain there are no prey visible on the first round at the very least. Java uses integer division by default, so 1/2=0 and it shouldn't enter the loop at all.
@FGreg You didn't happen to grab my source when it was still in the sandbox, did you? I has a similar issue with it, but it was caused by the controller side. It was fixed in a commit on the 11th, though, so if you got it after that, that wouldn't be it.
I know nothing about groovy, to be honest. If it's trying to use "real" division, that would make sense. Glad you got it working with a simple addition, though.
You might want to hit lines 82 & 97 also. Those shouldn't ever be empty, but being sure never hurts.
Some people have given their testers a list of programs to run, and others just say "look in this directory and run all of the programs in it against each other" or something
For example, if I'm making a KOTH, I write the tester. This program takes as input a list of files. It outputs the scores. I post this on my question in the form of a scoreboard.
You are required to write a Hangman solver. Testing against this English word list[1], the solver that solves the most number of words wins, with the number of total incorrect guesses being the tie-breaker. All words in the word list will be tested in random order.
[1]: This word list is taken f...
Easter Egg Hunt
Bot find egg before bunny find egg. Bot happy.
Overview
This is a king-of-the-hill challenge in honor of Easter and the Easter egg hunting tradition!
Your bot has a vision of two spaces in every direction, including diagonals, creating a 5x5 square around you that you can see....
IMO, iterated two-player games are fine as KotH. BattleBots ran that way, and I don't see the need for a separate tag. There just aren't that many of them. I'd say if you're pitting 2+ programs against each other, it's good, no matter whether they're all at once, bracket style, roud-robin, whatever.
@Doorknob That's a recent variation. Originally King of the Hill was 2-player games. The name comes from a children's game in which you become king of the hill by knocking off the previous incumbent.
Write a program that prints the following 80-character line:
This program from codegolf.stackexchange.com permutes itself to encode a string.
then accepts one line of input, then prints its source code with its code points possibly reordered (none added and none deleted). When that code is ...