Blackjack is a state machine
This commit is contained in:
@@ -85,7 +85,7 @@ async def bj(interaction: discord.Interaction):
|
||||
discinput = lambda m: discordInput(interaction, m)
|
||||
discoutput = lambda m: discordOutput(interaction, m)
|
||||
await interaction.response.send_message("Let's play Black Jack!")
|
||||
await blackJack.play_game(interaction.user.id, interaction.message, discinput, discoutput)
|
||||
await blackJack.play_game(interaction.user.id, 100, discinput, discoutput)
|
||||
|
||||
async def discordInput(interaction: discord.Interaction, message:str):
|
||||
response = HitOrStand()
|
||||
|
||||
Reference in New Issue
Block a user