"When I play two random players against each and it
gets to the end of the game I get an 'Unable to create
think thread: Not enough resources to create thread'
See if you can reproduce this. Run something like:
watch -n 10 ps ax | grep brutalchess
To see how many threads we have open at any given time.
I don't think you are supposed to explicitly free
threads. We might have to SDL_KillThread if they aren't
Could also be a problem with RandomPlayer.