aboutsummaryrefslogtreecommitdiffstats
path: root/start.ps1
diff options
context:
space:
mode:
authorMatt Strapp <strap012@umn.edu>2021-04-29 19:17:46 -0500
committerMatt Strapp <strap012@umn.edu>2021-04-29 19:17:46 -0500
commitfd4da8649395f8b415fcc5580b884aa63c77916b (patch)
tree7aff4a064ffdcd8d08f03a3439b1ac5cf75ff0d5 /start.ps1
parentAdd a scummy workaround (diff)
downloadcsci4511w-fd4da8649395f8b415fcc5580b884aa63c77916b.tar
csci4511w-fd4da8649395f8b415fcc5580b884aa63c77916b.tar.gz
csci4511w-fd4da8649395f8b415fcc5580b884aa63c77916b.tar.bz2
csci4511w-fd4da8649395f8b415fcc5580b884aa63c77916b.tar.lz
csci4511w-fd4da8649395f8b415fcc5580b884aa63c77916b.tar.xz
csci4511w-fd4da8649395f8b415fcc5580b884aa63c77916b.tar.zst
csci4511w-fd4da8649395f8b415fcc5580b884aa63c77916b.zip
Delete batchfile; Fix compatibility with old pwsh
Diffstat (limited to 'start.ps1')
-rw-r--r--start.ps18
1 files changed, 4 insertions, 4 deletions
diff --git a/start.ps1 b/start.ps1
index a6f26dc..be88a5e 100644
--- a/start.ps1
+++ b/start.ps1
@@ -9,7 +9,7 @@ if ($h) {
Write-Output "-w (Agent port start)"
Write-Output "-h Display this message"
} else {
- python3 ./python/dotsandboxes/dotsandboxesserver.py $s &
+ Start-Job -scriptblock { 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"
- python3 ./python/dotsandboxes/dotsandboxesagent.py $w &
+ Start-Job -scriptblock {python3 ./python/dotsandboxes/dotsandboxesagent.py $w}
}
2 {
Write-Output "MCTS Agent running on ws://127.0.0.1:$w"
- python3 ./python/agent_MCTS.py $w &
+ Start-Job -scriptblock { python3 ./python/agent_MCTS.py $w}
}
3 {
Write-Output "AB Agent running on ws://127.0.0.1:$w"
- python3 ./python/agent_AB.py $w &
+ Start-Job -scriptblock { python3 ./python/agent_AB.py $w}
}
default {Write-Output "Invalid value. Program will now probably break."}
}