|
Game
Let's play a game. For those of you who are board this will be a great way to kill your boardness. (sort of) Anyways, the game goes like this:
Write a program where two insects battle eachother. Easy enough? Not really. The catch is that the program must be a console program and that the insects can only do the following things: turn left, turn right, move (insect moves in current direction), and bite (this kills the other insect). Both players must be computer controlled. And one more thing. Cram this code into as few lines as possible. Whoever writes the program with the fewest lines of code wins. You can write the program in C, C++, Java, or Perl. Good luck!
|