Skip to content

Instantly share code, notes, and snippets.

View mooskagh's full-sized avatar

Alexander Lyashuk mooskagh

View GitHub Profile
#!/bin/env python3
import random
import svgwrite
from svgwrite.shapes import Circle, Line, Rect
from svgwrite.container import Group
from svgwrite.masking import Mask
from collections import defaultdict
LOGO = [
This file has been truncated, but you can view the full file.
3 >lcz_id33(0): uci
3 >lcz_id33(1): uci
1966 <lcz_id33(1): id name lczero
1966 <lcz_id33(1): uciok
1966 >lcz_id33(1): isready
1966 <lcz_id33(1): readyok
1975 <lcz_id33(0): id name lczero
1975 <lcz_id33(0): uciok
1975 >lcz_id33(0): isready
1975 <lcz_id33(0): readyok
254304 >lcz_id45_65536(1): position startpos moves d2d4 d7d5 g1f3 c7c5 e2e3 c5d4 e3d4 g8f6 b1c3 g7g6 f3e5 f8g7 f1e2 b8c6 c1f4 e8g8 e5c6 b7c6 e1g1 h7h5 d1d2 c8f5 h2h3 e7e6 f2f3 h5h4 f4g5 a8b8 a1b1
254304 >lcz_id45_65536(1): isready
254465 <lcz_id45_65536(1): readyok
254465 >lcz_id45_65536(1): go infinite
254475 <lcz_id45_65536(1): info depth 7 nodes 1 nps 90 score cp 568 winrate 70.57% time 10 pv f6h5 g5d8
254475 <lcz_id45_65536(1): info depth 8 nodes 3 nps 250 score cp 141 winrate 55.43% time 11 pv f6h5 g5d8 b8d8
254476 <lcz_id45_65536(1): info depth 9 nodes 5 nps 416 score cp 90 winrate 53.48% time 11 pv d8b6 c3a4 b6c7
254476 <lcz_id45_65536(1): info depth 10 nodes 9 nps 750 score cp 223 winrate 58.53% time 11 pv d8e8 b1e1 f6h5
254519 <lcz_id45_65536(1): info depth 11 nodes 17 nps 309 score cp 236 winrate 59.00% time 54 pv d8e8 g2g4 h4g3
254519 <lcz_id45_65536(1): info depth 12 nodes 30 nps 545 score cp 242 winrate 59.21% time 54 pv d8e8 g2g4 h4g3 h3h4
position startpos moves d2d4 d7d5 g1f3 c7c5 e2e3 c5d4 e3d4 g8f6 b1c3 g7g6 f3e5 f8g7 f1e2 b8c6 c1f4 e8g8 e5c6 b7c6 e1g1 h7h5 d1d2 c8f5 h2h3 e7e6 f2f3 h5h4 f4g5 a8b8 a1b1
go
NNCache: 0/0 hits/lookups = 0.0% hitrate, 0 inserts, 0 size
RNG seed: 0x15a9cd2c690ff499 (thread: 2139330231943126366)
info depth 7 nodes 1 nps 34 score cp 568 winrate 70.57% time 28 pv f6h5 g5d8
info depth 8 nodes 3 nps 90 score cp 141 winrate 55.43% time 32 pv f6h5 g5d8 b8d8
info depth 9 nodes 5 nps 142 score cp 194 winrate 57.41% time 34 pv f6h5 g5d8 b8d8
info depth 10 nodes 9 nps 219 score cp 261 winrate 59.93% time 40 pv d8e8 b1e1 f6h5
info depth 11 nodes 17 nps 326 score cp 265 winrate 60.08% time 51 pv d8e8 g2g4 h4g3
info depth 12 nodes 30 nps 428 score cp 229 winrate 58.74% time 69 pv d8e8 g2g4 h4g3 h3h4
blackMoveToWhiteMove = [
1614, 1615, 1616, 1617, 1618, 1619, 1620, 1611, 1612, 1613, 1608, 1609, 1610,
1606, 1607, 1604, 1605, 1602, 1603, 1600, 1601, 1598, 1599, 1638, 1639, 1640,
1641, 1642, 1643, 1644, 1634, 1635, 1636, 1637, 1630, 1631, 1632, 1633, 1628,
1629, 1626, 1627, 1624, 1625, 1622, 1623, 1621, 1663, 1664, 1665, 1666, 1667,
1668, 1669, 1658, 1659, 1660, 1661, 1662, 1653, 1654, 1655, 1656, 1657, 1651,
1652, 1649, 1650, 1647, 1648, 1646, 1645, 1688, 1689, 1690, 1691, 1692, 1693,
1694, 1683, 1684, 1685, 1686, 1687, 1678, 1679, 1680, 1681, 1682, 1675, 1676,
1677, 1673, 1674, 1672, 1671, 1670, 1713, 1714, 1715, 1716, 1717, 1718, 1719,
1708, 1709, 1710, 1711, 1712, 1703, 1704, 1705, 1706, 1707, 1700, 1701, 1702,
project('lc0', 'cpp')
# default_options : ['cpp_std=c++17'])
add_global_arguments('-std=c++17', '-Wthread-safety', language : 'cpp')
cc = meson.get_compiler('cpp')
# Installed from https://github.com/FloopCZ/tensorflow_cc
tensorflow_cc = declare_dependency(
include_directories: include_directories(
'/usr/local/include/tensorflow',
$ pacaur -S pgn-extract
:: Package pgn-extract not found in repositories, trying AUR...
:: resolving dependencies...
:: looking for inter-conflicts...
AUR Packages (1) pgn-extract-17.38-1
:: Proceed with installation? [Y/n]
:: Retrieving package(s)...
0000000000000000000000000001000000000000010000011000000000000000 1
0000000000000000000000000000000000000000000000000000000000000000 1
0000000000000000000000000000000000000000000100000000000000000000 1
0000000000000000000000000000000000000000000000000000000000001000 1
0000000000000000000000000000000000000000000001000000000000000000 1
0000000000000000000000000000000000000000000000000000000001000000 1
0000000011100000000000000000000100000000000000000000000000000000 1
0000000000000000000000000000000000000000000000000000000000000000 1
0000000000000000000000000000000000000000000000000100000000000000 1
0001000100000000000000000000000000000000000000000000000000000000 1
This file has been truncated, but you can view the full file.
<< position startpos
<< go infinite
>> info depth 2 seldepth 2 time 32 nodes 2 score cp 20 hashfull 0 nps 62 pv c2c4 g8f6
>> info depth 3 seldepth 3 time 39 nodes 7 score cp 17 hashfull 0 nps 179 pv c2c4 c7c6 b1c3
>> info depth 3 seldepth 4 time 42 nodes 16 score cp 18 hashfull 0 nps 380 pv c2c4 c7c6 b1c3 d7d5
>> info depth 3 seldepth 5 time 47 nodes 35 score cp 17 hashfull 0 nps 744 pv c2c4 c7c5 g1f3 g8f6 b1c3
>> info depth 3 seldepth 6 time 51 nodes 64 score cp 19 hashfull 0 nps 1254 pv c2c4 c7c5 g1f3 g8f6 b1c3 e7e6
>> info depth 3 seldepth 7 time 64 nodes 95 score cp 19 hashfull 0 nps 1484 pv c2c4 c7c5 g1f3 e7e6 e2e4 b8c6 d2d4
>> info depth 3 seldepth 8 time 75 nodes 142 score cp 19 hashfull 0 nps 1893 pv c2c4 c7c5 g1f3 e7e6 e2e4 b8c6 d2d4 c5d4
>> info depth 3 seldepth 9 time 90 nodes 331 score cp 20 hashfull 1 nps 3677 pv c2c4 c7c5 g1f3 e7e6 e2e4 g8f6 b1c3 b8c6
<< position startpos
<< go wtime 6300000 btime 6300000 winc 5000 binc 5000
>> info depth 2 seldepth 2 time 28 nodes 2 score cp 20 hashfull 0 nps 71 pv c2c4 g8f6
>> info depth 3 seldepth 3 time 39 nodes 7 score cp 17 hashfull 0 nps 179 pv c2c4 c7c6 b1c3
>> info depth 3 seldepth 4 time 43 nodes 16 score cp 18 hashfull 0 nps 372 pv c2c4 c7c6 b1c3 d7d5
>> info depth 3 seldepth 5 time 47 nodes 35 score cp 17 hashfull 0 nps 744 pv c2c4 c7c5 g1f3 g8f6 b1c3
>> info depth 3 seldepth 6 time 54 nodes 71 score cp 19 hashfull 0 nps 1314 pv c2c4 c7c5 g1f3 g8f6 b1c3 e7e6
>> info depth 3 seldepth 7 time 58 nodes 101 score cp 19 hashfull 0 nps 1741 pv c2c4 c7c5 g1f3 b8c6 d2d4 c5d4 f3d4
>> info depth 3 seldepth 8 time 67 nodes 166 score cp 20 hashfull 1 nps 2477 pv c2c4 c7c5 g1f3 e7e6 e2e4 g8f6 e4e5 f6g8
>> info depth 3 seldepth 9 time 75 nodes 263 score cp 21 hashfull 1 nps 3506 pv c2c4 c7c5 g1f3 e7e6 e2e4 g8f6 b1c3 b8c6 a1b1