diff options
Diffstat (limited to 'api')
-rw-r--r-- | api/game/voerbak_connector.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/api/game/voerbak_connector.py b/api/game/voerbak_connector.py index f16a016..2e90ad4 100644 --- a/api/game/voerbak_connector.py +++ b/api/game/voerbak_connector.py @@ -19,11 +19,10 @@ class bord: self.board = "0" * (w * h) self.board_full = False self.win_positions = [] - self.process = subprocess.Popen([VOERBAK_LOCATION], + self.process = subprocess.Popen([VOERBAK_LOCATION, f"-w {w}", f"-h {h}"], stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=None) - self.process.stdin.write(bytearray(f"{w} {h}\n", "utf-8")) self.process.stdin.flush() def get_output(self): |