X-Git-Url: https://git.ucc.asn.au/?p=progcomp2012.git;a=blobdiff_plain;f=web%2Fdoc%2Fmanager_manual.txt;h=fc338acf876fbaa2ac2077dbba5dedc7131784a5;hp=a19cd5d2788abd8061445142c1890b805e523c6e;hb=5f9adddd695f2664a0d690b59a779e40b51ade3d;hpb=476617a8222c8c56404c12a65dd75c55b8019542 diff --git a/web/doc/manager_manual.txt b/web/doc/manager_manual.txt index a19cd5d..fc338ac 100644 --- a/web/doc/manager_manual.txt +++ b/web/doc/manager_manual.txt @@ -4,7 +4,7 @@ NAME SYNOPSIS - stratego {[-gpirb] [-o output_file ] [-t stall_time] [-T timeout_time] [-m max_turns] {red_player blue_player | -f input_file} | {-h | --help} } + stratego {[-gpirb] [-o output_file ] [-t stall_time] [-T timeout_time] [-m max_turns] [-I image_directory] {red_player blue_player | -f input_file} | {-h | --help} } QUICK EXAMPLE - Play against a sample AI, using graphics, hiding the AI's pieces stratego -g -b @human ../../agents/vixen/vixen.py @@ -101,6 +101,24 @@ OPTIONS All switches function as normal with -f. NOTE: It is recommended that -g is used with -f. + -I + stratego can output image files in the BMP format, when built with graphics. + If this option is supplied, a directory indicated will be used, and a .bmp image will be saved to the directory after each move. + The images will be numbered from 0.bmp (before the game starts) with increasing integers for each move. + Note that the image number corresponds to the move number, not the turn number. + The move number is odd after RED has moved, and even after BLUE has moved. + + NOTE: The -I switch will automatically enable graphics, even if the -g switch is not supplied. + + -v + If you have ffmpeg on your system, you can use this to quickly create a video. + When this option is supplied, stratego first outputs image files to a temporary directory in BMP format. + After the game is finished, these files are used to create an mp4 movie with the specified name: + + $ ffmpeg -r 10 -b 1024k -i tmp/%d.bmp filename + + The temporary images will then be deleted. + -h, --help If the -h switch is used, this page will be printed and stratego will exit.