dev: Removed Game class as redundant. gitignore updates.
This commit is contained in:
parent
95d86ffa9e
commit
27b293c302
3 changed files with 2 additions and 42 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
|
@ -21,6 +21,7 @@
|
|||
*.properties
|
||||
*.production
|
||||
*.debug
|
||||
*.yml
|
||||
html/
|
||||
nbproject/private/
|
||||
nbproject/Package-*.bash
|
||||
|
|
@ -34,6 +35,7 @@ funclist
|
|||
nbproject/Makefile-*
|
||||
disassembly/
|
||||
.generated_files/
|
||||
chessmcu_default/
|
||||
|
||||
# End of https://www.toptal.com/developers/gitignore/api/mplabx
|
||||
|
||||
|
|
|
|||
13
Game.cpp
13
Game.cpp
|
|
@ -1,13 +0,0 @@
|
|||
/*
|
||||
* File: Game.cpp
|
||||
* Author: amr
|
||||
*
|
||||
* Created on July 30, 2025, 9:22 PM
|
||||
*/
|
||||
|
||||
#include "Game.hpp"
|
||||
|
||||
Game::Game() {
|
||||
}
|
||||
|
||||
|
||||
29
Game.hpp
29
Game.hpp
|
|
@ -1,29 +0,0 @@
|
|||
/*
|
||||
* 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