X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=replay;h=7fc0641555e615b4e145b4f90ef2a6abedff7b9e;hb=a60b2c66db2f4fe63992d1e64a0a66ab3bbb2ace;hp=cb90dc589c026e02995f40d8d8163d19f61d1165;hpb=6a4b3b3c8ac4589e45eeab15db7fdf8df3b3b006;p=super-star-trek.git diff --git a/replay b/replay index cb90dc5..7fc0641 100755 --- a/replay +++ b/replay @@ -5,10 +5,11 @@ # repeating this any number of times should produce identical games, # unless the code changes. # +TMP=${TMPDIR:-/tmp} if [ $1 ] then - head -n `expr $1 + 2` replay.log + head -n `expr $1 + 2` <$TMP/sst-input.log >replay.log else - mv /tmp/sst-input.log replay.log + mv $TMP/sst-input.log replay.log fi -python sst.py -t -r replay.log +python3 sst -t -r replay.log