diff --git a/README.md b/README.md index 0df744e..031fc76 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/play.bash b/fire similarity index 98% rename from play.bash rename to fire index 41f5994..7402520 100755 --- a/play.bash +++ b/fire @@ -1,7 +1,7 @@ #!/usr/bin/env bash # Usage: -# ./play.bash +# ./fire alice_sum=0 bob_sum=0 diff --git a/stats.bash b/stats similarity index 89% rename from stats.bash rename to stats index 6c6585a..4f04650 100755 --- a/stats.bash +++ b/stats @@ -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]++