Initial commit on develop branch

This commit is contained in:
2026-04-17 20:07:57 +03:30
commit 9b68b97ae6
52 changed files with 3499 additions and 0 deletions
+27
View File
@@ -0,0 +1,27 @@
#include <string>
#include "Player.h"
#include "../Utilities/SymbolToStr.h"
#include "../Utilities/StrToSymbol.h"
Player::Player(std::string name, char color)
{
this -> name = name;
this -> color = color;
}
std::string Player::retrievePlayer()
{
return name + "|" + symbolToStr(color);
}
void Player::loadPlayer(std::string player)
{
int speratorIndex = player.find("|");
std::string name = player.substr(0, speratorIndex);
std::string color = player.substr(speratorIndex + 1, player.size());
this -> name = name;
this -> color = strToSymbol(color);
}