8000 GitHub - cszczepaniak/cribbage-scorer: An automatic hand scorer for the card game of cribbage.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

An automatic hand scorer for the card game of cribbage.

Notifications You must be signed in to change notification settings

cszczepaniak/cribbage-scorer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

95 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cribbage Scorer

A collection of automatic hand scorers for the card game of cribbage.

My initial goal was to be able to score every cribbage hand. Now this is a good place for me to learn new languages and understand how well my solutions are performing against others.

Results

See the latest results
===========================================================================
impl-go

real	0m0.331s
user	0m0.000s
sys	0m0.015s

===========================================================================
impl-rust

real	0m3.057s
user	0m0.000s
sys	0m0.015s

Caveat: I'm sure Rust could be as fast or faster than Go -- I'm just not well-versed enough in it to squeeze out all of that performance!

Running All Solutions

To run all of the solutions, run

./run.sh

The solutions are benchmarked in a VERY rudimentary way (literally just using time), and the results will be written to results.txt.

Adding a Solution

A solution must fulfill the following requirements:

  1. It must be in a folder with the prefix impl-
  2. It must contain an executable bash script called build.sh which build the executable and puts it in the folder ./bin/impl-* (relative to your implementation's directory, and with the executable having the same name as this directory)

If these two things are satisfied, run.sh will know what to do with your solution.

About

An automatic hand scorer for the card game of cribbage.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0