aboutsummaryrefslogtreecommitdiffstats
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
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 '')
-rw-r--r--start.bat2
-rw-r--r--start.ps18
2 files changed, 4 insertions, 6 deletions
diff --git a/start.bat b/start.bat
deleted file mode 100644
index 1eaa562..0000000
--- a/start.bat
+++ /dev/null
@@ -1,2 +0,0 @@
-@echo off
-powershell.exe -NoExit -encodedCommand cABhAHIAYQBtACAAKAAKACAAIAAgACAAWwBQAGEAcgBhAG0AZQB0AGUAcgAoAE0AYQBuAGQAYQB0AG8AcgB5AD0AJAB0AHIAdQBlACkAXQBbAGkAbgB0AF0AJABzACwACgAgACAAIAAgAFsAUABhAHIAYQBtAGUAdABlAHIAKABNAGEAbgBkAGEAdABvAHIAeQA9ACQAdAByAHUAZQApAF0AWwBpAG4AdABdACQAdwAsAAoAIAAgACAAIABbAHMAdwBpAHQAYwBoAF0AJABoAAoAKQAKAGkAZgAgACgAJABoACkAIAB7AAoAIAAgACAAIABXAHIAaQB0AGUALQBPAHUAdABwAHUAdAAgACIAVQBzAGEAZwBlADoAIgAKACAAIAAgACAAVwByAGkAdABlAC0ATwB1AHQAcA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EAbgBjAGUAcwAuACIACgAjACAAUwB0AG8AcAAtAEoAbwBiACAALQBOAGEAbQBlACAAIgBwAHkAdABoAG8AbgAzACIACgB9AA==
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."}
}