Fix bug and update red7 game.

master
Kevin Whitaker 2022-02-11 10:49:56 -05:00
parent 405de6d6c0
commit 751282717d
3 changed files with 3 additions and 4 deletions

View File

@ -1 +1,2 @@
1.0: Initial version of game 1.0: Initial version of game
1.0.1: Fix mistake preventing game from ending in some cases.

View File

@ -9,7 +9,7 @@ For rules, see [here](https://asmadigames.com/Red7Rules.pdf).
## Usage ## Usage
Current rule card is shown in center of screen when viewing your hand. Current rule card is shown in center of screen when viewing your hand.
Swipe left to see your palettes and right on the palette screen to go back to your hand. Tap on a card to see it's details and then swipe either left or right to play the card as a rule or a palette card. Swipe left to see your palettes and right on the palette screen to go back to your hand. Tap on a card to see it's details and then swipe either left or right to play the card as a rule or a palette card. Taping anywhere besides the card will dismis the card details.
Press the watch button to bring up the menu, which you can undo your card plays, end your turn, or start a new game. Press the watch button to bring up the menu, which you can undo your card plays, end your turn, or start a new game.
## Creator ## Creator

View File

@ -678,9 +678,7 @@ function finishTurn() {
} else if(playerHand.handCards.length === 0) { } else if(playerHand.handCards.length === 0) {
drawGameOver(false); drawGameOver(false);
} else if(!canPlay(playerHand, playerPalette, AIPalette)) { } else if(!canPlay(playerHand, playerPalette, AIPalette)) {
console.log("no play"); drawGameOver(false);
//drawGameOver(false);
drawScreen1();
} else { } else {
E.showMenu(); E.showMenu();
drawScreen1(); drawScreen1();