From 9e49dcb25e7ccea65948adb07be6206f867b79f5 Mon Sep 17 00:00:00 2001 From: epoch Date: Thu, 29 Mar 2018 19:48:58 -0500 Subject: moved tictactoe and made the reset button not move user back to default position --- examples/tictactoe/run | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100755 examples/tictactoe/run (limited to 'examples/tictactoe/run') diff --git a/examples/tictactoe/run b/examples/tictactoe/run new file mode 100755 index 0000000..8dddc99 --- /dev/null +++ b/examples/tictactoe/run @@ -0,0 +1,6 @@ +#!/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 -- cgit v1.2.3