diff options
author | epoch <epoch@thebackupbox.net> | 2022-08-17 21:34:02 -0500 |
---|---|---|
committer | epoch <epoch@thebackupbox.net> | 2022-08-17 21:34:02 -0500 |
commit | 6492ba6b4107a4da228e18db4fc5fc871bfb0579 (patch) | |
tree | 11301c4e20d9a1448337e73b62a16ab1bfeba457 /share/hackvr/examples/chess/board.sh | |
parent | 49d54d7582bdcbdcff5637e72e9f29bb5cc571bd (diff) | |
download | hackvr-master.tar.gz hackvr-master.zip |
updated README to show that everything that got deleted went to an -extras repo. also, hackvr script updated to be better bashHEADmaster
Diffstat (limited to 'share/hackvr/examples/chess/board.sh')
-rwxr-xr-x | share/hackvr/examples/chess/board.sh | 54 |
1 files changed, 0 insertions, 54 deletions
diff --git a/share/hackvr/examples/chess/board.sh b/share/hackvr/examples/chess/board.sh deleted file mode 100755 index dc3fb3b..0000000 --- a/share/hackvr/examples/chess/board.sh +++ /dev/null @@ -1,54 +0,0 @@ -#!/usr/bin/env bash - -e=$1 #elevation of board -width=8 -height=8 -cols="a b c d e f g h" - -printf "junk set camera.r.x -45\n" - -for x in $(seq 1 $width);do - for y in $(seq 1 $height);do - color=$[((($y % 2) + ($x % 2))%2)+16] -### board is on the wall. draw in x and y. -# printf "%s%s addshape %s 4 %s %s %s %s %s %s %s %s %s %s %s %s\n" \ -# $(printf "%s\n" "$cols" | cut '-d ' -f$x) $y $color \ -# $x $y $e \ -# $[x+1] $y $e \ -# $[x+1] $[y+1] $e \ -# $x $[y+1] $e -### board is on floor. draw in x and z. - printf "%s%s addshape %s 4 %s %s %s %s %s %s %s %s %s %s %s %s\n" \ - $(printf "%s\n" "$cols" | cut '-d ' -f$x) $y $color \ - $x $e $y \ - $[x+1] $e $y \ - $[x+1] $e $[y+1] \ - $x $e $[y+1] - done -done - -row8="rook knight bishop queen king bishop knight rook" -row1="$row8" - -color="19 19 0 0 0 0 20 20" - -#draw pawns. triangles. -for x in $(seq $width);do - for y in 2 7;do - locat="$(printf "%s\n" "$cols" | cut '-d ' "-f$x")$y" - cat "./pieces/pawn" | sed 's/^[^ ][^ ]* addshape [0-9][0-9]* /piece_'"${locat}"' addshape '"$(printf "%s\n" "$color" | cut '-d ' "-f$y")"' /g' -### board is on wall. use x and y. -# printf "piece_%s move %s %s %s\n" "$locat" "$x" "$y" "$e" -### board is on floor. use x and z. - printf "piece_%s move %s %s %s\n" "$locat" "$x" "$e" "$y" - done - for y in 1 8;do - locat="$(printf "%s\n" "$cols" | cut '-d ' "-f$x")$y" - cat "./pieces/$(printf "%s\n" "$row1" | cut '-d ' "-f$x")" \ - | sed 's/^[^ ][^ ]* addshape [0-9][0-9]* /piece_'"${locat}"' addshape '"$(printf "%s\n" "$color" | cut '-d ' "-f$y")"' /g' -### board is on wall. use x and y. -# printf "piece_%s move %s %s %s\n" "$locat" "$x" "$y" "$e" -### board is on floor. use x and z. - printf "piece_%s move %s %s %s\n" "$locat" "$x" "$e" "$y" - done -done |