Skip to content

notnil/joker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

joker

Poker hand evaluation and ranking written in go (golang)

To install run:

go get github.com/notnil/joker/hand
package main

import (
	"fmt"

	"github.com/notnil/joker/hand"
)

func main() {
	deck := hand.NewDealer().Deck()
	h1 := hand.New(deck.PopMulti(5))
	h2 := hand.New(deck.PopMulti(5))

	fmt.Println(h1)
	fmt.Println(h2)

	hands := hand.Sort(hand.SortingHigh, h1, h2)
	fmt.Println("Winner is:", hands[0].Cards())
}

About

Poker library written in go (golang)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages