From 7c049c043c8921e1b5a40da43dfe708d6b3afc59 Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Mon, 30 Oct 2023 15:07:06 +0100 Subject: Fixed practice dr filtering --- practice | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'practice') diff --git a/practice b/practice index 4e1126c..506ca13 100755 --- a/practice +++ b/practice @@ -54,7 +54,8 @@ dr_scramble() { max="7" while true; do eo="$(tr -cd 'UDRL' < /dev/random | fold -w "$d" | head -n 1)" - sol="$(${nissy} solve -p drud-eofb "$eo")" + eoinv="$(echo "$eo" | rev | sed 's/./&3/g')" + sol="$(${nissy} solve -p drud-eofb "$eoinv")" len="$(echo "$sol" | wc -w)" if [ "$len" -ge "$min" ] && [ "$len" -le "$max" ]; then break -- cgit v1.3