1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- #ifndef GAME
- #define GAME
- #include "qwixx.h"
- #include "dice.h"
- #include "ScoreSheet.h"
- #include <windows.h>
- struct Move
- {
- int index;
- int color;
- };
- struct CollectionOfMoves
- {
- Move white;
- Move color;
-
- int numberOfMoves = 0;
- bool penalty;
- };
- class Game {
- public:
- std::vector<ScoreSheet> players;
- std::vector<bool> lockOut;
- int lastColumnIndex;
- int state;
- Dice dice;
- int activePlayer;
- Game();
- void turn(ScoreSheet activePlayer);
- void score();
- std::string send();
- void receive(std::string userInput);
-
- bool addPlayer(std::string name);
-
- void addX(int player, int color, int index);
-
- void lockOutRule(int player, int color, int index);
- void leftToRightRule(int player, int color, int index);
- bool Game::isMoveRepresentedInDie(int player, CollectionOfMoves collectionOfMoves);
-
- };
- #endif
|