#include 

class Game
{
public:
	enum Status
	{
		not_finished = 0,
		breaker_won,
		maker_won
	};

	Game (int m, int n)
		: m_m(m), m_n(n), m_s(not_finished)
	{
		m_game = this;
	}

	static Game *getInstance()
	{
		return m_game;
	}

	Status notFinished()
	{
		return m_s;
	}

	void generateCode();
	void print();

	friend class Player;
	friend class Codebreaker;
	friend class Codemaker;

private:
	int m_m, m_n;
	Status m_s;
	static Game * m_game;
	vector  m_code;
};

Fr Jul 30 13:54:24 CEST 2021
patent_button.gif valid-html401.png elektra.jpg fsfe-logo.png valid-css.png vim.gif anybrowser.gif