#!/bin/sh PROGRAM="FreeDoko" #if [ -e $PROGRAM ]; then # rm $PROGRAM #fi # while [ ! -x ./FreeDoko ]; do sleep 1; done; ./FreeDoko # for debugging code #export CXXFLAGS="-Wall -Werror -O3 -ftemplate-depth-20 -g" if false; then echo echo "**** compile $PROGRAM ****" echo make $PROGRAM || exit else echo echo "**** waiting for $PROGRAM ****" echo while [ ! -x ./$PROGRAM ]; do sleep 1; done fi echo echo "****** $PROGRAM ******" #cd ../data && ../src/$PROGRAM #echo "0.6.7 (2005-04-01)" > ~/.FreeDoko/Version #rm ~/.FreeDoko/Version #rm ~/.FreeDoko/parties/current #rm ~/.FreeDoko/player.? #./$PROGRAM "$@" #./$PROGRAM "$@" -F 63 #./$PROGRAM "$@" ~/.FreeDoko/parties/t -F 59 "$@" #./$PROGRAM "$@" ~/.FreeDoko/parties/testparty.dupo -F 187 "$@" #./$PROGRAM - --name "" --start_server "$@" & sleep 2; ./$PROGRAM - --name Erika --connect localhost #./$PROGRAM "$@" --connect excalibur #time ./$PROGRAM "$@" --ui=none -F63 #./$PROGRAM -b ~/Desktop/FreeDoko.BugReports/FreeDoko.BugReport.220409_6 -F 1 "$@" #./$PROGRAM -b ../Bugreports/FreeDoko.BugReport.158061_127 "$@" #./$PROGRAM -b ../Bugreports/_incoming/FreeDoko.BugReport.250800 "$@" #./$PROGRAM -b ../Bugreports/_incoming/Hansjoerg/fixed/f/FreeDoko.BugReport.112970 "$@" #./$PROGRAM -b ../Bugreports/asserts/FreeDoko.BugReport.27801 -F1 "$@" #./$PROGRAM -b ../Bugreports/asserts/FreeDoko.BugReport.238213_1 -F1 "$@" #./$PROGRAM -b ../Bugreports/asserts/FreeDoko.BugReport.38353 -F1 "$@" ./$PROGRAM -b ../Bugreports/urgent/FreeDoko.BugReport.50693_3 -F1 "$@" #./$PROGRAM -b ../Bugreports/ui/FreeDoko.BugReport.33991 "$@" #./$PROGRAM -b ../Bugreports/replay/not_replayable/FreeDoko.BugReport.126837_9 "$@" #./$PROGRAM ../Bugreports/other/party.counting "$@" #./$PROGRAM -b ../Bugreports/ai/Soli/poverty/FreeDoko.BugReport.58746_1 #./$PROGRAM -b ../Bugreports/ai/FreeDoko.BugReport.126920 "$@" #./$PROGRAM -b ../Bugreports/ai/CardsInformation/FreeDoko.BugReport.158061_127 "$@" #./$PROGRAM -b ../Bugreports/ai/TeamInformation/FreeDoko.BugReport.218453_1 "$@" #./$PROGRAM -b ../Bugreports/ai/Heuristics/FreeDoko.BugReport.119646 "$@" #./$PROGRAM -b ../Bugreports/ai/Heuristics/FreeDoko.BugReport.111393 "$@" #./$PROGRAM -b ../Bugreports/ai/new_heuristics/FreeDoko.BugReport.220748_3 "$@" #./$PROGRAM -b ../Bugreports/ai/Choosebestcard/GameTree/FreeDoko.BugReport.268904_2 "$@" #./$PROGRAM -b ../Bugreports/ai/Choosebestcard/TrickWeighting/FreeDoko.BugReport.145718 "$@" #./$PROGRAM -b ../Bugreports/ai/Choosebestcard/VirtualGames/FreeDoko.BugReport.276485 -F 1 "$@" # test #nice -20 ./$PROGRAM /home/dknof/.FreeDoko/parties/testparty -F 123 --auto_bug_reports "$@" #time nice -20 ./$PROGRAM /home/dknof/.FreeDoko/parties/testparty.20_rounds --ui=none "$@" #nice -20 ./$PROGRAM /home/dknof/.FreeDoko/parties/fast_play -F 63 "$@" #./$PROGRAM /home/dknof/.FreeDoko/parties/points.test "$@" #nice -20 ./$PROGRAM /home/dknof/.FreeDoko/parties/long_play.3 -F 59 "$@" echo # rm ./$PROGRAM function aitype_test() { mkdir -p testparties for type in dopu doup dpou dpuo duop dupo; do for startplayer in 1 2 3 4; do echo echo "--" echo ${type}.${startplayer} sed -e "s/number of rounds = [0-9]+/number of rounds = 2/" \ ~/.FreeDoko/parties/testparty.${type} \ | nice -n 20 ./FreeDoko /dev/stdin \ -F 187 --startplayer ${startplayer} --ui=gtkmm \ || exit cp ~/.FreeDoko/parties/current testparties/${type}.${startplayer}.finished done done } # function aitype_test() #aitype_test # fast play # 1 automatic party start # 2 ai players # 4 random ai # 8 skip pauses # 16 skip gameplay informations # 32 skip game finished dialog # 64 show all hands # 128 quit when finished