Skip to content

A bitboard is a specialized bit array data structure commonly used in computer systems that play board games, where each bit corresponds to a game board space or piece. This allows parallel bitwise operations to set or query the game state, or determine moves or plays in the game.

Notifications You must be signed in to change notification settings

oguzhandelibas/Bitboard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bitboard

A bitboard is a specialized bit array data structure commonly used in computer systems that play board games, where each bit corresponds to a game board space or piece. This allows parallel bitwise operations to set or query the game state, or determine moves or plays in the game.

Features

State Control Using Bitwise Operations

public long SetCellState(long bitboard, int row, int col)
{
    long newBit = 1L << (row * 8 + col);
    return (bitboard |= newBit);
}
public bool GetCellState(long bitboard, int row, int col)
{
    long mask = 1L << (row * 8 + col);
    return ((bitboard & mask) != 0);
}

Unity_WJKutTUlsd

About

A bitboard is a specialized bit array data structure commonly used in computer systems that play board games, where each bit corresponds to a game board space or piece. This allows parallel bitwise operations to set or query the game state, or determine moves or plays in the game.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages