SourceFiles.org - Use the Source, Luke
Home | Register | News | Forums | Guide | MyLinks | Bookmark

Related Sites

Latest News
  General News
  Reviews
  Press Releases
  Software
  Hardware
  Security
  Tutorials
  Off Topic


Back to files

http://www.erikyyy.de/cadaver/

for all of you click click watch boo erase guys, jump to the section "THE SHOW MUST GO ON"

CADAVER OVERVIEW

Cadaver is a simulated world of cyborgs and nature in realtime. The battlefield consists of forests, grain, water, grass, carcass (of course) and lots of other things. The game server manages the game and the rules. You start a server and connect some clients. The clients communicate with the server using a very primitive protocol. They can order cyborgs to harvest grain, attack enemies or cut forest. The game is not intended to be played by humans! There is too much to control. Only for die-hards: Just telnet to the server and you can enter commands by hand. Instead the idea is that you write artificial intelligence clients to beat the other artificial intelligences. You can choose a language (and operating system) of your choice to do that task. It is enough to write a program that communicates on standard input and standard output channels. Then you can use programs like "socket" to connect your clients to the server. It is NOT needed to write TCP/IP code, although i did so :) The battle shall not be boring, and so there is the so called spyboss client that displays the action graphically on screen. You could also write a 3D client so that the battle looks even fancier :)

CADAVER SERVER

The server is a program that runs on the console. It manages the rules of the game in realtime. It listens on TCP port 8932.
You could connect to it by entering:

telnet localhost 8932

You will get the Initialisation message. you can now enter commands.

The Protocol is described in the MESSAGES file. The Rules of the game are described in the RULES file.

this is the best way to understand how all works. read the MESSAGES, RULES and play around with telnet.

type help on the server console to get a list of all available servercommands !

THE SHOW MUST GO ON

start a cadaver server (size 50x50)
start a spyboss
on the server console type
bo 1 1
(this puts the spyboss into boss mode to see everything) (no, not really everything but the union of everything that the cyborgs see. so initially you will still see nothing) start a catrats
start a catrats
start a catrats
start a catrats
(yes 4 times on 4 xterms)
on the server console type
mk 10 2 5 5
mk 10 3 45 45
mk 10 4 45 5
mk 10 5 5 45

watch and have fun!

TODO - FIXME

bandwithlimitation!
maybe add some kind of automatic cyborg placement tournament commandline option.


Other Sites

Discussion Groups
  Beginners
  Distributions
  Networking / Security
  Software
  PDAs

About | FAQ | Privacy | Awards | Contact
Comments to the webmaster are welcome.
Copyright 2006 Sourcefiles.org All rights reserved.