Added ai modes. Altered output of highscores to allow possible parsing with tools easier

This commit is contained in:
Tiehuis
2015-02-25 14:51:48 +13:00
parent 2d9f89f339
commit cf1a147078
7 changed files with 67 additions and 23 deletions
+9 -4
View File
@@ -1,6 +1,7 @@
#ifndef OPTIONS_H
#define OPTIONS_H
#include <stdbool.h>
#include <getopt.h>
#define CONSTRAINT_GRID_MIN 4
@@ -9,16 +10,20 @@
#define DEFAULT_GRID_WIDTH 4
#define DEFAULT_SPAWN_VALUE 2
#define DEFAULT_SPAWN_RATE 1
#define DEFAULT_COLOR_TOGGLE 0
#define DEFAULT_ANIMATE_TOGGLE 1
#define DEFAULT_COLOR_FLAG false
#define DEFAULT_ANIMATE_FLAG true
#define DEFAULT_AI_FLAG false
#define DEFAULT_INTERACTIVE_FLAG true
struct gameoptions {
int grid_height;
int grid_width;
long spawn_value;
int spawn_rate;
int enable_color;
int animate;
bool enable_color;
bool animate;
bool ai;
bool interactive;
};
void print_usage(void);