aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Strapp <strap012@umn.edu>2021-04-29 19:25:36 -0500
committerMatt Strapp <strap012@umn.edu>2021-04-29 19:25:36 -0500
commit8723cf1aa8001925819b6badbf8e57a000e95005 (patch)
tree1393cb8c5efd900430ddcc19cc5166e19e3ef294
parentDelete batchfile; Fix compatibility with old pwsh (diff)
downloadcsci4511w-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.
-rw-r--r--start.bat2
-rw-r--r--start.ps18
2 files changed, 6 insertions, 4 deletions
diff --git a/start.bat b/start.bat
new file mode 100644
index 0000000..1eaa562
--- /dev/null
+++ b/start.bat
@@ -0,0 +1,2 @@
+@echo off
+powershell.exe -NoExit -encodedCommand cABhAHIAYQBtACAAKAAKACAAIAAgACAAWwBQAGEAcgBhAG0AZQB0AGUAcgAoAE0AYQBuAGQAYQB0AG8AcgB5AD0AJAB0AHIAdQBlACkAXQBbAGkAbgB0AF0AJABzACwACgAgACAAIAAgAFsAUABhAHIAYQBtAGUAdABlAHIAKABNAGEAbgBkAGEAdABvAHIAeQA9ACQAdAByAHUAZQApAF0AWwBpAG4AdABdACQAdwAsAAoAIAAgACAAIABbAHMAdwBpAHQAYwBoAF0AJABoAAoAKQAKAGkAZgAgACgAJABoACkAIAB7AAoAIAAgACAAIABXAHIAaQB0AGUALQBPAHUAdABwAHUAdAAgACIAVQBzAGEAZwBlADoAIgAKACAAIAAgACAAV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GgAbwBuADMAIABpAG4AcwB0AGEAbgBjAGUAcwAuACIACgAjACAAUwB0AG8AcAAtAEoAbwBiACAALQBOAGEAbQBlACAAIgBwAHkAdABoAG8AbgAzACIACgB9AA==
diff --git a/start.ps1 b/start.ps1
index be88a5e..a6f26dc 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 {
- 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."}
}