ScratchData LogoScratchData
Back to Cukee8's profile

Cribbage Algorithms

CUCukee8•Created July 21, 2020
Cribbage Algorithms
2
2
38 views
View on Scratch

Instructions

Input: -------- Press 'R' to randomly deal yourself 6 cards from a deck, or press the green flag to input a specific hand. Card Syntax: ----------------- Two-character representations of the form [A,2-9,T,J,Q,K][C,D,S,H] ex: 5C, TD, KS Output: ---------- There are two algorithms that offer similar, but slightly different recommendations for which 4 of your 6 cards to keep. - Click "Most Bests" for a high-risk, high-reward algorithm. Finds the four cards that are most frequently the Best Hand for a cut card. Gives you the biggest score if you get one of the X/46 cut cards, but if a different card is cut, your hand may score very low. - Click "Best Avg" for a safe algorithm. Finds the hand with the consistently highest average score across all cut cards. These algorithms do not take into account Pegging, the Dealer, or the Crib.

Description

Turbo Mode (Shift-Click Flag) for optimal performance. This project contains the code to score a cribbage hand (15s, pairs, runs, flushes, nobs) and two algorithms that use different strategies to recommend which 4/6 cards you keep from the original deal.

Project Details

Project ID413026258
CreatedJuly 21, 2020
Last ModifiedOctober 14, 2020
SharedJuly 23, 2020
Visibilityvisible
CommentsAllowed