Thread: AI contest: Connect four

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    S Sang-drax's Avatar
    Join Date
    May 2002
    Location
    Göteborg, Sweden
    Posts
    2,072

    AI contest: Connect four

    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:
    Code:
    namespace Nickname{
        int getMove( const Board& board, char player );
    }
    The board argument will contain the playing field. The source code for this class will be provided below.
    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:
    Code:
    namespace ImLazy{
        int getMove( const Board& board, char player ){
            return std::rand()%Board::width;
        }
    }
    Deadline
    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.
    Last edited by Sang-drax; 11-17-2004 at 03:51 PM.
    Last edited by Sang-drax : Tomorrow at 02:21 AM. Reason: Time travelling

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Action Game - AI Contest
    By Queatrix in forum Contests Board
    Replies: 4
    Last Post: 01-18-2007, 06:55 PM
  2. New AI contest: sign up
    By Sang-drax in forum Contests Board
    Replies: 20
    Last Post: 07-27-2005, 05:54 PM
  3. chess ai contest
    By Raven Arkadon in forum Contests Board
    Replies: 7
    Last Post: 07-09-2005, 06:38 AM
  4. AI Contest Proposal
    By MadCow257 in forum Contests Board
    Replies: 4
    Last Post: 03-13-2005, 03:27 PM
  5. Game Design Topic #1 - AI Behavior
    By TechWins in forum Game Programming
    Replies: 13
    Last Post: 10-11-2002, 10:35 AM