diff options
author | Matt Strapp <strap012@umn.edu> | 2021-04-29 19:25:36 -0500 |
---|---|---|
committer | Matt Strapp <strap012@umn.edu> | 2021-04-29 19:25:36 -0500 |
commit | 8723cf1aa8001925819b6badbf8e57a000e95005 (patch) | |
tree | 1393cb8c5efd900430ddcc19cc5166e19e3ef294 /start.ps1 | |
parent | Delete batchfile; Fix compatibility with old pwsh (diff) | |
download | csci4511w-8723cf1aa8001925819b6badbf8e57a000e95005.tar csci4511w-8723cf1aa8001925819b6badbf8e57a000e95005.tar.gz csci4511w-8723cf1aa8001925819b6badbf8e57a000e95005.tar.bz2 csci4511w-8723cf1aa8001925819b6badbf8e57a000e95005.tar.lz csci4511w-8723cf1aa8001925819b6badbf8e57a000e95005.tar.xz csci4511w-8723cf1aa8001925819b6badbf8e57a000e95005.tar.zst csci4511w-8723cf1aa8001925819b6badbf8e57a000e95005.zip |
Revert "Delete batchfile; Fix compatibility with old pwsh"
This reverts commit fd4da8649395f8b415fcc5580b884aa63c77916b.
Diffstat (limited to '')
-rw-r--r-- | start.ps1 | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -9,7 +9,7 @@ if ($h) { Write-Output "-w (Agent port start)" Write-Output "-h Display this message" } else { - Start-Job -scriptblock { python3 ./python/dotsandboxes/dotsandboxesserver.py $s} + python3 ./python/dotsandboxes/dotsandboxesserver.py $s & Write-Output "Web server running on http://127.0.0.1:$s" for ($i=1 ; $i -le 2 ; $i++) { Write-Output "Available Agents:" @@ -21,15 +21,15 @@ if ($h) { switch ($agent) { 1 { Write-Output "Random Agent running on ws://127.0.0.1:$w" - Start-Job -scriptblock {python3 ./python/dotsandboxes/dotsandboxesagent.py $w} + python3 ./python/dotsandboxes/dotsandboxesagent.py $w & } 2 { Write-Output "MCTS Agent running on ws://127.0.0.1:$w" - Start-Job -scriptblock { python3 ./python/agent_MCTS.py $w} + python3 ./python/agent_MCTS.py $w & } 3 { Write-Output "AB Agent running on ws://127.0.0.1:$w" - Start-Job -scriptblock { python3 ./python/agent_AB.py $w} + python3 ./python/agent_AB.py $w & } default {Write-Output "Invalid value. Program will now probably break."} } |