diff options
author | epoch <epoch@hacking.allowed.org> | 2019-02-06 04:55:26 -0600 |
---|---|---|
committer | epoch <epoch@hacking.allowed.org> | 2019-02-06 04:55:26 -0600 |
commit | fcd31e10d00ae7459b084584c513dc3ab8d62d0e (patch) | |
tree | e2cb1807056735804805ec0040c275efab1548e0 /share/hackvr/examples/chess/gnuchess-to-hackvr.sh | |
parent | c45f918c635ea6f8d947f5e7bb7f646656c89b30 (diff) | |
parent | 30bfb25dceedcc0ad84b06194856edb28297ba83 (diff) | |
download | hackvr-fcd31e10d00ae7459b084584c513dc3ab8d62d0e.tar.gz hackvr-fcd31e10d00ae7459b084584c513dc3ab8d62d0e.zip |
merged some derpage I did on the wrong branch in the wrong copy of the repo
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" |