13 base_dir=$(dirname $(readlink -f $BASH_SOURCE))
17 coproc computer (run_program data)
20 set_robot_start_on_white 1
22 check_pid=$computer_PID
24 while ( kill -0 $check_pid > /dev/null 2>&1 ); do
25 get_robot_paint_colour >&${computer[1]}
26 read -u ${computer[0]} direction
27 read -u ${computer[0]} colour
28 do_robot_paint_and_move $direction $colour
32 # just incase the spinner is still about