ukuleleran/chess
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Repository files navigation
+------------------+
| Chess |
+------------------+
Class Definitions
Game
Attributes
board
players
Methods
tick()
encode()
decode()
Board
Attributes
pieces
Methods
hasWinner()
numPieces()
encode()
decode()
Piece
Attributes
color
type
Methods
getMoves()
isValidMove()
encode()
decode()
Player
Attributes
color
Methods
move()
Other Types and Constants
enum {KING, QUEEN, BISHOP, KNIGHT, ROOK, PAWN}
define BLACK = 0, WHITiE = 1
struct Position {int r, c}
struct Move {Position start, Position end}