4conq/Compete/Game.h
szdytom 02eadae4ca
Add framework
Signed-off-by: szdytom <szdytom@qq.com>
2024-01-30 20:46:18 +08:00

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