Skip to content

ukuleleran/chess

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors