Minor changes
This commit is contained in:
@@ -120,7 +120,7 @@ async def calculator(interaction: discord.Interaction):
|
||||
async def gg(interaction: discord.Interaction):
|
||||
|
||||
game = pick_game()
|
||||
await interaction.response.send_message(game)
|
||||
await interaction.response.send_message("Barotrauma")
|
||||
|
||||
|
||||
"""
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
import random
|
||||
from Ledger import Ledger
|
||||
|
||||
#TODO Kill Benson
|
||||
#TODO Starting a game with 21 fucks with hidden cards
|
||||
#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
|
||||
@@ -127,10 +126,11 @@ class Hand():
|
||||
def remove_from_hand(self, index):
|
||||
return self.hand.pop(index)
|
||||
|
||||
def peek_card(self, index):
|
||||
return self.hand[index]
|
||||
|
||||
def hide_card(self, index):
|
||||
card = self.remove_from_hand(index)
|
||||
card.turn_card()
|
||||
self.add_to_hand(card, index)
|
||||
self.peek_card(index).turn_card()
|
||||
|
||||
def __len__(self):
|
||||
return len(self.hand)
|
||||
|
||||
@@ -141,7 +141,7 @@ class Calculator(discord.ui.View):
|
||||
else:
|
||||
self.clearRequirement += 1
|
||||
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
|
||||
await interaction.response.edit_message(
|
||||
content=self.display(),
|
||||
|
||||
@@ -22,7 +22,6 @@ def pick_game():
|
||||
|
||||
randomIndex = random.randrange(0, len(games))
|
||||
coinFlip = random.randrange(0, 2)
|
||||
print(coinFlip)
|
||||
if coinFlip:
|
||||
|
||||
return f"Valorant ({games[randomIndex]})"
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user