Guess-count macro
This commit is contained in:
parent
59f246f918
commit
ee3aa889b8
1 changed files with 2 additions and 3 deletions
5
main.cpp
5
main.cpp
|
@ -1,14 +1,13 @@
|
||||||
#include "global.hpp"
|
#include "global.hpp"
|
||||||
#include "solver.hpp"
|
#include "solver.hpp"
|
||||||
|
|
||||||
using std::getline;
|
#define GUESS_COUNT 100
|
||||||
|
|
||||||
// To avoid typos
|
// To avoid typos
|
||||||
#define BOT "bot"
|
#define BOT "bot"
|
||||||
#define HUMAN "human"
|
#define HUMAN "human"
|
||||||
#define RANDOM "random"
|
#define RANDOM "random"
|
||||||
|
|
||||||
|
|
||||||
int main(int argc, char* argv[]) {
|
int main(int argc, char* argv[]) {
|
||||||
// Parse into string
|
// Parse into string
|
||||||
vector<string> args(0);
|
vector<string> args(0);
|
||||||
|
@ -54,7 +53,7 @@ int main(int argc, char* argv[]) {
|
||||||
|
|
||||||
// Guessing
|
// Guessing
|
||||||
vector<vector<int>> history = {};
|
vector<vector<int>> history = {};
|
||||||
for(int guesses = 0; guesses < 10; guesses++) {
|
for(int guesses = 0; guesses < GUESS_COUNT; guesses++) {
|
||||||
vector<int> guess(N);
|
vector<int> guess(N);
|
||||||
Response response;
|
Response response;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue