You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

run.sh 461 B

123456789101112131415161718
  1. #!/usr/local
  2. nice -10 ./Server/Server --port 8888 --studentCount 4 --trickerCount 1 --gameTimeInSecond 600
  3. sleep 5
  4. for k in {1..2}
  5. do
  6. pushd /usr/local/team$k
  7. for i in {1..5}
  8. do
  9. if [-f "./capi$i"]; then
  10. j=$((i - 1))
  11. nice -0 ./capi$i -I 127.0.0.1 -P 8888 -p $j
  12. elif [-f "./python/player$i.py"]; then
  13. nice -0 python3 ./python/player$i.py -I 127.0.0.1 -P 8888 -p $j
  14. fi
  15. done
  16. popd
  17. done