Compare commits
No commits in common. "753ca91f74285e30b4df6907107d5e70daa970a7" and "da7f83735b9b36ecef231f50ae4c52923d1aeef9" have entirely different histories.
753ca91f74
...
da7f83735b
2 changed files with 4 additions and 12 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -1,2 +0,0 @@
|
||||||
src/classes/__pycache__/
|
|
||||||
.direnv/
|
|
14
src/game.py
14
src/game.py
|
@ -246,8 +246,6 @@ if __name__ == '__main__':
|
||||||
white = 0
|
white = 0
|
||||||
total_time_black = 0
|
total_time_black = 0
|
||||||
total_time_white = 0
|
total_time_white = 0
|
||||||
total_score_black = 0
|
|
||||||
total_score_white = 0
|
|
||||||
null = 0
|
null = 0
|
||||||
for g in games:
|
for g in games:
|
||||||
black += 1 if g[1] > g[3] else 0
|
black += 1 if g[1] > g[3] else 0
|
||||||
|
@ -255,24 +253,20 @@ if __name__ == '__main__':
|
||||||
null += 1 if g[1] == g[3] else 0
|
null += 1 if g[1] == g[3] else 0
|
||||||
total_time_black += g[2]
|
total_time_black += g[2]
|
||||||
total_time_white += g[4]
|
total_time_white += g[4]
|
||||||
total_score_black += g[1]
|
|
||||||
total_score_white += g[3]
|
|
||||||
|
|
||||||
print("Stats\n---")
|
print("Stats\n---")
|
||||||
print("Games: {} in {:>6}s".format(numbers, total_time_white + total_time_black))
|
print("Games: {} in {:>6}s".format(numbers, total_time_white + total_time_black))
|
||||||
print("Black: {:>2} | ratio: {:>6} | time: {:>8}s | score: {:.>9} | engine: {}".format(
|
print("Black: {:>2} | ratio: {:>6} | time: {:>8}s | engine: {}".format(
|
||||||
black,
|
black,
|
||||||
format(black * 100 / numbers, '3.2f'),
|
black * 100 / numbers,
|
||||||
format(total_time_black, '4.3f'),
|
format(total_time_black, '4.3f'),
|
||||||
total_score_black,
|
|
||||||
bplayer._get_class_name(),
|
bplayer._get_class_name(),
|
||||||
))
|
))
|
||||||
|
|
||||||
print("White: {:>2} | ratio: {:>6} | time: {:>8}s | score: {:.>9} | engine: {}".format(
|
print("White: {:>2} | ratio: {:>6} | time: {:>8}s | engine: {}".format(
|
||||||
white,
|
white,
|
||||||
format(white * 100 / numbers, '3.2f'),
|
white * 100 / numbers,
|
||||||
format(total_time_white, '4.3f'),
|
format(total_time_white, '4.3f'),
|
||||||
total_score_white,
|
|
||||||
wplayer._get_class_name(),
|
wplayer._get_class_name(),
|
||||||
))
|
))
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue