bartmassey / bingomatic Goto Github PK
View Code? Open in Web Editor NEWMonte-Carlo Bingo simulator in C
License: Other
Monte-Carlo Bingo simulator in C
License: Other
Right now, cards are played sequentially. An arbitrary number of cards should be playable in parallel.
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.
The "rdrand" random number stuff in this repo should be moved into its own repo. Also, should be fixed in the non-RDRAND case to use a faster and more reliable generator than lrand48()
: preferably something with a large state.
Right now, RDRAND is the limiting factor in performance. Its output is not being used very efficiently, but still it is about 5x slower than multiple calls to lrand48()
. Its quality still justifies having it, I guess.
It would be nice to use the on-chip SIMD support for integers bigger than 64 bits. There are some nice things that could be done with this.
The current implementation of randrange()
is a hacked-up version of somebody's blog post code. An effort should be made to verify that it is correct.
As stated in issue #2, right now the performance bottleneck is the RNG. Once that is fixed, the bitboards should be replaced with counters to improve performance.
An array of counters per card can be used along with a per-marker array of counter indices to bump. This should reduce the per-card win test cost quite a bit.
The center "free square" is currently ignored. Some sort of handling should be introduced.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.