around 16 000 000 playouts limit

Issue #67 new
dsmic created an issue

due to float for playouts, this is the limit :)

The actual limit is between 16 and 17 milion, I forgot to copy :)

bug is critical, as it does not stop thinking, but is going on for ever, as +1 does not change the number of playouts anymore

Comments (4)

  1. Francois van Niekerk repo owner

    Good find! A potential fix is just to use a double, but I'm not sure at what point that would break.

  2. dsmic reporter

    Just do answer this question :)

    detlef@debian-i7-2600:~/tmp$ cat test.c
    #include <stdio.h>
    double t;
    
    void main()
    {
    t=1;
    while (1)
    {
    if (t==t+1) break;
    t*=2;
    }
    printf("max t %f\n",t);
    }
    detlef@debian-i7-2600:~/tmp$ ./a.out
    max t 9007199254740992.000000
    
  3. Francois van Niekerk repo owner

    Technically we can only safely do half that number of playouts, but it should still take many years to reach that, so we're probably safe :)

  4. Log in to comment