pick more sensible file names

This commit is contained in:
OMGOMG 2022-04-07 01:24:07 +02:00
parent cbde4fcde4
commit 4e10cd3a72
3 changed files with 6 additions and 6 deletions

View File

@ -2,10 +2,10 @@ Simple card game.
# Usage
`./play.bash`
`./fire`
Play a single game.
`./stats.bash`
`./stats`
Play a number of games and look at the stats.

View File

@ -1,7 +1,7 @@
#!/usr/bin/env bash
# Usage:
# ./play.bash
# ./fire
alice_sum=0
bob_sum=0

View File

@ -1,13 +1,13 @@
#!/usr/bin/env bash
# Usage
# ./stats.bash
# ./stats
# or
# ./stats.bash NUM_SIMULATIONS
# ./stats NUM_SIMULATIONS
for ((i=0; i < ${1:-100}; i++))
do
./play.bash
./fire
done | awk '
/^[[:alnum:]]+ vinner!$/ {
win[$1]++