joelong01 / rust_cribbage_core Goto Github PK
View Code? Open in Web Editor NEWcore cribbage service implemented in rust
core cribbage service implemented in rust
per the JS implementation
need a way to add a score for when a Jack is cut (dealer gets 2 points)
we need a rest api that is compatible with https://github.com/joelong01/CribbageJS (or https://github.com/joelong01/CribbageUi.Js needs to be updated if changes are required)
the goal at the end is to be able to play a game against the service.
this will have to be a breaking change to the web api... :(
from https://github.com/joelong01/CribbageJS/blob/master/Cribbage/Game/selectcards.js
//
// countedCards: an array of cards that have already been counted
// cardsLeft: choose one of these
// currentCount = the sum of countedCards.Value
function selectCountedCard(countedCards, cardsLeft, currentCount)
{
}
it should run as is in the repos, but it has been a couple of years and might require an npm update, in which case all bets are off.
we need to get them working asap so that we can switch to using the rest service built in rust.
see https://github.com/mbrobbel/rustfmt-check for a possible way to make it work.
fix the loop that checks for runs in counting scoring so that it doesn't have the extra "break" in it.
in particular, we need to write tests that verify the cards that we say are part of the score are actually part of the score.
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.