mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-12-27 09:58:45 +01:00
script for reproducing problem with relay games that show up randomly.
This commit is contained in:
parent
d479b2b979
commit
00f743409a
1 changed files with 25 additions and 0 deletions
25
xwords4/linux/scripts/game_with_seed.sh
Executable file
25
xwords4/linux/scripts/game_with_seed.sh
Executable file
|
@ -0,0 +1,25 @@
|
|||
#!/bin/sh
|
||||
|
||||
set -u -e
|
||||
|
||||
|
||||
PARAMS="--curses --robot Kati --remote-player --game-dict dict.xwd --quit-after 1 --sort-tiles"
|
||||
|
||||
|
||||
run() {
|
||||
SEED=$1
|
||||
LOG=LOG__${SEED}.txt
|
||||
ROOM=ROOM_${SEED}
|
||||
> $LOG
|
||||
./obj_linux_memdbg/xwords $PARAMS --room $ROOM \
|
||||
--seed $SEED >/dev/null 2>>$LOG &
|
||||
sleep 1
|
||||
./obj_linux_memdbg/xwords $PARAMS --room $ROOM \
|
||||
--seed $((SEED+1000)) >/dev/null 2>>$LOG &
|
||||
}
|
||||
|
||||
for SEED in $(seq 1 1000); do
|
||||
echo "trying seed $SEED"
|
||||
run $SEED
|
||||
wait
|
||||
done
|
Loading…
Reference in a new issue