✅ hexStart now works. Time for hexDraw
This commit is contained in:
@ -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])
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user