our_dick/include/ttt/tic_tac_toe.hpp

42 lines
1.1 KiB
C++

/**
This file is a part of our_dick
Copyright (C) 2020 rexy712
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef OUR_DICK_TIC_TAC_TOE_HPP
#define OUR_DICK_TIC_TAC_TOE_HPP
#include "egn/game.hpp"
#include "egn/game_state.hpp"
#include "config.hpp"
#include <queue>
class tic_tac_toe : public egn::game
{
private:
bool m_game_over = false;
public:
tic_tac_toe(int width, int height);
bool is_game_over(void)const;
void on_notify(const egn::game_state_event& e)override;
};
#endif