Skip to content

Commit

Permalink
pp
Browse files Browse the repository at this point in the history
  • Loading branch information
vondele committed Jul 12, 2024
1 parent 7fcfb90 commit 1a0c9d2
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
9 changes: 6 additions & 3 deletions worker/games.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import multiprocessing
import os
import platform
import pprint
import random
import re
import shutil
Expand Down Expand Up @@ -899,8 +900,9 @@ def result_to_score(_result):
odd = round_
even = round_ + 1
if odd in rounds.keys() and even in rounds.keys():
print(
"Hi there:", rounds
print("In update pentanomial")
pprint.pp(
rounds
) # TODO TODO https://github.com/Disservin/fast-chess/issues/532
assert rounds[odd]["white"][0:3] == "New"
assert rounds[odd]["white"] == rounds[even]["black"]
Expand Down Expand Up @@ -940,8 +942,9 @@ def results_to_score(results):
assert sum(LDW) == 2 * sum(rounds["pentanomial"]) + sum(rounds["trinomial"])
epsilon = 1e-4
print(
"Here we have: ", wld, rounds, s3, s5
"In validate pentanomial: ", wld, s3, s5
) # TODO TODO https://github.com/Disservin/fast-chess/issues/532
pprint.pp(rounds)
assert abs(s5 - s3) < epsilon


Expand Down
2 changes: 1 addition & 1 deletion worker/sri.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"__version": 241, "updater.py": "Mg+pWOgGA0gSo2TuXuuLCWLzwGwH91rsW1W3ixg3jYauHQpRMtNdGnCfuD1GqOhV", "worker.py": "issccB3PGLe0bIkErRc7cKeTvf8LoLQTY8WH5i1CdZpxX0fSed83ShukmDG+nmwM", "games.py": "WwM9V10+yPMIKifklbLXafGnjRAZYZeRA3AjMVxm3a6qGS3LjJbm4sT+nAOOpVE2"}
{"__version": 241, "updater.py": "Mg+pWOgGA0gSo2TuXuuLCWLzwGwH91rsW1W3ixg3jYauHQpRMtNdGnCfuD1GqOhV", "worker.py": "il9Br64uOo/0piT8KevgJ2Vp9m699ctH6YcQAihh41dOgUZCdH1Lvux11RvzqHL6", "games.py": "AEQ9jED4Th8SjCTlJTT0PnKRgcjRxAhsa4HwHu7IQyWjhWYcp3CmDqNsK8x1xuAt"}
4 changes: 2 additions & 2 deletions worker/worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -457,10 +457,10 @@ def setup_fastchess(worker_dir, compiler):

# build it ourselves
try:
fastchess_sha = "553339ce0b4e3af03b632b400ee37a0a250eac4d"
username = "gahtan-syarif"
fastchess_sha = "47930ae1a2350cdf8d3a58cba4e1128a461249b8"
username = "Disservin"
fastchess_sha = "c5ae41a86e93671548f0a06107435c001d5a4222"
username = "gahtan-syarif"
item_url = (
"https://api.github.com/repos/"
+ username
Expand Down

0 comments on commit 1a0c9d2

Please sign in to comment.