39-405 Engineering Design
Power Tournament
Tournament
Up
Down
3.8 How to Get Started
The following steps describe how to install and
run the simulator on SunOs/Solaris-based SparcStations.
- create a directory. Let's say games.
- download the simulator in the directory
games.
Access item 3.7
and download sim.tar.gz.
- extract the simulator from the "tar" file.
$ cd games
games> gunzip sim.tar.gz
games> tar xvf sim.tar
- download a simple "game".
Access item 4.
and download game04.tar.gz.
Save it in the
directory games.
- install game04.
games> gunzip game04.tar.gz
games> mkdir game04
games> cd game04
game04> tar xvf ../game04.tar
- download some silly agents.
Access 3.7
and download agents sp.cc and
cs.cc in the directory
games.
- compile silly agents.
games> g++ sp.cc -o sp -lm
games> g++ cs.cc -o cs -lm
- install silly agents in game04.
game04> cp ../sp player01
game04> cp ../sp player02
game04> cp ../cs player03
game04> cp ../cs player04
- run a tournament.
game04> cp ../stub .
game04> ../sim private/game.inf
- the outcome of the simulation is saved in
the directory
~games/game04/private/state.
A file with the final state after each period
k is store in the subdirectories
player??.
Check section
3.3 out for
more details.
Tournament
Up
Down