closeclose
Create your own!
Show slideshow

Comments


One item found.1
sever.bot
The show-cop and show-robber programs each take a bot to supply automatic moves, and they run gui-cop or gui-robber with --auto (described below) and redirected streams. As a result, the GUI is initialized for each action by the given bot. Furthermore, the Auto Play check-box starts checked, so that the GUI automatically imitates the given bot. The bot's actions are validated before they are used to initialize the GUI on each action. For example, the following runs no-op-cop with a GUI view for the fifth cop in a game: % server --gui --copE "show-cop no-op-cop" The gui-cop and gui-robber programs accept any number of arguments, and the arguments are combined into a single command line. For example, the following runs no-op-robber with name "NoOpRobberGUI" with a GUI view: % server --gui --robber "show-robber no-op-robber --name NoOpRobberGUI" The GUI accepts and forwards the given player's move only as long as the Auto Play check-box is checked in the GUI. By unchecking the box, you can interrupt autoplay mode at any time, rewind to see past plays, and tweak any move that is provided by the bot. The show-cop and show-robber programs are implemented by passing an --auto flag to gui-cop and gui-robber. The --auto flag causes the GUI bot to read bot messages that are interleaved with server messages on its input. It's practically always easier to use show-cop and show-robber than to use the --auto flag directly. Recording and Replaying Transcripts Use the standard program tee (or the provided alternate mtee) to capture the stream that is sent to a bot, or to capture the bot's responses. For example, the following records messages from the server to the GUI bot in cop.in, and it records messages from the GUI bot to the server in cop.out: % server --gui --copE "tee cop.in | gui-cop | tee cop.out" The cop.out transcript can be replayed verbatim as a bot, as long as all other players move close
created 11 months ago

Add comment

Name
Your message
 

Images:

th_v1
th_v1
th_v2
th_v2
th_v3
th_v3
th_v4
th_v4
th_v5
th_v5
th_v6
th_v6
th_v7
th_v7
th_v8
th_v8
th_v9
th_v9
th_v10
th_v10