BartMassey / bingomatic

Monte-Carlo Bingo simulator in C
Other
1 stars 0 forks source link

Do not reinitialize card #7

Open BartMassey opened 5 years ago

BartMassey commented 5 years ago

Since "all cards are equal" statistically, there is no need to shuffle up a new card for each new game. Random draws should be sufficient to get our statistics. This would improve performance substantially, since shuffling up a card is way more expensive than running a game.

The marker bitboards (or counters once we move to counters in issue #5) will still have to be cleared for each game.

BartMassey commented 5 years ago

"Fixed" in commit e3a307e. It's not so obvious that this will work for tournament play, though: I think it won't. Imagine the extreme case in which all generated cards for a tournament happened to be identical. That would give some really weird statistics on every game.

Should probably revert this and just make board init fast.