mirror of
https://gitlab.com/manzerbredes/ochess.git
synced 2025-05-02 09:47:45 +00:00
Cleaning code
This commit is contained in:
parent
6ccdc954c5
commit
cbcc455e33
4 changed files with 13 additions and 16 deletions
src/game_tab
|
@ -29,6 +29,7 @@ std::string Game::GetTag(std::string tagname) { return (tags[tagname]); }
|
|||
void Game::SetTag(std::string tagname, std::string value) {
|
||||
tags[tagname] = value;
|
||||
}
|
||||
|
||||
bool Game::IsBlackToPlay() {
|
||||
if (current == NULL) {
|
||||
return (false);
|
||||
|
@ -55,6 +56,7 @@ void Game::DeleteMove(HalfMove *m) {
|
|||
}
|
||||
|
||||
HalfMove *Game::GetCurrentMove() { return (current); }
|
||||
|
||||
HalfMove *Game::GetMoves() { return (moves); }
|
||||
|
||||
void Game::PromoteMove(HalfMove *m) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue