game.h 867 B

12345678910111213141516171819202122232425
  1. #ifndef GAME
  2. #define GAME
  3. #include "qwixx.h"
  4. #include "dice.h"
  5. #include "ScoreSheet.h"
  6. #include <windows.h>
  7. class Game {
  8. public:
  9. std::vector<ScoreSheet> players;
  10. std::vector<bool> lockOut;
  11. int lastColumnIndex;
  12. int state;
  13. Dice dice;
  14. Game();
  15. void turn(ScoreSheet activePlayer);
  16. void score();
  17. std::string send();
  18. void receive(std::string userInput);
  19. // rules as methods of game
  20. bool addPlayer(std::string name);
  21. // rule for lockout to populate a locked out row so score function can check for locked rows
  22. void addX(int player, int color, int index);
  23. // rule for being able to lockout a row, check for last box marked off and set condition where the next box has to be higher than that previous box check
  24. };
  25. #endif