Thread: Action Game - AI Contest

  1. #1
    Registered User Queatrix's Avatar
    Join Date
    Apr 2005

    Lightbulb Action Game - AI Contest

    None of the AI contests here seem to action related. So I'll announce one.

    I don't know what this kind of game is called. It's where two players control their ship and attempt to destroy each other by shooting. (One on top and one on bottom.) Each player can only go right n' left. So I guess this is more the Galaxin type game.

    1. Your script goes right in between the comments "Here we begin our player 1 AI" and "Here we end our player 1 AI". Or during testing player 2.
    2. You may NOT alter any variables unless you created them or if it's the var 'a'.
    3. If your code contains infinite loops or causes the computer to crash, you will be DQ.
    Everyone’s AI will be tested against everyone elses AI. For every win you get 1 point. The AI with the most points win!

    You can download the script with the dev project at:
    Ziped with WinZip32 as usual.
    Last edited by Queatrix; 04-11-2006 at 02:54 PM.

  2. #2
    Registered User Tonto's Avatar
    Join Date
    Jun 2005
    New York

  3. #3
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    x = startingposition;
    y = rand()%2;
    while( !dead )
        if( y )
            while( x < WIDTH )
                shoot( );
            shoot( );
        } while( x != 0 );
        y = 1;
    There's mine.

    New and improved! 50% trickier!

    Last edited by quzah; 01-18-2007 at 03:44 PM.
    Hope is the first step on the road to disappointment.

  4. #4
    The larch
    Join Date
    May 2006
    Unfortunately the link is broken. It would be interesting to see how you are planning to implement it. For example, what do I know about the opponent (if I don't know its interface, how can I know anything about it?) If I can "see" a missile coming, what would stop me from "teleporting" to safety? Or turning on a "shield" that makes me indestructible? Or using weapons that cause massive damage? Etc.

    One way I can imagine, if you wrote the full test loop and a full interface to a "Ship" base class, and each contestant can write their derived ship, where the only method they are allowed to override is choose_action()...
    Last edited by anon; 01-18-2007 at 04:26 PM.

  5. #5
    int x = *((int *) NULL); Cactus_Hugger's Avatar
    Join Date
    Jul 2003
    Banks of the River Styx
    Since this was posted in April of last year, it somehow doesn't surprise me that the link is dead...
    But we haven't had a contest in a while (although there is the DEADBEEF thread), but if this is to go anywhere, the OP might need to know it's being posted to.
    long time; /* know C? */
    Unprecedented performance: Nothing ever ran this slow before.
    Any sufficiently advanced bug is indistinguishable from a feature.
    Real Programmers confuse Halloween and Christmas, because dec 25 == oct 31.
    The best way to accelerate an IBM is at 9.8 m/s/s.
    recursion (re - cur' - zhun) n. 1. (see recursion)

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Programmer Needed for 72 Hour Game Creation Contest
    By im9today in forum Projects and Job Recruitment
    Replies: 2
    Last Post: 07-14-2006, 07:41 AM
  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. 72 hour game development contest
    By jverkoey in forum Contests Board
    Replies: 1
    Last Post: 12-17-2003, 11:50 PM
  5. Ai
    By bobthemighty in forum Game Programming
    Replies: 18
    Last Post: 05-18-2002, 11:44 PM