ataxx

package
v0.0.0-...-489d693 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NULLMOVE = Move{Square{49}, Square{49}}

NULLMOVE ...

Functions

This section is empty.

Types

type Bitboard

type Bitboard struct {
	Data uint64
}

Bitboard ...

func (Bitboard) Count

func (bb Bitboard) Count() int

Count ...

func (Bitboard) Doubles

func (bb Bitboard) Doubles() Bitboard

Doubles ...

func (Bitboard) East

func (bb Bitboard) East() Bitboard

East ...

func (Bitboard) Get

func (bb Bitboard) Get(sq Square) bool

Get ...

func (Bitboard) LSB

func (bb Bitboard) LSB() uint8

LSB ...

func (Bitboard) North

func (bb Bitboard) North() Bitboard

North ...

func (Bitboard) NorthEast

func (bb Bitboard) NorthEast() Bitboard

NorthEast ...

func (Bitboard) NorthWest

func (bb Bitboard) NorthWest() Bitboard

NorthWest ...

func (*Bitboard) Set

func (bb *Bitboard) Set(sq Square)

Set ...

func (Bitboard) Singles

func (bb Bitboard) Singles() Bitboard

Singles ...

func (Bitboard) South

func (bb Bitboard) South() Bitboard

South ...

func (Bitboard) SouthEast

func (bb Bitboard) SouthEast() Bitboard

SouthEast ...

func (Bitboard) SouthWest

func (bb Bitboard) SouthWest() Bitboard

SouthWest ...

func (*Bitboard) Unset

func (bb *Bitboard) Unset(sq Square)

Unset ...

func (Bitboard) West

func (bb Bitboard) West() Bitboard

West ...

type Move

type Move struct {
	From Square
	To   Square
}

Move ...

func NewMove

func NewMove(movestr string) (*Move, error)

NewMove ...

func (*Move) IsDouble

func (move *Move) IsDouble() bool

IsDouble ...

func (*Move) IsSingle

func (move *Move) IsSingle() bool

IsSingle ...

func (Move) String

func (move Move) String() string

type Position

type Position struct {
	// contains filtered or unexported fields
}

Position ...

func NewPosition

func NewPosition(fen string) (*Position, error)

NewPosition ...

func (*Position) CountMoves

func (pos *Position) CountMoves() int

CountMoves ...

func (*Position) Gameover

func (pos *Position) Gameover() bool

Gameover ...

func (*Position) Get

func (pos *Position) Get(sq Square) int

Get ...

func (*Position) GetFen

func (pos *Position) GetFen() string

GetFen ...

func (*Position) LegalMoves

func (pos *Position) LegalMoves() []Move

LegalMoves ...

func (*Position) MakeMove

func (pos *Position) MakeMove(move Move)

MakeMove ...

func (Position) Perft

func (pos Position) Perft(depth int) uint64

Perft ...

func (Position) Print

func (pos Position) Print()

Print ...

func (*Position) Set

func (pos *Position) Set(sq Square, piece int)

Set ...

func (*Position) SetFen

func (pos *Position) SetFen(fen string)

SetFen ...

func (*Position) Them

func (pos *Position) Them() Bitboard

Them ...

func (*Position) Turn

func (pos *Position) Turn() int

Turn ...

func (*Position) Us

func (pos *Position) Us() Bitboard

Us ...

type Square

type Square struct {
	Data uint8
}

Square ...

func (*Square) File

func (sq *Square) File() uint8

File ...

func (*Square) Rank

func (sq *Square) Rank() uint8

Rank ...

Jump to

Keyboard shortcuts

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