senzee

package module
v0.0.0-...-8ebe5d0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 26, 2013 License: BSD-3-Clause Imports: 6 Imported by: 0

README

senzee-go

An implementation of Paul Senzee's (http://www.paulsenzee.com/) evaluator in golang.

Documentation

Overview

Credit: http://senzee.blogspot.com

Index

Constants

View Source
const TableSize = 133784560

Variables

This section is empty.

Functions

func CardToInt

func CardToInt(c cactuskev.Card) int64

Convert to a one-bit representation

func HandToInt

func HandToInt(h cactuskev.Hand) int64

func IntToCard

func IntToCard(n uint64) cactuskev.Card

func NewHand

func NewHand(n int) cactuskev.Hand

func NewHand5

func NewHand5() *hand5

Types

type Table

type Table [TableSize]int16

func Load

func Load(name string) (*Table, error)

func New

func New() *Table

func (*Table) Eval

func (t *Table) Eval(h cactuskev.Hand) cactuskev.Score

func (*Table) Store

func (t *Table) Store(name string) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL