Thread: Game
View Single Post
Old Oct 29th, 2005, 10:45 PM   #1
frankish
Hobbyist Programmer
 
frankish's Avatar
 
Join Date: Oct 2005
Location: Ohio
Posts: 177
Rep Power: 0 frankish is an unknown quantity at this point
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!
frankish is offline   Reply With Quote