![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Troll
Join Date: Apr 2005
Location: Texas
Posts: 732
Rep Power: 4
![]() |
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 |
|
|
|
|
|
#2 |
|
Programming Guru
![]() Join Date: Apr 2005
Posts: 1,799
Rep Power: 5
![]() |
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. ![]() |
|
|
|
|
|
#3 |
|
Professional Programmer
|
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;} |
|
|
|
|
|
#4 |
|
Troll
Join Date: Apr 2005
Location: Texas
Posts: 732
Rep Power: 4
![]() |
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 |
|
|
|
|
|
#5 |
|
Programming Guru
![]() Join Date: Aug 2005
Location: England
Posts: 1,499
Rep Power: 4
![]() |
|
|
|
|
|
|
#6 |
|
Troll
Join Date: Apr 2005
Location: Texas
Posts: 732
Rep Power: 4
![]() |
That is similar, but different.
__________________
MD5(sig) = bcef75433db02e9ad9bf81d6f7c5c270 |
|
|
|
|
|
#7 |
|
Programming Guru
![]() |
I'm in, as long as my source code can be in PHP, or possibly C, depending on the challenge...
__________________
|
|
|
|
|
|
#8 |
|
Troll
Join Date: Apr 2005
Location: Texas
Posts: 732
Rep Power: 4
![]() |
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 |
|
|
|
|
|
#9 |
|
Professional Programmer
|
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. |
|
|
|
|
|
#10 |
|
Troll
Join Date: Apr 2005
Location: Texas
Posts: 732
Rep Power: 4
![]() |
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 |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|