Documentation ¶
Index ¶
- Variables
- func BluffCheck(input string) string
- func CheckEndOfTurn(players []Player, underTheGun int, turns *int) bool
- func DetermineWinners(hands []card.HandStrength) []int
- func DetermineWinnersSide(hands []card.HandStrength) ([]int, []int)
- func GenerateName(amount int) ([]string, error)
- func PrepareRunningGame()
- func PrintState(deal Deal)
- func ReadHand(pl Player) (string, string)
- func RobotTurn(robot Player, playerNumber int, community []card.Card, amount int) (string, error)
- func RunDeal(deal *Deal)
- func RunGame(set ux.Settings)
- type Deal
- type GameInstance
- type Player
Constants ¶
This section is empty.
Variables ¶
View Source
var GameNames = []string{"Mamadou", "Abdoulaye", "Aminata", "Oumou",
"Lethabo", "Siphosethu", "Melokuhle", "Amadou",
"Mateo", "Noah", "Emma", "Catalina",
"José", "Miguel", "Maria", "Helena",
"Santiago", "Emiliano", "Sofía", "Camila",
"Liam", "Oliver", "Eli", "Henry", "Ben", "James", "Robert", "Bill", "Richard", "Joe", "Olivia", "Charlotte", "Sophia", "Ava", "Evelyn", "Mary", "Linda", "Elizabeth", "Susan", "Margaret",
"Mohamed", "Ali", "Omar", "Khaled", "Maryam", "Hur", "Malak", "Farah",
"Mùchén", "Yǔzé", "Ruòxī", "Yǐmò",
"Shivansh", "Kabir", "Kiaan", "Viraj", "Aditi", "Kiara", "Vamika", "Mehav",
"David", "Eitan", "Avigail", "Maya",
"Aoi", "Haruto", "Himari", "Anzu",
"Jacob", "Angelo", "Althea", "Nathalie",
"Seo-jun", "Ju-won", "Ji-an", "Ha-rin",
"Noel", "Mateo", "Amelie", "Ambra",
"Luka", "Petar", "Lucija", "Marta",
"Gabriel", "Maël", "Jade", "Lina",
"Elias", "Theo", "Mia", "Ella",
"Leonardo", "Mattia", "Aurora", "Alice",
"Jack", "Hudson", "Isla", "Matilda"}
Functions ¶
func BluffCheck ¶
func DetermineWinners ¶
func DetermineWinners(hands []card.HandStrength) []int
Compares every player's best hand and determines the winner(s).
func DetermineWinnersSide ¶
func DetermineWinnersSide(hands []card.HandStrength) ([]int, []int)
Compares every player's best hand and determines the winner(s).
func GenerateName ¶
Generates robot names. Should only be called from the game package.
func PrepareRunningGame ¶
func PrepareRunningGame()
func PrintState ¶
func PrintState(deal Deal)
Types ¶
type Deal ¶
type Deal struct { Winners []Player //Who won the deal // contains filtered or unexported fields }
func (Deal) CheckWinner ¶
type GameInstance ¶
type GameInstance struct {
// contains filtered or unexported fields
}
type Player ¶
type Player struct { Name string //Name of the player Hand [2]card.Card //The hole cards of the player. Chips int //How many chips the player has. Bet int //The player's bet HasFolded bool //Whether the player has folded in a particular deal. HasRaised bool //Whether the player has raised in a particular deal. // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.