Initial commit of MPLABX version
This commit is contained in:
commit
d80b03bdf0
10 changed files with 251 additions and 0 deletions
29
Game.hpp
Normal file
29
Game.hpp
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
/*
|
||||
* File: Game.hpp
|
||||
* Author: amr
|
||||
*
|
||||
* Created on July 30, 2025, 9:22 PM
|
||||
*/
|
||||
|
||||
#ifndef GAME_HPP
|
||||
#define GAME_HPP
|
||||
|
||||
#include <stdint.h>
|
||||
#include "Piece.hpp"
|
||||
class Piece;
|
||||
|
||||
enum Players { PL_WHITE, PL_BLACK };
|
||||
|
||||
class Game {
|
||||
public:
|
||||
Game();
|
||||
void resetGame(void); // reset the board to a fresh state
|
||||
uint8_t makeMove(Piece piece, Square start, Square end);
|
||||
|
||||
private:
|
||||
Players currentTurn = PL_WHITE; // start with white
|
||||
};
|
||||
|
||||
#endif // GAME_HPP
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue