First FBullCowGame Header

#pragma once

#include <string>
#include <tuple>

class FBullCowGame
{
public:
	FBullCowGame();

	void Reset(); // TODO return something useful
	int GetMaxAttempts();
	int GetCurrentAttempt();
	bool IsGameOver();
	bool TryMakeAttempt(std::string word, int &bulls, int &cows);

private:
	std::string sHiddenWord;
	int MaxAttempts;
	int CurrentAttempt;

	bool IsGuessValid(std::string word);
	int GetBulls(std::string word);
	int GetCows(std::string word);
};

Privacy & Terms