game.h 785 B

1234567891011121314151617181920212223
  1. #ifndef GAME
  2. #define GAME
  3. #include "qwixx.h"
  4. #include "dice.h"
  5. #include "playerCard.h"
  6. #include <windows.h>
  7. class Game {
  8. public:
  9. std::vector<PlayerCard> players;
  10. std::vector<bool> lockOut;
  11. int state;
  12. Dice dice;
  13. Game();
  14. void turn(PlayerCard activePlayer);
  15. void score();
  16. std::string send();
  17. void receive(std::string userInput);
  18. // rules as methods of game
  19. bool addPlayer(std::string name);
  20. // rule for lockout to populate a locked out row so score function can check for locked rows
  21. // 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
  22. };
  23. #endif