![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Hobbyist Programmer
Join Date: Oct 2005
Location: Ohio
Posts: 177
Rep Power: 0
![]() |
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! |
|
|
|
|
|
#2 |
|
Hobbyist Programmer
|
Just so you know, it's "bored" not "board".
|
|
|
|
|
|
#3 |
|
Hobbyist Programmer
Join Date: Oct 2005
Location: Ohio
Posts: 177
Rep Power: 0
![]() |
Oops. It's a typo.
|
|
|
|
|
|
#4 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
For those who are bored, there's a tic-tac-toe game contest ending the first. Care to take a shot?
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code. Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers |
|
|
|
|
|
#5 | |
|
Hobbyist Programmer
Join Date: Oct 2005
Location: Ohio
Posts: 177
Rep Power: 0
![]() |
Quote:
|
|
|
|
|
|
|
#6 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
Right here. Search the forum for the original thread.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code. Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers |
|
|
|
|
|
#7 |
|
Programming Guru
![]() Join Date: Oct 2004
Location: namespace std
Posts: 1,246
Rep Power: 5
![]() |
silly me: double post correction...
__________________
i put on my robe and wizard hat... Have you ever heard of Plato, Aristotle, Socrates?...Morons. |
|
|
|
|
|
#8 |
|
Programming Guru
![]() Join Date: Oct 2004
Location: namespace std
Posts: 1,246
Rep Power: 5
![]() |
concept: have "e" and "pi" battle each other and see who wins.
:p
__________________
i put on my robe and wizard hat... Have you ever heard of Plato, Aristotle, Socrates?...Morons. |
|
|
|
|
|
#9 |
|
Professional Programmer
Join Date: May 2005
Location: Bad Nauheim, Germany
Posts: 436
Rep Power: 4
![]() |
Euler rules!!
__________________
-Steven "Is this a piece of your brain?" - Basil Fawlty |
|
|
|
|
|
#10 |
|
Programmer
Join Date: Mar 2005
Location: Washington
Posts: 89
Rep Power: 4
![]() |
I was actually making a tic tac toe game right now, didn't know you guys had a small contest on that.
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|