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
game.h
- Committer:
- ldelaney17
- Date:
- 2017-01-25
- Revision:
- 3:22c644f16365
- Parent:
- 2:e6788e73de54
- Child:
- 4:e14c199c2466
File content as of revision 3:22c644f16365:
#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; extern float round_bonus_time; void game_setup(); void init_num_players(); void set_player_order(); void set_start_time(); //right now this is hardcoded void new_round(); void display_clock(); /* void update_clock(); void update_timers(); void next_player(); void toggle_pause();*/ #endif