From f479b438e6119e83c95b19aaeccd61a8e5eded27 Mon Sep 17 00:00:00 2001 From: epoch Date: Sun, 16 Dec 2018 19:28:39 -0600 Subject: fuck if I know. lots of shit. moved files. --- examples/anonet_map.sh | 11 -------- examples/chess/board.sh | 40 ----------------------------- examples/chess/camera.pos | 2 -- examples/chess/gnuchess-to-hackvr.sh | 31 ---------------------- examples/chess/hackvr-to-gnuchess.sh | 18 ------------- examples/chess/pieces/bishop | 2 -- examples/chess/pieces/king | 2 -- examples/chess/pieces/knight | 2 -- examples/chess/pieces/pawn | 1 - examples/chess/pieces/queen | 1 - examples/chess/pieces/rook | 1 - examples/chess/run | 4 --- examples/draw/draw.sh | 36 -------------------------- examples/draw/run | 3 --- examples/filebrowser/action_to_target.sh | 11 -------- examples/filebrowser/backend-filebrowser.sh | 18 ------------- examples/filebrowser/backend-gopher.sh | 19 -------------- examples/filebrowser/backend-ps.sh | 12 --------- examples/filebrowser/camera.pos | 2 -- examples/filebrowser/frontend-hackvr.sh | 6 ----- examples/filebrowser/frontend-zenity.sh | 6 ----- examples/filebrowser/list_to_cubes.sh | 33 ------------------------ examples/filebrowser/run | 3 --- examples/tictactoe/board | 13 ---------- examples/tictactoe/camera.pos | 5 ---- examples/tictactoe/game.sh | 30 ---------------------- examples/tictactoe/listen.sh | 19 -------------- examples/tictactoe/marker0 | 2 -- examples/tictactoe/marker1 | 1 - examples/tictactoe/run | 6 ----- examples/xcmd.sh | 2 -- 31 files changed, 342 deletions(-) delete mode 100755 examples/anonet_map.sh delete mode 100755 examples/chess/board.sh delete mode 100644 examples/chess/camera.pos delete mode 100755 examples/chess/gnuchess-to-hackvr.sh delete mode 100755 examples/chess/hackvr-to-gnuchess.sh delete mode 100644 examples/chess/pieces/bishop delete mode 100644 examples/chess/pieces/king delete mode 100644 examples/chess/pieces/knight delete mode 100644 examples/chess/pieces/pawn delete mode 100644 examples/chess/pieces/queen delete mode 100644 examples/chess/pieces/rook delete mode 100755 examples/chess/run delete mode 100755 examples/draw/draw.sh delete mode 100755 examples/draw/run delete mode 100755 examples/filebrowser/action_to_target.sh delete mode 100755 examples/filebrowser/backend-filebrowser.sh delete mode 100755 examples/filebrowser/backend-gopher.sh delete mode 100755 examples/filebrowser/backend-ps.sh delete mode 100644 examples/filebrowser/camera.pos delete mode 100755 examples/filebrowser/frontend-hackvr.sh delete mode 100755 examples/filebrowser/frontend-zenity.sh delete mode 100755 examples/filebrowser/list_to_cubes.sh delete mode 100755 examples/filebrowser/run delete mode 100644 examples/tictactoe/board delete mode 100644 examples/tictactoe/camera.pos delete mode 100755 examples/tictactoe/game.sh delete mode 100755 examples/tictactoe/listen.sh delete mode 100644 examples/tictactoe/marker0 delete mode 100644 examples/tictactoe/marker1 delete mode 100755 examples/tictactoe/run delete mode 100755 examples/xcmd.sh (limited to 'examples') diff --git a/examples/anonet_map.sh b/examples/anonet_map.sh deleted file mode 100755 index 2c66640..0000000 --- a/examples/anonet_map.sh +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/bash -cat <(printf "%s move 0 0 -270\n" "$USER") \ - <(wget http://hacking.allowed.org/cgi-bin/map_hackvr.cgi -qO- 2>/dev/null) \ - /dev/stdin \ - | slowcat 0 \ - | hackvr_x11 "$USER" \ - | grep --line-buffered action \ - | stdbuf -oL cut '-d ' -f3 \ - | xargs -r -L1 printf "AS%s\n" \ - | tee /dev/stderr \ - | xargs -r -L1 ./xcmd.sh whois -h hacking.allowed.org diff --git a/examples/chess/board.sh b/examples/chess/board.sh deleted file mode 100755 index f574065..0000000 --- a/examples/chess/board.sh +++ /dev/null @@ -1,40 +0,0 @@ -#!/bin/bash - -width=8 -height=8 -cols="a b c d e f g h" - -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 0 %s %s 0 %s %s 0 %s %s 0\n" $(printf "%s\n" "$cols" | cut '-d ' -f$x) $y $color $x $y $[x+1] $y $[x+1] $[y+1] $x $[y+1] -### board is on floor. draw in x and z. - printf "%s%s addshape %s 4 %s 0 %s %s 0 %s %s 0 %s %s 0 %s\n" $(printf "%s\n" "$cols" | cut '-d ' -f$x) $y $color $x $y $[x+1] $y $[x+1] $[y+1] $x $[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 0\n" "$locat" "$x" "$y" -### board is on floor. use x and z. - printf "piece_%s move %s 0 %s\n" "$locat" "$x" "$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 0\n" "$locat" "$x" "$y" -### board is on floor. use x and z. - printf "piece_%s move %s 0 %s\n" "$locat" "$x" "$y" - done -done diff --git a/examples/chess/camera.pos b/examples/chess/camera.pos deleted file mode 100644 index 32433c2..0000000 --- a/examples/chess/camera.pos +++ /dev/null @@ -1,2 +0,0 @@ -epoch move 5 5 -6 -derp set global.zoom 60 diff --git a/examples/chess/gnuchess-to-hackvr.sh b/examples/chess/gnuchess-to-hackvr.sh deleted file mode 100755 index 0b94a87..0000000 --- a/examples/chess/gnuchess-to-hackvr.sh +++ /dev/null @@ -1,31 +0,0 @@ -#!/bin/sh -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 - elif printf "%s\n" "$first" | grep '^[0-9][0-9]*\.$' >/dev/null 2>&1;then - #we made a successful move. - ### how to tell hackvr to move the piece now? $second should contain what the move was. - printf "# Hey! Hackvr! do this move: %s\n" "$second" >&2 - if [ "_$second" = "_..." ];then #computer/other person made a move. - move=$third - else - move=$second - fi - from=$(printf "%s\n" "$move" | fold -w1 | head -n2 | tr -d '\n') - to=$(printf "%s\n" "$move" | fold -w1 | tail -n+3 | head -n2 | tr -d '\n') - x=$(echo "a b c d e f g h" | tr ' ' '\n' | grep -n "$(printf "%s\n" "$to" | fold -w1 | head -n1)" | cut -d: -f1) - 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 -### 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 "#delete the old piece_%s group\n" - printf "epoch deletegroup piece_%s\n" "$to" - printf "epoch renamegroup piece_%s piece_%s\n" "$from" "$to" | tee /dev/stderr - else - #something else. - printf "oops. something else happened. let's see: %s %s %s\n" "$first" "$second" "$third" >&2 - fi -done diff --git a/examples/chess/hackvr-to-gnuchess.sh b/examples/chess/hackvr-to-gnuchess.sh deleted file mode 100755 index 94cd1ab..0000000 --- a/examples/chess/hackvr-to-gnuchess.sh +++ /dev/null @@ -1,18 +0,0 @@ -#!/bin/sh -part1="" -echo "sleeping 3 seconds. might have gnuchess less likely to not do anything." >&2 -sleep 3 -echo "protover 2" -while read derp command target extra;do - if [ "_$command" = "_action" ];then - if printf "%s\n" "$target" | grep -v "^piece_" 2>&1 > /dev/null;then #we are ignoring clicks on pieces in favor of squares atm. when full 3d probably want pieces. - if [ "_$part1" = "_" ];then - part1=$target - else - #we have two parts. let's tell gnuchess! - printf "%s%s\n" $part1 $target - part1="" - fi - fi - fi -done diff --git a/examples/chess/pieces/bishop b/examples/chess/pieces/bishop deleted file mode 100644 index db6f144..0000000 --- a/examples/chess/pieces/bishop +++ /dev/null @@ -1,2 +0,0 @@ -rook addshape 4 4 .4 .1 0 .6 .1 0 .6 .9 0 .4 .9 0 -rook addshape 4 4 .3 .6 0 .7 .6 0 .7 .8 0 .3 .8 0 diff --git a/examples/chess/pieces/king b/examples/chess/pieces/king deleted file mode 100644 index 8ca79ef..0000000 --- a/examples/chess/pieces/king +++ /dev/null @@ -1,2 +0,0 @@ -king addshape 4 4 .1 .7 0 .3 .9 0 .9 .3 0 .7 .1 0 -king addshape 4 4 .3 .1 0 .9 .7 0 .7 .9 0 .1 .3 0 diff --git a/examples/chess/pieces/knight b/examples/chess/pieces/knight deleted file mode 100644 index adc7f53..0000000 --- a/examples/chess/pieces/knight +++ /dev/null @@ -1,2 +0,0 @@ -knight addshape 4 4 .1 .1 0 .3 .1 0 .3 .9 0 .1 .9 0 -knight addshape 4 4 .1 .1 0 .9 .1 0 .9 .3 0 .1 .3 0 diff --git a/examples/chess/pieces/pawn b/examples/chess/pieces/pawn deleted file mode 100644 index d7d2d29..0000000 --- a/examples/chess/pieces/pawn +++ /dev/null @@ -1 +0,0 @@ -pawn addshape 4 3 .2 .1 0 .8 .1 0 .5 .5 0 diff --git a/examples/chess/pieces/queen b/examples/chess/pieces/queen deleted file mode 100644 index 3ebb4ab..0000000 --- a/examples/chess/pieces/queen +++ /dev/null @@ -1 +0,0 @@ -pawn addshape 4 3 .2 .1 0 .8 .1 0 .5 .9 0 diff --git a/examples/chess/pieces/rook b/examples/chess/pieces/rook deleted file mode 100644 index 2550eb5..0000000 --- a/examples/chess/pieces/rook +++ /dev/null @@ -1 +0,0 @@ -rook addshape 4 4 .4 .1 0 .6 .1 0 .6 .9 0 .4 .9 0 diff --git a/examples/chess/run b/examples/chess/run deleted file mode 100755 index 4f0cdce..0000000 --- a/examples/chess/run +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/bash -mknod p p -stdbuf -oL cat camera.pos <(./board.sh) <(cat p | ./gnuchess-to-hackvr.sh) | hackvr "$USER" | ./hackvr-to-gnuchess.sh | gnuchess -x > p -rm p diff --git a/examples/draw/draw.sh b/examples/draw/draw.sh deleted file mode 100755 index 65c7558..0000000 --- a/examples/draw/draw.sh +++ /dev/null @@ -1,36 +0,0 @@ -#!/bin/bash -echo "$USER move 0 0 -100" - -for y in $(seq 1 1 24);do - for x in $(seq 1 1 24);do - echo ${x}_${y} addshape 2 4 $x $y 0 $[x] $[y+1] 0 $[x+1] $[y+1] 0 $[x+1] $[y] 0 - done -done - -### color pallete -### 0-8 are ansi colors. +16 to make them not affected by "lighting" -for c in $(seq 0 8);do - echo color_${c} addshape $[c+16] 4 -2 ${c+2} 0 -1 ${c+2} 0 -1 $[c+3] 0 -2 $[c+3] 0 -done - -echo "derp" >&2 - -color=3 -echo color_${color} addshape $[color+16] 4 -2 0 0 -2 1 0 -1 1 0 -1 0 0 - -while read source command target;do - printf "target: %s command: %s\n" "$target" "$command" >&2 - if [ "$command" = "action" ];then - if echo "$target" | grep "^color_" 2>&1 >/dev/null;then - color=$(echo $target | cut -d_ -f2) - echo deletegroup $target - echo color_${color}_current addshape $[color+16] 4 -2 -2 0 -2 -1 0 -1 -1 0 -1 -2 0 - else - echo "derp" >&2 - x=$(echo $target | cut -d_ -f1) - y=$(echo $target | cut -d_ -f2) - echo $target deletegroup $target - echo $target addshape $[color + 16] 4 $x $y 0 $x $[y+1] 0 $[x+1] $[y+1] 0 $[x+1] $y 0 | tee /dev/stderr - fi - fi -done diff --git a/examples/draw/run b/examples/draw/run deleted file mode 100755 index f14b415..0000000 --- a/examples/draw/run +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/sh -mknod p p -cat p | tee /dev/stderr | ./draw.sh | hackvr $USER > p diff --git a/examples/filebrowser/action_to_target.sh b/examples/filebrowser/action_to_target.sh deleted file mode 100755 index 2abbe58..0000000 --- a/examples/filebrowser/action_to_target.sh +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/sh -#this script gets the action lines that hackvr outputs and turns them into as normal of a string as possible -#for the backend script to use. -#so hex encoded strings need to be unencoded before they leave here. -#the hex encoded strings don't have a newline at the end. we need to add one. see xargs printf "%s0a" -grep --line-buffered ^USER \ - | stdbuf -oL cut '-d ' -f2- \ - | grep --line-buffered ^action \ - | stdbuf -oL cut '-d ' -f2- \ - | xargs -L1 printf "%s0a\n" \ - | stdbuf -oL xxd -r -p diff --git a/examples/filebrowser/backend-filebrowser.sh b/examples/filebrowser/backend-filebrowser.sh deleted file mode 100755 index 789b601..0000000 --- a/examples/filebrowser/backend-filebrowser.sh +++ /dev/null @@ -1,18 +0,0 @@ -#!/bin/bash -#give a list of files. -#wait for a selection on stdin -#cd or start that file -#repeat. -while true;do -#not sure why this needs to be printed to show up every time. - echo .. - find . -maxdepth 1 #| tr ' ' '\n' #wut? no? - read -r selection - if [ -f "$selection" ];then - xdg-open "$selection" #good enough? - fi - if [ -d "$selection" ];then - cd "$selection" - fi - echo -done diff --git a/examples/filebrowser/backend-gopher.sh b/examples/filebrowser/backend-gopher.sh deleted file mode 100755 index e606667..0000000 --- a/examples/filebrowser/backend-gopher.sh +++ /dev/null @@ -1,19 +0,0 @@ -#!/bin/bash -#give a list of files. -#wait for a selection on stdin -#cd or start that file -#repeat. -server=gopher.hacking.allowed.org -port=70 -selection=/ -while true;do -#not sure why this needs to be printed to show up every time. - printf '%s\n' "$selection" | ncat "$server" "$port" | tee /dev/stderr | grep -v ^i | cut -f2 | tr -d '\r' -### need to ask user for input in the form of a pop-up window if the selected target was of type 7 - read -r selection - if [ "_" = "_$selection" ];then - echo "looks like there's nothing here. exiting." >&2 - exit 1 - fi - echo -done diff --git a/examples/filebrowser/backend-ps.sh b/examples/filebrowser/backend-ps.sh deleted file mode 100755 index b06ff99..0000000 --- a/examples/filebrowser/backend-ps.sh +++ /dev/null @@ -1,12 +0,0 @@ -#!/bin/bash -#give a list of files. -#wait for a selection on stdin -#cd or start that file -#repeat. -while true;do -#not sure why this needs to be printed to show up every time. - ps | tail -n+2 - read -r selection - echo $selection - echo -done diff --git a/examples/filebrowser/camera.pos b/examples/filebrowser/camera.pos deleted file mode 100644 index 718923c..0000000 --- a/examples/filebrowser/camera.pos +++ /dev/null @@ -1,2 +0,0 @@ -USER move 0 0 0 -USER rotate 0 0 0 diff --git a/examples/filebrowser/frontend-hackvr.sh b/examples/filebrowser/frontend-hackvr.sh deleted file mode 100755 index 2b262a9..0000000 --- a/examples/filebrowser/frontend-hackvr.sh +++ /dev/null @@ -1,6 +0,0 @@ -#!/bin/bash -if [ "_$1" = "_" ];then - echo "I need an argument for what my backend is." >&2 - exit 1 -fi -cat camera.pos <(stdbuf -oL $1 < p | ./list_to_cubes.sh) | hackvr USER | ./action_to_target.sh > p diff --git a/examples/filebrowser/frontend-zenity.sh b/examples/filebrowser/frontend-zenity.sh deleted file mode 100755 index cb1fa9d..0000000 --- a/examples/filebrowser/frontend-zenity.sh +++ /dev/null @@ -1,6 +0,0 @@ -#!/bin/bash -if [ "_$1" = "_" ];then - echo "I need a backend script passed as first argument." >&2 - exit 1 -fi -stdbuf -oL $1 < p | stdbuf -oL tr '\n' ' ' | sed -u 's/$/_/' | stdbuf -oL tr '_' '\n' | xargs -L1 zenity --list --column file > p diff --git a/examples/filebrowser/list_to_cubes.sh b/examples/filebrowser/list_to_cubes.sh deleted file mode 100755 index 2cdbe92..0000000 --- a/examples/filebrowser/list_to_cubes.sh +++ /dev/null @@ -1,33 +0,0 @@ -#!/bin/bash -# blank lines deleteallexcept epoch -# expected input format: -# -# line1 -# line2 -# line3 -# -# line1 -# line2 -j=1 -r=200 -while read -r line;do - if [ "_$line" != '_' ];then -# ../tools/obj2hackvr.pl "$line" ../meshes/cube.obj - #turn line into hex to prevent stupid shit - hexline="$(printf "%s" "$line" | xxd -p | tr -d '\n')" - printf "%s addshape 18 3 8 %d %d 0 %d %d 0 %d %d\n" "$hexline" "$j" "$r" "$[$j+8]" "$r" "$j" "$r" - cd .. - printf "%s\n" "$line" | tee /dev/stderr | ./makelabel.sh "$hexline" 15 $j $r - cd filebrowser - #printf "%s move 0 %d %d 0 0 0 0 0 0\n" "$hexline" "$i" "$r" - printf "%s rotate 0 %d 0\n" "$hexline" "$[i * 3]" - #somehow printf '%s\n' "$line" | ./testfont.sh and make its output belong to same group as $line.. sed? - i=$[i+10] - j=$[j+4] - else - cat camera.pos - printf "USER deleteallexcept USER\n" #deleteallexcept doesn't have gr deletions yet I think. - j=0 - i=0 - fi -done diff --git a/examples/filebrowser/run b/examples/filebrowser/run deleted file mode 100755 index c3bc1d3..0000000 --- a/examples/filebrowser/run +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/bash -cd "$(dirname "$0")" -./frontend-hackvr.sh ./backend-gopher.sh diff --git a/examples/tictactoe/board b/examples/tictactoe/board deleted file mode 100644 index 2d8a0e5..0000000 --- a/examples/tictactoe/board +++ /dev/null @@ -1,13 +0,0 @@ -_reset addshape 2 3 -4 -4 4 -5 -4 4 -4 -5 4 - -topleft addshape 2 4 -3 3 4 -1 3 4 -1 1 4 -3 1 4 -topcenter addshape 2 4 -1 3 4 1 3 4 1 1 4 -1 1 4 -topright addshape 2 4 1 3 4 3 3 4 3 1 4 1 1 4 - -middleleft addshape 2 4 -3 1 4 -1 1 4 -1 -1 4 -3 -1 4 -middlecenter addshape 2 4 -1 1 4 1 1 4 1 -1 4 -1 -1 4 -middleright addshape 2 4 1 1 4 3 1 4 3 -1 4 1 -1 4 - -bottomleft addshape 2 4 -3 -1 4 -1 -1 4 -1 -3 4 -3 -3 4 -bottomcenter addshape 2 4 -1 -1 4 1 -1 4 1 -3 4 -1 -3 4 -bottomright addshape 2 4 1 -1 4 3 -1 4 3 -3 4 1 -3 4 diff --git a/examples/tictactoe/camera.pos b/examples/tictactoe/camera.pos deleted file mode 100644 index 0dc5404..0000000 --- a/examples/tictactoe/camera.pos +++ /dev/null @@ -1,5 +0,0 @@ -junk set global.zoom 64 -junk set camera.p.z -7 -junk set camera.p.y -1 -junk set camera.p.x 0 - diff --git a/examples/tictactoe/game.sh b/examples/tictactoe/game.sh deleted file mode 100755 index e10b452..0000000 --- a/examples/tictactoe/game.sh +++ /dev/null @@ -1,30 +0,0 @@ -#!/bin/bash -turn=$( expr $RANDOM % 2) -cat camera.pos -echo "go. player: $turn" >&2 -stdbuf -oL uniq \ - | grep --line-buffered action \ - | stdbuf -oL cut '-d ' -f1,3 | while read user group;do - if grep "_reset" <<<$group >/dev/null;then - printf "%s deleteallexcept .\n" "$user" - cat board - continue - elif grep "_" <<<$group >/dev/null;then -# xmessage "CUT IT OUT" - echo CUT IT OUT > /dev/stderr - continue - else - turn=$(expr \( $turn + 1 \) % 2) - #printf "# turn: %d\n" "$turn" > /dev/stderr - printf "$user deletegroup %s\n" "$group" - #printf "$user deletegroup %s\n" "$group" > /dev/stderr -#need to get the first point of the group clicked and translate the new shape by that much - translatex="$(grep "$group" board | grep -v '^#' | tr -s ' ' | cut '-d ' -f5)" - translatey="$(grep "$group" board | grep -v '^#' | tr -s ' ' | cut '-d ' -f6)" - cat "marker$turn" - printf "%s move %s %s 2\n" "_marker" "$(expr "$translatex")" "$(expr "$translatey" - 2 )" - #printf "%s move %s %s 2\n" "_marker" "$(expr "$translatex")" "$(expr "$translatey" - 2 )" >/dev/stderr - grep "$group" board | sed "s/$group/_marker2/g" #this is to make it still show the square around it. - printf "%s renamegroup _marker _marker%s%s\n" "$user" "$(date +%s)" "$RANDOM" - fi - done diff --git a/examples/tictactoe/listen.sh b/examples/tictactoe/listen.sh deleted file mode 100755 index 0318cd2..0000000 --- a/examples/tictactoe/listen.sh +++ /dev/null @@ -1,19 +0,0 @@ -#!/bin/sh - -#mabe not. might be buggier. -#cat board p1out | ncat -lp 1050 > p1in & -#cat board p2out | ncat -lp 1051 > p2in & -echo listening in port 1050 for player 1 and 1051 for player 2 - -mknod pin p -mknod p1out p -mknod p2out p - -cat board p1out | ncat -lp 1050 > pin & -cat board p2out | ncat -lp 1051 > pin & - -cat pin | ./game.sh | tee p1out p2out - -rm pin -rm p1out -rm p2out diff --git a/examples/tictactoe/marker0 b/examples/tictactoe/marker0 deleted file mode 100644 index 5bc0c5c..0000000 --- a/examples/tictactoe/marker0 +++ /dev/null @@ -1,2 +0,0 @@ -_marker addshape 1 2 .5 .5 2 1.5 1.5 2 -_marker addshape 1 2 1.5 .5 2 .5 1.5 2 diff --git a/examples/tictactoe/marker1 b/examples/tictactoe/marker1 deleted file mode 100644 index e7aa5a7..0000000 --- a/examples/tictactoe/marker1 +++ /dev/null @@ -1 +0,0 @@ -_marker addshape 3 4 1.5 1.5 2 .5 1.5 2 .5 .5 2 1.5 .5 2 diff --git a/examples/tictactoe/run b/examples/tictactoe/run deleted file mode 100755 index 8dddc99..0000000 --- a/examples/tictactoe/run +++ /dev/null @@ -1,6 +0,0 @@ -#!/bin/bash -turn=$( expr $RANDOM % 2) -echo "go. player: $turn" -mknod p p -stdbuf -oL cat board p | hackvr "$USER" | ./game.sh > p -rm p diff --git a/examples/xcmd.sh b/examples/xcmd.sh deleted file mode 100755 index 0c230d6..0000000 --- a/examples/xcmd.sh +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/sh -exec $* | xmessage -file - & -- cgit v1.2.3