OK, time for a new competion!
The last one was perhaps finished and judged a little abruptly, but I blame force majeure.
This time the task will be to write an AI for a well-known and simple board game -- connect four.
You will each write your own AI and your programs will face each other in a virtual tournament until one program is the winner!
I thought it'd be fun with a virtual tournament, and connect four is a relatively simple game to write AI for.
The function prototype will be the following:
The board argument will contain the playing field. The source code for this class will be provided below.Code:namespace Nickname{ int getMove( const Board& board, char player ); }
The player argument will be either 'X' or 'O' depending on what character belongs to you.
The function will return the column where you wish to move your next piece.
Rules:
- Don't take long time to determine your move, it's impossible to set any fixed time constraints, but the moves should be made "instantly".
- The program who defeats the other programs in a tournament will be the winner.
Participation
As this contest requires a little more work than the others, please announce in this thread if you are willing to participate. Then, when you know the number of participants you can decide if it's worth the time and effort to write the program.
Here's a list of interested persons The persons in bold have submitted:
- Jeremy G
- PJYelton
- LuckY
- jlou
- goodvelo
- vasanth
- Perspective
If you are on this list but won't submit anything, please let me know.
You don't have to write a super-advanced algorithm. You could just do:
DeadlineCode:namespace ImLazy{ int getMove( const Board& board, char player ){ return std::rand()%Board::width; } }
The deadline is November 10th.
Post your submissions to p 0 4 p s t (a) efd.lth.se or by PM
I'll confirm each submission I recieve.