Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions polyglot.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[Polyglot]
EngineName=Sunfish
EngineCommand=python3 sunfish.py
EngineDirectory=.
Log=true
LogFile=polyglot.log
XBoard=true

5 changes: 4 additions & 1 deletion tools/uci.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,10 @@ def run(sunfish_module, startpos):
think = int(movetime) / 1000

elif args[1] == "wtime":
wtime, btime, winc, binc = [int(a) / 1000 for a in args[2::2]]
times = [int(a) / 1000 for a in args[2::2]]
while len(times) < 4:
times.append(0)
wtime, btime, winc, binc = times
# we always consider ourselves white, but uci doesn't
if len(hist) % 2 == 0:
wtime, winc = btime, binc
Expand Down