C# Class Queem.Core.BitBoards.Helpers.BitBoardHelper

Afficher le fichier Open project: Ribtoks/Queem Class Usage Examples

Méthodes publiques

Свойство Type Description
FilesMasks ulong[]
MainDiagonal ulong
MirroredBytes byte[]
MoveTypes MoveType[][][][]
NotABFile ulong
NotAFile ulong
NotGHFile ulong
NotHFile ulong
RankToFileArray ulong[]
RanksMasks ulong[]
RealPositions ulong[]
lsb_64_table int[]

Méthodes publiques

Méthode Description
BitScan ( ulong bb ) : int
BitsCount ( ulong board ) : int
FileMask ( File file ) : ulong
FlipDiagonalA1H8 ( ulong board ) : ulong
FlipDiagonalA8H1 ( ulong board ) : ulong
FlipHorizontal ( ulong board ) : ulong
FlipVertical ( ulong board ) : ulong
FromString ( string s ) : ulong
GenerateMirroredByte ( byte b ) : byte
GenerateRealPositions ( ) : ulong[]
GetEmptyBoardString ( ) : string
GetFileFromRank ( byte rank ) : ulong
GetFileFromSquare ( Square sq ) : File
GetMirroredByte ( byte b ) : byte
GetOneBitNumber ( int rank, int file ) : ulong
GetRankFromAFile ( ulong A_File ) : byte
GetRankFromSquare ( Square sq ) : int
GetSquare ( int rank, int file ) : Square
RankMask ( int rank ) : ulong
Rotate90Clockwise ( ulong board ) : ulong
Rotate90CounterClockwise ( ulong board ) : ulong
RotateLeft ( ulong x, int s ) : ulong
RotateRight ( ulong x, int s ) : ulong
ShiftEastOne ( ulong b ) : ulong
ShiftNorhtWestOne ( ulong b ) : ulong
ShiftNorthEastEast ( ulong b ) : ulong
ShiftNorthEastOne ( ulong b ) : ulong
ShiftNorthNorthEast ( ulong b ) : ulong
ShiftNorthNorthWest ( ulong b ) : ulong
ShiftNorthOne ( ulong b ) : ulong
ShiftNorthWestWest ( ulong b ) : ulong
ShiftSouthEastEast ( ulong b ) : ulong
ShiftSouthEastOne ( ulong b ) : ulong
ShiftSouthOne ( ulong b ) : ulong
ShiftSouthSouthEast ( ulong b ) : ulong
ShiftSouthSouthWest ( ulong b ) : ulong
ShiftSouthWestOne ( ulong b ) : ulong
ShiftSouthWestWest ( ulong b ) : ulong
ShiftWestOne ( ulong b ) : ulong
SplitString ( string str, int chunkSize ) : IEnumerable
SwapNBits ( ulong b, int i, int j, int n ) : ulong
ToString ( ulong board, string separator ) : string

Private Methods

Méthode Description
BitBoardHelper ( ) : System
CreateMoveTypes ( ) : MoveType[][][][]
FillAllButPawns ( MoveType moveTypes ) : void
FillPawns ( MoveType moveTypes ) : void
GenerateMoveTypes ( ) : MoveType[][][][]
GetPawnMoveTypes ( Figure destinationFigure ) : MoveType[][]
GetSameMoveTypes ( MoveType type ) : MoveType[][]

Method Details

BitScan() public static méthode

public static BitScan ( ulong bb ) : int
bb ulong
Résultat int

BitsCount() public static méthode

public static BitsCount ( ulong board ) : int
board ulong
Résultat int

FileMask() public static méthode

public static FileMask ( File file ) : ulong
file File
Résultat ulong

FlipDiagonalA1H8() public static méthode

public static FlipDiagonalA1H8 ( ulong board ) : ulong
board ulong
Résultat ulong

FlipDiagonalA8H1() public static méthode

public static FlipDiagonalA8H1 ( ulong board ) : ulong
board ulong
Résultat ulong

FlipHorizontal() public static méthode

public static FlipHorizontal ( ulong board ) : ulong
board ulong
Résultat ulong

FlipVertical() public static méthode

public static FlipVertical ( ulong board ) : ulong
board ulong
Résultat ulong

FromString() public static méthode

public static FromString ( string s ) : ulong
s string
Résultat ulong

GenerateMirroredByte() public static méthode

public static GenerateMirroredByte ( byte b ) : byte
b byte
Résultat byte

GenerateRealPositions() public static méthode

public static GenerateRealPositions ( ) : ulong[]
Résultat ulong[]

GetEmptyBoardString() public static méthode

public static GetEmptyBoardString ( ) : string
Résultat string

GetFileFromRank() public static méthode

public static GetFileFromRank ( byte rank ) : ulong
rank byte
Résultat ulong

GetFileFromSquare() public static méthode

public static GetFileFromSquare ( Square sq ) : File
sq Square
Résultat File

GetMirroredByte() public static méthode

public static GetMirroredByte ( byte b ) : byte
b byte
Résultat byte

GetOneBitNumber() public static méthode

public static GetOneBitNumber ( int rank, int file ) : ulong
rank int
file int
Résultat ulong

GetRankFromAFile() public static méthode

public static GetRankFromAFile ( ulong A_File ) : byte
A_File ulong
Résultat byte

GetRankFromSquare() public static méthode

public static GetRankFromSquare ( Square sq ) : int
sq Square
Résultat int

GetSquare() public static méthode

public static GetSquare ( int rank, int file ) : Square
rank int
file int
Résultat Square

RankMask() public static méthode

public static RankMask ( int rank ) : ulong
rank int
Résultat ulong

Rotate90Clockwise() public static méthode

public static Rotate90Clockwise ( ulong board ) : ulong
board ulong
Résultat ulong

Rotate90CounterClockwise() public static méthode

public static Rotate90CounterClockwise ( ulong board ) : ulong
board ulong
Résultat ulong

RotateLeft() public static méthode

public static RotateLeft ( ulong x, int s ) : ulong
x ulong
s int
Résultat ulong

RotateRight() public static méthode

public static RotateRight ( ulong x, int s ) : ulong
x ulong
s int
Résultat ulong

ShiftEastOne() public static méthode

public static ShiftEastOne ( ulong b ) : ulong
b ulong
Résultat ulong

ShiftNorhtWestOne() public static méthode

public static ShiftNorhtWestOne ( ulong b ) : ulong
b ulong
Résultat ulong

ShiftNorthEastEast() public static méthode

public static ShiftNorthEastEast ( ulong b ) : ulong
b ulong
Résultat ulong

ShiftNorthEastOne() public static méthode

public static ShiftNorthEastOne ( ulong b ) : ulong
b ulong
Résultat ulong

ShiftNorthNorthEast() public static méthode

public static ShiftNorthNorthEast ( ulong b ) : ulong
b ulong
Résultat ulong

ShiftNorthNorthWest() public static méthode

public static ShiftNorthNorthWest ( ulong b ) : ulong
b ulong
Résultat ulong

ShiftNorthOne() public static méthode

public static ShiftNorthOne ( ulong b ) : ulong
b ulong
Résultat ulong

ShiftNorthWestWest() public static méthode

public static ShiftNorthWestWest ( ulong b ) : ulong
b ulong
Résultat ulong

ShiftSouthEastEast() public static méthode

public static ShiftSouthEastEast ( ulong b ) : ulong
b ulong
Résultat ulong

ShiftSouthEastOne() public static méthode

public static ShiftSouthEastOne ( ulong b ) : ulong
b ulong
Résultat ulong

ShiftSouthOne() public static méthode

public static ShiftSouthOne ( ulong b ) : ulong
b ulong
Résultat ulong

ShiftSouthSouthEast() public static méthode

public static ShiftSouthSouthEast ( ulong b ) : ulong
b ulong
Résultat ulong

ShiftSouthSouthWest() public static méthode

public static ShiftSouthSouthWest ( ulong b ) : ulong
b ulong
Résultat ulong

ShiftSouthWestOne() public static méthode

public static ShiftSouthWestOne ( ulong b ) : ulong
b ulong
Résultat ulong

ShiftSouthWestWest() public static méthode

public static ShiftSouthWestWest ( ulong b ) : ulong
b ulong
Résultat ulong

ShiftWestOne() public static méthode

public static ShiftWestOne ( ulong b ) : ulong
b ulong
Résultat ulong

SplitString() public static méthode

public static SplitString ( string str, int chunkSize ) : IEnumerable
str string
chunkSize int
Résultat IEnumerable

SwapNBits() public static méthode

public static SwapNBits ( ulong b, int i, int j, int n ) : ulong
b ulong
i int
j int
n int
Résultat ulong

ToString() public static méthode

public static ToString ( ulong board, string separator ) : string
board ulong
separator string
Résultat string

Property Details

FilesMasks public_oe static_oe property

public static ulong[] FilesMasks
Résultat ulong[]

MainDiagonal public_oe static_oe property

public static ulong MainDiagonal
Résultat ulong

MirroredBytes public_oe static_oe property

public static byte[] MirroredBytes
Résultat byte[]

MoveTypes public_oe static_oe property

public static MoveType[][][][] MoveTypes
Résultat MoveType[][][][]

NotABFile public_oe static_oe property

public static ulong NotABFile
Résultat ulong

NotAFile public_oe static_oe property

public static ulong NotAFile
Résultat ulong

NotGHFile public_oe static_oe property

public static ulong NotGHFile
Résultat ulong

NotHFile public_oe static_oe property

public static ulong NotHFile
Résultat ulong

RankToFileArray public_oe static_oe property

public static ulong[] RankToFileArray
Résultat ulong[]

RanksMasks public_oe static_oe property

public static ulong[] RanksMasks
Résultat ulong[]

RealPositions public_oe static_oe property

public static ulong[] RealPositions
Résultat ulong[]

lsb_64_table public_oe static_oe property

public static int[] lsb_64_table
Résultat int[]