102 Dalmatians: Puppies to the Rescue
Decompilation Source Reference | GitLab repository
Loading...
Searching...
No Matches
board.c File Reference

Go to the source code of this file.

Functions

static bool on_board (int32_t col, int32_t row)
static bool allows_row_delta (uint32_t piece, int32_t delta, int32_t distance, bool unknown_piece_result)
enum Checkers_MoveValidation Checkers_ValidateSimpleMove (struct Checkers_Board *board, int32_t from_col, int32_t from_row, int32_t to_col, int32_t to_row)
static bool can_jump (const struct Checkers_Board *board, int32_t col, int32_t row, int32_t dx, int32_t dy, uint32_t opponent)
static bool can_jump_in_row_direction (const struct Checkers_Board *board, int32_t col, int32_t row, int32_t dy, uint32_t opponent)
BOOL Checkers_CheckCapturePossible (struct Checkers_Board *board, uint32_t piece, int32_t col, int32_t row)
static bool side_has_capture (struct Checkers_Board *board, uint32_t player)
enum Checkers_MoveValidation Checkers_ValidateMove (struct Checkers_Board *board, int32_t from_col, int32_t from_row, int32_t to_col, int32_t to_row)
enum Checkers_MoveExecutionResult Checkers_ExecuteMove (struct Checkers_Board *board, int32_t from_col, int32_t from_row, int32_t to_col, int32_t to_row)
enum Checkers_MoveExecutionResult Checkers_ExecuteMoveSequence (struct Checkers_Board *board, struct Checkers_MoveSequence const *move_sequence)
void Checkers_InitializeBoard (struct Checkers_Board *board)

Function Documentation

◆ allows_row_delta()

bool allows_row_delta ( uint32_t piece,
int32_t delta,
int32_t distance,
bool unknown_piece_result )
static

Definition at line 10 of file board.c.

◆ can_jump()

bool can_jump ( const struct Checkers_Board * board,
int32_t col,
int32_t row,
int32_t dx,
int32_t dy,
uint32_t opponent )
static

Definition at line 40 of file board.c.

◆ can_jump_in_row_direction()

bool can_jump_in_row_direction ( const struct Checkers_Board * board,
int32_t col,
int32_t row,
int32_t dy,
uint32_t opponent )
static

Definition at line 47 of file board.c.

◆ Checkers_CheckCapturePossible()

BOOL Checkers_CheckCapturePossible ( struct Checkers_Board * board,
uint32_t piece,
int32_t col,
int32_t row )

Definition at line 53 of file board.c.

◆ Checkers_ExecuteMove()

enum Checkers_MoveExecutionResult Checkers_ExecuteMove ( struct Checkers_Board * board,
int32_t from_col,
int32_t from_row,
int32_t to_col,
int32_t to_row )

Definition at line 118 of file board.c.

◆ Checkers_ExecuteMoveSequence()

enum Checkers_MoveExecutionResult Checkers_ExecuteMoveSequence ( struct Checkers_Board * board,
struct Checkers_MoveSequence const * move_sequence )

Definition at line 150 of file board.c.

◆ Checkers_InitializeBoard()

void Checkers_InitializeBoard ( struct Checkers_Board * board)

Definition at line 174 of file board.c.

◆ Checkers_ValidateMove()

enum Checkers_MoveValidation Checkers_ValidateMove ( struct Checkers_Board * board,
int32_t from_col,
int32_t from_row,
int32_t to_col,
int32_t to_row )

Definition at line 91 of file board.c.

◆ Checkers_ValidateSimpleMove()

enum Checkers_MoveValidation Checkers_ValidateSimpleMove ( struct Checkers_Board * board,
int32_t from_col,
int32_t from_row,
int32_t to_col,
int32_t to_row )

Definition at line 27 of file board.c.

◆ on_board()

bool on_board ( int32_t col,
int32_t row )
static

Definition at line 5 of file board.c.

◆ side_has_capture()

bool side_has_capture ( struct Checkers_Board * board,
uint32_t player )
static

Definition at line 76 of file board.c.