This commit is contained in:
NikolajDanger
2020-08-13 17:09:26 +02:00
parent b82d233faf
commit 4ee96cd3b5
10 changed files with 14 additions and 19 deletions

View File

@ -229,7 +229,7 @@ class Blackjack():
# When players try to double down
def blackjackDouble(self,channel,user,handNumber = 0):
game = self.bot.database["blackjack games"].find_one({"_id":channel})
if user in game["user hands"]:
hand, handNumber = self.getHandNumber(game["user hands"][user],handNumber)

View File

@ -1,7 +1,6 @@
import random
import copy
import math
import asyncio
from .fourInARowDraw import DrawFourInARow
from funcs import logThis
@ -128,8 +127,8 @@ class FourInARow():
def placeOnBoard(self,board,player,column):
placementx, placementy = -1, column
for x in range(len(board)):
if board[x][column] == 0:
for x, line in enumerate(board):
if line[column] == 0:
placementx = x
board[placementx][placementy] = player

View File

@ -2,7 +2,6 @@ import json
import urllib
import random
from . import money
from funcs import logThis
class Trivia():