aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xpractice17
1 files changed, 15 insertions, 2 deletions
diff --git a/practice b/practice
index 5daa4b5..52f7e45 100755
--- a/practice
+++ b/practice
@@ -2,10 +2,10 @@
2 2
3# Script based on nissy (see https://nissy.tronto.net) to practice FMC 3# Script based on nissy (see https://nissy.tronto.net) to practice FMC
4 4
5# Usage: practice [htr] 5# Usage: practice [htr|fin]
6 6
7usage() { 7usage() {
8 echo "Usage: practice [htr]" 8 echo "Usage: practice [htr|fin]"
9} 9}
10 10
11htr() { 11htr() {
@@ -18,6 +18,16 @@ htr() {
18 done 18 done
19} 19}
20 20
21fin() {
22 while true; do
23 scr="$(nissy scramble htr)"
24 echo "$scr"
25 read -r x
26 nissy solve -o drslice "$scr"
27 read -r x
28 done
29}
30
21if [ -z "$1" ]; then 31if [ -z "$1" ]; then
22 usage 32 usage
23 exit 1 33 exit 1
@@ -27,6 +37,9 @@ case "$1" in
27 htr) 37 htr)
28 htr 38 htr
29 ;; 39 ;;
40 fin)
41 fin
42 ;;
30 *) 43 *)
31 usage 44 usage
32 exit 1 45 exit 1

Generated with cgit - Back to sebastiano.tronto.net