package
1.0.0-beta68
Repository: https://github.com/gocaine/go-dart.git
Documentation: pkg.go.dev

# Functions

AssertCurrents assertion on currentPlayer and CurrentDart.
AssertEquals classical assertEquals.
AssertError assert the error content.
AssertGameState assert the GameState is as exepcetd.
AssertName assert the name is what expected.
AssertRank assert the ranking is what expected.
AssertScore assert the score is what expected.
NewGameCountUp : GameCountUp constructor using a OptionCountUp.
NewGameCricket : GameCricket constructor using a OptionCricket.
NewGameHighest : GameHighest constructor using a OptionHighest.
NewGamex01 : Gamex01 constructor.

# Structs

BaseGame common Game struct.
CountUp is a highscore Game, winner is the first to obtain a given score or more.
Cricket is a cricket series Game (Cricket, Cut-throat).
Gamex01 is a x01 series Game (301, 501-Double-Out, ...).
Highest is a highscore Game, within a fixed number of visit, winner is the highest score.
OptionCountUp is the struct to handle GameCountUp parameters.
OptionCricket is the struct to handle GameCricket parameters.
OptionHighest is the struct to handle GameHighest parameters.
Optionx01 is the struct to handle Gamex01 parameters.

# Interfaces

Game interface, should be implemented by all game (rules) implems.