This commit is contained in:
SpudGunMan
2024-09-20 10:22:51 -07:00
parent 9ee9cdd969
commit 2593dd4e86
2 changed files with 4 additions and 3 deletions
+1
View File
@@ -252,6 +252,7 @@ Games Ported from..
- https://github.com/tigerpointe/Lemonade-Stand/
- https://github.com/Reconfirefly/drugwars
- https://github.com/Himan10/BlackJack
- https://github.com/devtronvarma/Video-Poker-Terminal-Game
GitHub user mrpatrick1991 For Docker configs, PiDiBi looking at test functions and other suggestions like wxc, CPU use, and alerting ideas
Discord and Mesh user Cisien, and github Hailo1999, for testing and ideas! Lots of individuals on the Meshtastic discord who have tossed out ideas and tested code!
+3 -3
View File
@@ -36,7 +36,7 @@ class CardVP:
self.points = self.card_values[rank]
# Function to output ascii version of the cards in a hand in the terminal
def drawCards(*cards, return_string=True):
def drawCardsVp(*cards, return_string=True):
"""
Instead of a boring text version of the card we render an ASCII image of the card.
:param cards: One or more card objects
@@ -94,7 +94,7 @@ class DeckVP:
# method to show cards in deck
def display(self):
for c in self.cards:
print(drawCards(c))
print(drawCardsVp(c))
# method to shuffle cards in deck
def shuffle(self):
@@ -120,7 +120,7 @@ class PlayerVP:
# Method for displaying player's hand
def show_hand(self):
msg = (drawCards(
msg = (drawCardsVp(
self.hand[0],
self.hand[1],
self.hand[2],