cosmobobak / viridithas

A superhuman chess engine.
MIT License
94 stars 8 forks source link

perform legality check as eagerly as possible #120

Closed cosmobobak closed 8 months ago

cosmobobak commented 8 months ago
cosmo@tarski:~/external/EngineTests(master)$ python speedup.py
               master               |        eager-legality-check        |
        mu              sigma       |        mu              sigma       |   Sp(1)/Sp(2)      3*sigma   
------------------------------------+------------------------------------+------------------------------------
       1539532.000             0.000|       1555804.000             0.000|      -1.046 %  +/-  0.000 %
       1530557.000         12692.567|       1553141.000          3766.051|      -1.455 %  +/-  1.735 %
       1531255.333          9056.138|       1554172.000          3206.314|      -1.475 %  +/-  1.231 %
       1529433.500          8243.304|       1545311.500         17913.332|      -1.020 %  +/-  2.909 %
       1520611.400         20978.830|       1538209.800         22199.917|      -1.140 %  +/-  2.645 %
       1516499.833         21295.984|       1539127.833         19983.137|      -1.466 %  +/-  3.366 %
       1516236.714         19452.944|       1539063.857         18242.810|      -1.480 %  +/-  3.074 %
       1515893.250         18036.109|       1539006.875         16890.329|      -1.499 %  +/-  2.851 %
       1515734.667         16877.941|       1539491.778         15866.285|      -1.540 %  +/-  2.693 %
       1515067.200         16052.052|       1538727.000         15153.114|      -1.535 %  +/-  2.539 %
       1513741.727         15850.148|       1538956.182         14395.587|      -1.636 %  +/-  2.610 %
       1514316.333         15243.045|       1539788.250         14025.036|      -1.652 %  +/-  2.494 %
       1514388.154         14596.401|       1539682.769         13433.334|      -1.641 %  +/-  2.391 %
       1513926.286         14129.848|       1539806.929         12914.688|      -1.679 %  +/-  2.336 %
       1514910.733         14139.617|       1540214.933         12544.827|      -1.641 %  +/-  2.293 %
       1515350.312         13772.867|       1540778.312         12327.185|      -1.649 %  +/-  2.217 %
       1515118.706         13369.668|       1541277.588         12111.966|      -1.695 %  +/-  2.224 %
       1515008.167         12978.959|       1540971.611         11821.824|      -1.683 %  +/-  2.163 %
       1514997.842         12613.361|       1541470.842         11693.021|      -1.715 %  +/-  2.144 %
       1515234.600         12322.518|       1541844.400         11503.108|      -1.724 %  +/-  2.090 %
       1515507.952         12075.652|       1541977.762         11228.487|      -1.715 %  +/-  2.041 %
       1516249.773         12287.556|       1542025.364         10960.156|      -1.670 %  +/-  2.090 %
       1516115.391         12022.332|       1541997.304         10709.010|      -1.677 %  +/-  2.044 %
       1515771.542         11878.125|       1542159.417         10503.685|      -1.710 %  +/-  2.056 %
       1515482.440         11717.534|       1542082.840         10289.657|      -1.723 %  +/-  2.024 %
       1515826.731         11614.238|       1542375.423         10191.549|      -1.720 %  +/-  1.984 %
       1516029.481         11437.322|       1542265.370         10009.984|      -1.700 %  +/-  1.970 %
       1515609.429         11441.498|       1542214.321          9826.578|      -1.724 %  +/-  1.971 %
       1515160.276         11492.737|       1540183.345         14585.408|      -1.620 %  +/-  2.565 %
       1512089.967         20256.663|       1538289.900         17690.463|      -1.701 %  +/-  2.855 %
       1511023.194         20782.993|       1537110.710         18591.017|      -1.695 %  +/-  2.809 %
       1509342.688         22547.077|       1535528.594         20361.129|      -1.704 %  +/-  2.767 %
       1507502.152         24581.985|       1534078.970         21701.765|      -1.732 %  +/-  2.766 %
       1502751.265         36788.234|       1533372.206         21764.155|      -2.000 %  +/-  5.432 %