Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Sep 26th, 2005, 8:18 PM   #1
Dameon
Troll
 
Dameon's Avatar
 
Join Date: Apr 2005
Location: Texas
Posts: 732
Rep Power: 4 Dameon is on a distinguished road
Autonomous Game Agent - A simple programming game

Seeing that this is a programming forum, I thought that it would be nice to have a simple competition.

General Overview:
1. Each player writes a small program to control his or her actions within the game
2. The bots are posted (Source only)
3. The bots duke it out over several rounds of whatever game it is, and the results are posted.

Any language is acceptable, as long as it can write to standard output and read from standard input. My server app will redirect these and use them for communication.

The different games have yet to be determined. Any ideas? I was thinking a simple shooter game, basically search and destroy, and maybe Scotland Yard.
__________________
MD5(sig) = bcef75433db02e9ad9bf81d6f7c5c270
Dameon is offline   Reply With Quote
Old Sep 26th, 2005, 9:20 PM   #2
Sane
Programming Guru
 
Sane's Avatar
 
Join Date: Apr 2005
Posts: 1,799
Rep Power: 5 Sane will become famous soon enough
Sounds exciting. I'm in.

I'll be able to do just this once someone answers how to save a snapshotted picture in a long-forgotten thread of mine.
Sane is offline   Reply With Quote
Old Sep 26th, 2005, 10:12 PM   #3
iignotus
Professional Programmer
 
iignotus's Avatar
 
Join Date: Apr 2005
Location: Nowhere Special
Posts: 466
Rep Power: 4 iignotus is on a distinguished road
Send a message via AIM to iignotus
Didn't someone just do this? Like, a company, in real life?
__________________
% rc4 hexkey < input > output
#define S ,t=s[i],s[i]=s[j],s[j]=t /* rc4 hexkey <file */
unsigned char k[256],s[256],i,j,t;main(c,v,e)char**v;{++v;while(++i)s[ 
i]=i;for(c=0;*(*v)++;k[c++]=e)sscanf((*v)++-1,"%2x",&e);while(j+=s[i]
+k[i%c]S,++i);for(j=0;c=~getchar();putchar(~c^s[t+=s[i]]))j+=s[++i]S;}
iignotus is offline   Reply With Quote
Old Sep 26th, 2005, 10:25 PM   #4
Dameon
Troll
 
Dameon's Avatar
 
Join Date: Apr 2005
Location: Texas
Posts: 732
Rep Power: 4 Dameon is on a distinguished road
Hmmm...not that I know of...have a link? I got the idea from a competition I read about, including using stdout and stdin, is that what you are referring to?
__________________
MD5(sig) = bcef75433db02e9ad9bf81d6f7c5c270
Dameon is offline   Reply With Quote
Old Sep 27th, 2005, 1:56 AM   #5
Arevos
Programming Guru
 
Arevos's Avatar
 
Join Date: Aug 2005
Location: England
Posts: 1,499
Rep Power: 4 Arevos is on a distinguished road
http://robocode.sourceforge.net/
Arevos is offline   Reply With Quote
Old Sep 27th, 2005, 10:19 AM   #6
Dameon
Troll
 
Dameon's Avatar
 
Join Date: Apr 2005
Location: Texas
Posts: 732
Rep Power: 4 Dameon is on a distinguished road
That is similar, but different.
__________________
MD5(sig) = bcef75433db02e9ad9bf81d6f7c5c270
Dameon is offline   Reply With Quote
Old Sep 27th, 2005, 1:46 PM   #7
tempest
Programming Guru
 
tempest's Avatar
 
Join Date: Oct 2004
Posts: 1,041
Rep Power: 5 tempest is on a distinguished road
Send a message via ICQ to tempest Send a message via AIM to tempest Send a message via Yahoo to tempest
I'm in, as long as my source code can be in PHP, or possibly C, depending on the challenge...
__________________

tempest is offline   Reply With Quote
Old Sep 27th, 2005, 3:04 PM   #8
Dameon
Troll
 
Dameon's Avatar
 
Join Date: Apr 2005
Location: Texas
Posts: 732
Rep Power: 4 Dameon is on a distinguished road
Thankfully I have php insalled, so not a problem

Ah hah! This is where I got my initial idea.
http://icfpc.plt-scheme.org/spec.html

I was looking for that...so what do you think of that particular setup? Sounds like a worthy contest to mimic, no?
__________________
MD5(sig) = bcef75433db02e9ad9bf81d6f7c5c270
Dameon is offline   Reply With Quote
Old Sep 27th, 2005, 3:25 PM   #9
Dizzutch
Professional Programmer
 
Dizzutch's Avatar
 
Join Date: Dec 2004
Location: Worcester, MA
Posts: 441
Rep Power: 4 Dizzutch is on a distinguished road
Send a message via ICQ to Dizzutch Send a message via AIM to Dizzutch Send a message via MSN to Dizzutch Send a message via Yahoo to Dizzutch
Sounds like a cool idea, who's gonna write the environment? We might as well just go with Robocode, which i believe is Java-based.

Ideas for games, could be many, from straight AI stuff like tic-tac-toe to chess to more interesting to watch stuff like tanks-shooting eachother or maybe even pong. POng wouldn't be hard to write a bot that stops the ball, it gets harder when you write a bot that is supposed to hit the ball back in a certain way.
__________________
naked pictures of you | PFO F@H stats
Dizzutch is offline   Reply With Quote
Old Sep 27th, 2005, 3:41 PM   #10
Dameon
Troll
 
Dameon's Avatar
 
Join Date: Apr 2005
Location: Texas
Posts: 732
Rep Power: 4 Dameon is on a distinguished road
As for environment, I was going to put a little something together for the server. Communication will just be my server app redirecting stdin and stdout of each client. I've never heard of a language that can't read and write to those. I'm basing a lot of it off the information provided in the link. Perhaps later on I will extend the server to communicate with sockets or even loading .Net assemblies, but for the moment this should work well. If I can get the server to work on Mono as well, I will run your code as nobody on my linux installation Keep that in mind.

Good ideas for games. Tempest is all for a chess type game, which would be fun in the future.
__________________
MD5(sig) = bcef75433db02e9ad9bf81d6f7c5c270
Dameon is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 1:59 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC