Fuck commit messages

This commit is contained in:
NikolajDanger
2022-07-25 14:44:45 +02:00
parent f838b4e62d
commit 971e66e1ec
6 changed files with 35 additions and 26 deletions

View File

@ -108,7 +108,7 @@ class ConnectFour(BoardGame):
await self.bot.defer(ctx)
channel = str(ctx.channel_id)
opponent_info = await self._test_opponent(ctx, opponent)
opponent, opponent_info = await self._test_opponent(ctx, opponent)
if not opponent_info:
return
@ -119,7 +119,7 @@ class ConnectFour(BoardGame):
players = [ctx.author.id, opponent]
random.shuffle(players)
self.draw.draw_image(channel, board, players, [0, [0,0], ""], players)
self.draw.draw_image(channel, board, players, [0, [0,0], ""])
opponent_name = self.get_name(f"#{opponent}")
turn_name = self.get_name(f"#{players[0]}")
@ -252,7 +252,11 @@ class ConnectFour(BoardGame):
if placed_piece:
channel = str(ctx.channel)
self.draw.draw_image(
channel, board, winner, win_coordinates, win_direction, players)
channel,
board,
players,
[winner, win_coordinates, win_direction]
)
boards_path = "gwendolyn/resources/games/connect_four_boards/"

View File

@ -187,7 +187,7 @@ class BoardGame(GameBase):
self.bot.log("They tried to play against themself")
return False
return difficulty, difficulty_text
return opponent, (difficulty, difficulty_text)
class BaseDrawer():
"""Class for drawing games."""

View File

@ -632,7 +632,7 @@ class DrawHangman():
random.seed(game_id)
background = Image.open("gwendolyn/resources/paper.jpg")
background = Image.open("gwendolyn/resources/games/default_images/hangman.png")
gallow = self._draw_gallows()
man = self._draw_man(misses, game_id)