Necessary Code Modifications
See cant_stop_design.ppt for an overview of how the objects interact.
In the following, your_player is whatever you want to name your player.
- Copy s1.player.* to your_player.*.
- Note that s1_player stands for Steve player #1. This player
is rather simple-minded and not the computer player in the my current
electronic version.
- In your_player.*, change all instances of s1 to your.
- In your_player.cpp, modify roll_or_stop() and move_markers().
You can also create a start_turn() if there are some things you want
to do at the start of a turn (see human_player.cpp for an example of
this).
You can use the t_game object to simulate. See cs_player::exp_gain_by_rolling()
for an example of this.
To test your computer player, change all instances of s1 to your
in cant_stop.cpp and compile.