Open mpereira opened 7 years ago
I ll try to find some more time to release a PR for allowing player to play again. #22
One could write “You won” on the cards in the top right and on the empty stacks. But for this it would be necessary to automatically move the cards to the top right.
┏━━━━━━━┳━━━━━━━┳━━━━━━━┳━━━━━━━┓
┃Y♥ ┃O♦ ┃U♣ ┃ ♠ ┃
┃ ┃ ┃ ┃ ┃
┃ ┃ ┃ ┃ ┃
┃ ┃ ┃ ┃ ┃
┃ ♥┃ W♦┃ O♣┃ N♠┃
┗━━━━━━━┻━━━━━━━┻━━━━━━━┻━━━━━━━┛
┌─────┐ ┌─────┐ ┌─────┐ ┌─────┐ ┌─────┐ ┌─────┐ ┌─────┐
│█ █│ │ ███ │ │█ █ │ │ │ │█ █│ │ ███ │ │██ █│
│ ███ │ │█ █│ │█ █ │ │ │ │█ █ █│ │█ █│ │█ █ █│
│ █ │ │ ███ │ │ ██ │ │ │ │ █ █ │ │ ███ │ │█ ██│
└─────┘ └─────┘ └─────┘ └─────┘ └─────┘ └─────┘ └─────┘
Cool! I can try to make a PR on this.
The problem is that card has 7 chars in width and 5 chars in height. So I can't imagine letters with such sizes. And I think my previous PR was much more beautiful!
I'm thinking of making some kind of "solving" animation, so that we can finally have a bit more fanfare than a quit and a terminal message. I think @greno4ka's pull request could look really nice on the solved board!
@dther sounds cool. Regarding the "end message" I was thinking something simpler would be best. For example, just a "You won!" message wrote in text somewhere on the board. Future functionality could also include showing the time to win, and amount of points.
Also allow the player to play again by pressing spacebar or quitting the game by pressing
q
like in the greeting screen.