hexStart now works. Time for hexDraw

This commit is contained in:
jona605a
2020-08-04 23:28:05 +02:00
parent eb165469e0
commit f45e900f4c
2 changed files with 29 additions and 9 deletions

View File

@ -1,2 +1,25 @@
# haha good joke as if I can do this manually
# just find a picture online
import json
import math
from PIL import Image, ImageDraw, ImageFont
from funcs import logThis, getName
def hexDraw(channel):
logThis("Drawing Hex board")
with open("resources/games/hexGames.json", "r") as f:
data = json.load(f)
board = data[channel]["board"]
players = data[channel]["players"]
if players[0] == "Gwendolyn":
player1 = "Gwendolyn"
else:
player1 = getName(players[0])
if players[1] == "Gwendolyn":
player2 = "Gwendolyn"
else:
player2 = getName(players[1])