Power Grid Board Game Timer. Acts like a chess timer for 3-6 people. Uses an ADXL accelerometer to pause the timer and change players. Uses an LCD screen to prompt the players for input, read that input, and change between rounds.
Dependencies: DmTouch_UniGraphic UniGraphic-forLdelaney17FinalProject mbed
Diff: game.h
- Revision:
- 2:e6788e73de54
- Child:
- 3:22c644f16365
diff -r ba0f395e8c11 -r e6788e73de54 game.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/game.h Wed Jan 25 06:50:57 2017 +0000 @@ -0,0 +1,31 @@ +#ifndef GAME_H +#define GAME_H +#include "mbed.h" +#include <vector> +#include "lcd_prompts.h" +#include <sstream> + +extern int num_players; +extern int current_player; +extern Timer current_clock; +extern vector<float> player_timers; +extern vector<int> player_order; + +void game_setup(); + +void init_num_players(); +/*void set_player_order(); + + + + +void update_clock(); +void update_timers(); + +void next_player(); + +void toggle_pause();*/ + + + +#endif