From 34c8958ac20ca51f143bb8e77463665df844d9e2 Mon Sep 17 00:00:00 2001 From: Cody Boone Ferguson <53008573+xexyl@users.noreply.github.com> Date: Fri, 26 Jan 2024 11:15:14 -0800 Subject: [PATCH] Improve 2013/birken/try scripts --- 2013/birken/try.alt.sh | 4 +++- 2013/birken/try.sh | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/2013/birken/try.alt.sh b/2013/birken/try.alt.sh index 32604bcb4..c0df5856c 100755 --- a/2013/birken/try.alt.sh +++ b/2013/birken/try.alt.sh @@ -21,6 +21,7 @@ PERL="$(type -P perl)" if [[ -n "$PERL" ]]; then read -r -n 1 -p "Press any key to try a random run: " + echo 1>&2 perl -e 'map{map{print int(rand()*8);}(0..16);print chr(10);}(0..30);' | tr '[0-4]' ' '| ./birken.alt fi @@ -30,7 +31,8 @@ for i in *.txt; do -e 's/Cheepcheep/Cheep Cheep/g' -e 's/Happyface/Happy Face/g' -e 's/Paranaplant/Piranha Plant/g' \ -e 's/Koopaparatroopa/Koopa Paratroopa/g')" read -r -n1 -p "Press any key to try $NAME: " + echo 1>&2 ./birken.alt < "$i" - echo + echo 1>&2 done clear diff --git a/2013/birken/try.sh b/2013/birken/try.sh index f08c8e1e4..2f3982cac 100755 --- a/2013/birken/try.sh +++ b/2013/birken/try.sh @@ -20,6 +20,7 @@ PERL="$(type -P perl)" if [[ -n "$PERL" ]]; then read -r -n 1 -p "Press any key to try a random run: " + echo 1>&2 perl -e 'map{map{print int(rand()*8);}(0..16);print chr(10);}(0..30);' | tr '[0-4]' ' '| ./birken fi @@ -29,7 +30,8 @@ for i in *.txt; do -e 's/Cheepcheep/Cheep Cheep/g' -e 's/Happyface/Happy Face/g' -e 's/Paranaplant/Piranha Plant/g' \ -e 's/Koopaparatroopa/Koopa Paratroopa/g')" read -r -n1 -p "Press any key to try $NAME: " + echo 1>&2 ./birken < "$i" - echo + echo 1>&2 done clear