Spaces:
Sleeping
Sleeping
Remove redundant UCI_Variant and UCI_Chess960 initialization
Browse files- engine_wrapper.py +0 -8
engine_wrapper.py
CHANGED
|
@@ -118,19 +118,11 @@ class UCIEngine(EngineWrapper):
|
|
| 118 |
self.engine.info_handlers.append(info_handler)
|
| 119 |
|
| 120 |
def first_search(self, board, movetime):
|
| 121 |
-
self.engine.setoption({
|
| 122 |
-
"UCI_Variant": type(board).uci_variant,
|
| 123 |
-
"UCI_Chess960": board.chess960
|
| 124 |
-
})
|
| 125 |
self.engine.position(board)
|
| 126 |
best_move, _ = self.engine.go(movetime=movetime)
|
| 127 |
return best_move
|
| 128 |
|
| 129 |
def search(self, board, wtime, btime, winc, binc):
|
| 130 |
-
self.engine.setoption({
|
| 131 |
-
"UCI_Variant": type(board).uci_variant,
|
| 132 |
-
"UCI_Chess960": board.chess960
|
| 133 |
-
})
|
| 134 |
self.engine.position(board)
|
| 135 |
best_move, _ = self.engine.go(
|
| 136 |
wtime=wtime,
|
|
|
|
| 118 |
self.engine.info_handlers.append(info_handler)
|
| 119 |
|
| 120 |
def first_search(self, board, movetime):
|
|
|
|
|
|
|
|
|
|
|
|
|
| 121 |
self.engine.position(board)
|
| 122 |
best_move, _ = self.engine.go(movetime=movetime)
|
| 123 |
return best_move
|
| 124 |
|
| 125 |
def search(self, board, wtime, btime, winc, binc):
|
|
|
|
|
|
|
|
|
|
|
|
|
| 126 |
self.engine.position(board)
|
| 127 |
best_move, _ = self.engine.go(
|
| 128 |
wtime=wtime,
|