Giter VIP home page Giter VIP logo

playing-cards's Introduction

Hi ๐Ÿ‘‹, I'm Jareth

nydauron ย  nydauron nydauron
  • ๐Ÿ”ญ Iโ€™m currently working on building an infrastructure for my NAS

  • ๐ŸŒฑ Iโ€™m currently learning Ansible

Languages and Tools That I Have Used

flask c cplusplus css3 docker flask git go html5 java javascript linux rust mongodb mysql postgresql postman python qt rust sqlite typescript webassembly

Connect with me!

My LinkedIn My E-Mail

playing-cards's People

Contributors

nydauron avatar pashadia avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

pashadia

playing-cards's Issues

Optimize flags for build script are not used if imported

The overwritten build profiles set the optimization level of build.rs to 3, which significantly speeds up the runtime of generating the lookup table. However, whenever importing playing-cards, these profiles are never applied to the build script.

Here are the runtimes of build.rs according to cargo-timings:
With opt-level=3: 33.69 seconds
By default: 338.37 seconds

Implement other poker hand evaluators

  • Low 2-7 Evaluator
  • Low A-5 Evaluator (LowA5Evaluator)
  • Omaha Evaluator
  • Omaha Hi-Lo Evaluator
  • Drawmaha Evaluator
  • Drawmaha 0 Evaluator
  • Drawmaha 49 Evaluator
  • Shortdeck High Evaluator
  • Razz Evaluator
  • Badugi Evaluator

For fun:

  • Deuces Wild Evaluator (treats Deuces, or any card specified, as wild)

Most of these can piggyback off of HighEvaluator, and others like ShortDeck might need a new lookup table generated.

Fix build script arithmetic overflows

Currently, the build script uses Sneeze's Perfect Hash evaluator to help generate the lookup table, but the original C implementation uses arithmetic overflow. Compiling it locally for tests work, but trying to include playing-cards then attempting to build it results in arithmetic overflow.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.