ashelly / ace_eval Goto Github PK
View Code? Open in Web Editor NEW7-card Poker Hand Evaluator in 577 bytes
License: MIT License
7-card Poker Hand Evaluator in 577 bytes
License: MIT License
I've been trying to stand up this project. The accuracy and speed tests do not run as-is.
It seems that to run the example code in accuracy_test or speed_test, a function E() needs to be put into the ace_eval.h file. Adding that and a "compress" function allowed me to compile the project and run it - producing the proper, accurate results.
Can you confirm the procedure for running the project? I copied E() and compress() from ace_eval_decompress. Doing so, I get some warnings about benign redefinition of type C4142. But hey, accurate results!
Apologies for not being knowledgeable about this. I am trying to cythonize it and bring it into a language I can work in. Let me know if you'd be interested in having the files included in your project.
I used this compress function:
Card compress(Card a){
a=(a|(a>>1))&0x33333333;
a=(a|(a>>2))&0x0f0f0f0f;
a=(a|(a>>4))&0x00ff00ff;
a=(a|(a>>8))&0x0000ffff;
return a>>3;
}
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.