diff options
author | epochqwert <epoch@hacking.allowed.org> | 2019-02-07 09:08:01 +0000 |
---|---|---|
committer | epochqwert <epoch@hacking.allowed.org> | 2019-02-07 09:08:01 +0000 |
commit | 750473faa49be1a3490d8336190ee920014d8169 (patch) | |
tree | 2f14646e064321419c7942981863f571e9a6339b /share/hackvr/examples/chess/gnuchess-to-hackvr.sh | |
parent | 9f4b99177d8e563f5cfceaf34277d79a681c41f7 (diff) | |
parent | 978e097ebfb50d70e5e45530cdf0fecc7654c641 (diff) | |
download | hackvr-750473faa49be1a3490d8336190ee920014d8169.tar.gz hackvr-750473faa49be1a3490d8336190ee920014d8169.zip |
merge with testing
Diffstat (limited to 'share/hackvr/examples/chess/gnuchess-to-hackvr.sh')
-rwxr-xr-x | share/hackvr/examples/chess/gnuchess-to-hackvr.sh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/share/hackvr/examples/chess/gnuchess-to-hackvr.sh b/share/hackvr/examples/chess/gnuchess-to-hackvr.sh index 0b94a87..841389b 100755 --- a/share/hackvr/examples/chess/gnuchess-to-hackvr.sh +++ b/share/hackvr/examples/chess/gnuchess-to-hackvr.sh @@ -1,4 +1,5 @@ #!/bin/sh +e=$1 tee /dev/stderr | while read first second third;do if [ "_$first" = "_feature" ];then printf "# just gnuchess saying what features it has: %s %s %s\n" "$first" "$second" "$third" >&2 @@ -17,9 +18,9 @@ tee /dev/stderr | while read first second third;do y=$(printf "%s\n" "$to" | fold -w1 | tail -n1) magic=$(printf "%s\n" "$move" | fold -w1 | tail -n+5 | tr -d '\n') ### if the board is on the wall we need to use x and y -# printf "piece_%s move %s %s 0\n" "$from" "$x" "$y" | tee /dev/stderr +# printf "piece_%s move %s %s %s\n" "$from" "$x" "$y" "$e" | tee /dev/stderr ### the board is on the floor atm. use x and z - printf "piece_%s move %s 0 %s\n" "$from" "$x" "$y" | tee /dev/stderr + printf "piece_%s move %s %s %s\n" "$from" "$x" "$e" "$y" | tee /dev/stderr printf "#delete the old piece_%s group\n" printf "epoch deletegroup piece_%s\n" "$to" |