Thread: "Poker" AI competition

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

    "Poker" AI competition

    Does anyone remember the Connect Four AI competition I held.. umm.. more than 5 years ago?

    Connect Four: The Tournament Results

    Anyway, I remembered that competition today and I thought it would be fun to hold another. This time the game is Poker... or a simplified version of it.

    Rules
    1. Each player is dealt a hand, which is a uniformly random real number between 0 and 1.
    2. The highest number wins
    3. The first player has to bet 1, which is the big blind.
    4. The players then makes their decisions: check, fold or raise
    5. When every player has either checked or folded, the player with the highest number takes the pot
    6. Regular Hold'em rules apply for all-in
    7. The data type of money is integer.


    Code
    To enter the contest, implement the following function:
    Code:
    int make_bet(int my_id, float my_hand, const GameInfo&  game_info)
    {
       return INT_MAX; //Always all-in
    }
    Where the struct GameInfo looks like this:
    Code:
    struct GameInfo
    {
    int num_players;
    
    int* money; //Chip count for each player (including myself) 
    bool* has_folded; //What players are still in play
    int* has_bet; //What each player has betted
    int curr_max_bet; //Current highest bet
    };
    To check, the function make_bet must return (curr_max_bet - has_bet[my_id]). A smaller bet will be converted into a fold. A bet higher than money[my_id] will be converted to all-in.

    You may use static variables to allocate lots of memory to keep track of your opponents previous moves. This page will probably be edited as people as questions etc.

    Please write in this thread if you plan to enter, so that others know whether this is worth spending time on. The deadline for submissions is April 1st by PM.
    Last edited by Sang-drax; 02-27-2010 at 06:28 PM. Reason: Sign error + grammar
    Last edited by Sang-drax : Tomorrow at 02:21 AM. Reason: Time travelling

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Simple space combat AI
    By VirtualAce in forum Game Programming
    Replies: 5
    Last Post: 01-06-2009, 12:54 AM
  2. chess ai contest
    By Raven Arkadon in forum Contests Board
    Replies: 7
    Last Post: 07-09-2005, 06:38 AM
  3. AI Contest Proposal
    By MadCow257 in forum Contests Board
    Replies: 4
    Last Post: 03-13-2005, 03:27 PM
  4. Game Design Topic #1 - AI Behavior
    By TechWins in forum Game Programming
    Replies: 13
    Last Post: 10-11-2002, 10:35 AM
  5. Technique of all board-like games?
    By Nutshell in forum Game Programming
    Replies: 28
    Last Post: 04-24-2002, 08:19 AM