From 6a6d104f35b57f1dcdd966f354b2beca73310fe4 Mon Sep 17 00:00:00 2001 From: Dmitry Mikhirev Date: Thu, 23 Oct 2014 22:57:51 +0400 Subject: major code revision --- game.h | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) (limited to 'game.h') diff --git a/game.h b/game.h index 58ba479..5706461 100644 --- a/game.h +++ b/game.h @@ -1,7 +1,7 @@ /* Brainuino Aleph - Copyright (C) 2011 Dmitry Mikhirev + Copyright (C) 2011, 2014 Dmitry Mikhirev This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -21,17 +21,21 @@ #define game_h // game types -#define BRAIN 0 -#define SI 1 -#define CHGK 2 +enum game_t { + BRAIN , + SI, + CHGK, +}; //question status -#define CORRECT 1 -#define WRONG 0 -#define NOREPLY -1 - -uint8_t gameType; -uint8_t withFalseStart; +enum answer_t { + CORRECT = 1, + WRONG = 0, + NOREPLY = -1, +}; + +game_t gameType; +bool withFalseStart; uint8_t timer1; uint8_t timer2; //uint32_t timer; -- cgit v1.2.1