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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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
⌂ 换网址