bettermint commited on
Commit
1bde2cd
·
verified ·
1 Parent(s): d828cf7

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -3
main.py CHANGED
@@ -36,8 +36,6 @@ class EngineChess:
36
  if not self._stockfish.stdin:
37
  raise BrokenPipeError()
38
  if self._stockfish.poll() is None and not self._has_quit_command_been_sent:
39
- if self._debug_view:
40
- print(f">>> {command}\n")
41
  self._stockfish.stdin.write(f"{command}\n")
42
  self._stockfish.stdin.flush()
43
  if command == "quit":
@@ -83,7 +81,7 @@ app.add_middleware(
83
  async def websocket_endpoint(websocket: WebSocket, version: str):
84
  await websocket.accept()
85
 
86
- stockfish = EngineChess([f"engines/stockfish/stockfish-{version}-uci]")
87
 
88
  async def read_from_socket(websocket: WebSocket):
89
  async for data in websocket.iter_text():
 
36
  if not self._stockfish.stdin:
37
  raise BrokenPipeError()
38
  if self._stockfish.poll() is None and not self._has_quit_command_been_sent:
 
 
39
  self._stockfish.stdin.write(f"{command}\n")
40
  self._stockfish.stdin.flush()
41
  if command == "quit":
 
81
  async def websocket_endpoint(websocket: WebSocket, version: str):
82
  await websocket.accept()
83
 
84
+ stockfish = EngineChess([f"engines/stockfish/stockfish-{version}-uci"])
85
 
86
  async def read_from_socket(websocket: WebSocket):
87
  async for data in websocket.iter_text():