29 lines
451 B
C++
29 lines
451 B
C++
/*
|
|
* 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
|
|
|
|
|