Minor changes
This commit is contained in:
@@ -120,7 +120,7 @@ async def calculator(interaction: discord.Interaction):
|
|||||||
async def gg(interaction: discord.Interaction):
|
async def gg(interaction: discord.Interaction):
|
||||||
|
|
||||||
game = pick_game()
|
game = pick_game()
|
||||||
await interaction.response.send_message(game)
|
await interaction.response.send_message("Barotrauma")
|
||||||
|
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
import random
|
import random
|
||||||
from Ledger import Ledger
|
from Ledger import Ledger
|
||||||
|
|
||||||
#TODO Kill Benson
|
|
||||||
#TODO Starting a game with 21 fucks with hidden cards
|
#TODO Starting a game with 21 fucks with hidden cards
|
||||||
#TODO Look into 5card jack thingo that Tim mentioned
|
#TODO Look into 5card jack thingo that Tim mentioned
|
||||||
#TODO Insurance - If dealer starts with 21, you can bet against it and win your money back
|
#TODO Insurance - If dealer starts with 21, you can bet against it and win your money back
|
||||||
@@ -127,10 +126,11 @@ class Hand():
|
|||||||
def remove_from_hand(self, index):
|
def remove_from_hand(self, index):
|
||||||
return self.hand.pop(index)
|
return self.hand.pop(index)
|
||||||
|
|
||||||
|
def peek_card(self, index):
|
||||||
|
return self.hand[index]
|
||||||
|
|
||||||
def hide_card(self, index):
|
def hide_card(self, index):
|
||||||
card = self.remove_from_hand(index)
|
self.peek_card(index).turn_card()
|
||||||
card.turn_card()
|
|
||||||
self.add_to_hand(card, index)
|
|
||||||
|
|
||||||
def __len__(self):
|
def __len__(self):
|
||||||
return len(self.hand)
|
return len(self.hand)
|
||||||
|
|||||||
@@ -141,7 +141,7 @@ class Calculator(discord.ui.View):
|
|||||||
else:
|
else:
|
||||||
self.clearRequirement += 1
|
self.clearRequirement += 1
|
||||||
self.output = self.expression(self.inputTwo, self.inputOne)
|
self.output = self.expression(self.inputTwo, self.inputOne)
|
||||||
if (self.inputTwo == 9) and (self.inputOne == 10):
|
if (self.inputTwo == 9) and (self.inputOne == 10) and (self.expression == addition):
|
||||||
self.output = 21
|
self.output = 21
|
||||||
await interaction.response.edit_message(
|
await interaction.response.edit_message(
|
||||||
content=self.display(),
|
content=self.display(),
|
||||||
|
|||||||
@@ -22,7 +22,6 @@ def pick_game():
|
|||||||
|
|
||||||
randomIndex = random.randrange(0, len(games))
|
randomIndex = random.randrange(0, len(games))
|
||||||
coinFlip = random.randrange(0, 2)
|
coinFlip = random.randrange(0, 2)
|
||||||
print(coinFlip)
|
|
||||||
if coinFlip:
|
if coinFlip:
|
||||||
|
|
||||||
return f"Valorant ({games[randomIndex]})"
|
return f"Valorant ({games[randomIndex]})"
|
||||||
|
|||||||
Binary file not shown.
Reference in New Issue
Block a user