aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Strapp <strap012@umn.edu>2021-04-29 11:10:47 -0500
committerMatt Strapp <strap012@umn.edu>2021-04-29 11:10:47 -0500
commit8bebafccdfe97f5e31b0a3260e47de6b8adaae25 (patch)
treeb20b2f3145a2c4ed6cf8e6dc8b009b13a35ae378
parentFix some errors and rearrange some variables (diff)
downloadcsci4511w-8bebafccdfe97f5e31b0a3260e47de6b8adaae25.tar
csci4511w-8bebafccdfe97f5e31b0a3260e47de6b8adaae25.tar.gz
csci4511w-8bebafccdfe97f5e31b0a3260e47de6b8adaae25.tar.bz2
csci4511w-8bebafccdfe97f5e31b0a3260e47de6b8adaae25.tar.lz
csci4511w-8bebafccdfe97f5e31b0a3260e47de6b8adaae25.tar.xz
csci4511w-8bebafccdfe97f5e31b0a3260e47de6b8adaae25.tar.zst
csci4511w-8bebafccdfe97f5e31b0a3260e47de6b8adaae25.zip
Allow non-log shell usage
Diffstat (limited to '')
-rwxr-xr-xstart.sh33
1 files changed, 21 insertions, 12 deletions
diff --git a/start.sh b/start.sh
index 0f5c0c8..5d37d14 100755
--- a/start.sh
+++ b/start.sh
@@ -29,19 +29,28 @@ do
;;
esac
done
-echo ""
-read -p "Columns of board: " c
-read -p "Rows of board: " r
-read -p "Number of games to run: " n
-read -p "Output file name (please include '.csv'): " o
-echo ""
-read -p "This will now run with the given arguments in the foreground. Hit enter to confirm." TRASH
-(python3 python/evaluate.py -c $c -r $r -n $n -o $o ws://127.0.0.1:20001 ws://127.0.0.1:20002) > evaluate.log
-echo ""
-echo "Log of evaluate python script located in evaluate.log"
-echo "Evaluate has finished! Check the output in $o"
-echo "Press enter to finish."
+read "Do you want to run the logger? (Y/N)" log
+case $log in
+ 'Y' | 'y')
+ echo ""
+ read -p "Columns of board: " c
+ read -p "Rows of board: " r
+ read -p "Number of games to run: " n
+ read -p "Output file name (please include '.csv'): " o
+ echo ""
+ read -p "This will now run evaluate.py with the given arguments in the foreground. Hit enter to confirm." TRASH
+ (python3 python/evaluate.py -c $c -r $r -n $n -o $o ws://127.0.0.1:20001 ws://127.0.0.1:20002) > evaluate.log
+ echo ""
+ echo "Log of evaluate python script located in evaluate.log"
+ echo "Evaluate has finished! Check the output in $o"
+ ;;
+ *)
+ echo "Web interface available at http://127.0.0.1:8080"
+ ;;
+
+
+echo "Press enter to exit, killing all agents and the web server."
read TRASH;
trap "exit" INT TERM