void takeTurn(Players & player1, Players & player2, int cards [], int board [], int &available, int player) {
if (available==0) {
shuffleCards(cards, 10);
available=10;
}
int turn = cards[available-1];
if(turn > 0 && turn < 5) {
if (player == 1)
player1.token_space += turn;
else
player2.token_space += turn;
}
if (turn == 8) {
switchPlaces(player1, player2);
}
if (turn == 7) {
; // lose a turn
}
}
Comments
Post a Comment