Im Getting the error (shown in the Summary) (.cpp line 3)
1 Like
– .cpp –
#include “FBullCowGame.hpp”
FBullCowGame::FBullCowGame()
int FBullCowGame::GetMaxTries() const { return MyMaxTries; }
int FBullCowGame::GetCurrentTry() const { return MyCurrentTry; }
bool FBullCowGame::IsGameWon() const { return false; }
void FBullCowGame::Reset()
{
FBullCowGame::~FBullCowGame();
FBullCowGame();
MyMaxTries = 5;
MyCurrentTry = 15;
return;
}
bool FBullCowGame::CheckGuessValidity(std::string)
{
return false;
}
1 Like
– .hpp –
#pragma once
#include
class FBullCowGame {
public:
int GetMaxTries() const;
int GetCurrentTry() const;
bool IsGameWon() const;
void Reset(); // TODO make a more rich return value.
bool CheckGuessValidity(std::string); // TODO make a more rich return value.
// ^^ Please try and ignore this and focus on the interface above ^^
private:
int MyCurrentTry;
int MyMaxTries;
};
1 Like