22 lines
319 B
C++
22 lines
319 B
C++
#ifndef CQ4_GAME_H_
|
|
#define CQ4_GAME_H_
|
|
|
|
#include <vector>
|
|
#include <string>
|
|
|
|
struct GameState {
|
|
int n;
|
|
int cp;
|
|
int win;
|
|
std::vector<std::vector<int>> B;
|
|
std::vector<int> C[2];
|
|
|
|
GameState(int n);
|
|
std::string boardString() const;
|
|
bool _checkEnd() const;
|
|
bool move(int x, int y);
|
|
void randomBoard();
|
|
};
|
|
|
|
#endif
|