square library

Widget that represents a single square of the board, it has all the movement logic.

Classes

Square
Base widget of the board squares.
SquareState
Dynamic state of a single square.

Functions

decodeMovement(String jugada) List<List<int>>
Function that given a string movement decodes it in movement coords.
loadMovement(List<List<int>> movements) → void
Function that given a movement coords loads it in the current game before showing the game.
procesarComerAlPaso(int auxY, int auxX, int y, int x) → void
Function that simulates the eat on the fly move.
processCastling(int auxY, int auxX, int y, int x) → void
Function that simulates the castling move.
simulateMovement(List<List<int>> movements) → void
Function that given a movement coords simulates it, is used to simulate opponents moves.