![]() |
| | #1 |
| Registered User Join Date: Apr 2005
Posts: 1,342
| 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. Rules: 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: packets.awardspace.com/aicontest.z Ziped with WinZip32 as usual. Last edited by Queatrix; 04-11-2006 at 02:54 PM. |
| Queatrix is offline | |
| | #2 |
| Registered User Join Date: Jun 2005 Location: New York
Posts: 1,465
| Brknlink.
__________________ ╔╗╔╦══╦╗╔╦══╦╗ ║╚╝║╔╗║╚╝║╔╗║║ ║╔╗║╠╣║╔╗║╠╣╠╣ ╚╝╚╩╝╚╩╝╚╩╝╚╩╝ codez http://code.google.com/p/zxcvbn/ |
| Tonto is offline | |
| | #3 |
| +++ OK NO CARRIER Join Date: Oct 2001
Posts: 10,262
| Code: x = startingposition;
y = rand()%2;
while( !dead )
{
if( y )
{
while( x < WIDTH )
{
shoot( );
x++;
}
}
do
{
shoot( );
x--;
} while( x != 0 );
y = 1;
}
[edit] New and improved! 50% trickier! [/edit] Quzah.
__________________ Hundreds of thousands of dipshits can't be wrong. Are you up for the suck? Last edited by quzah; 01-18-2007 at 03:44 PM. |
| quzah is offline | |
| | #4 |
| The larch Join Date: May 2006
Posts: 3,082
| 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. |
| anon is offline | |
| | #5 |
| int x = *((int *) NULL); Join Date: Jul 2003 Location: Banks of the River Styx
Posts: 891
| 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) |
| Cactus_Hugger is offline | |
![]() |
| Thread Tools | |
| Display Modes | |
|
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Programmer Needed for 72 Hour Game Creation Contest | im9today | Projects and Job Recruitment | 2 | 07-14-2006 07:41 AM |
| New AI contest: sign up | Sang-drax | Contests Board | 20 | 07-27-2005 05:54 PM |
| chess ai contest | Raven Arkadon | Contests Board | 7 | 07-09-2005 06:38 AM |
| 72 hour game development contest | jverkoey | Contests Board | 1 | 12-17-2003 11:50 PM |
| Ai | bobthemighty | Game Programming | 18 | 05-18-2002 11:44 PM |