how to make a clint multiplayer dice game [duplicate]
I want a client for a multiplayer dice game, I made a server and a network I am defined by the following class I need to add the code to pygame
import tkinter
import random
root = tkinter.Tk()
root.geometry('600x600')
root.title('Roll Dice')
label = tkinter.Label(root, text='', font=('Helvetica', 260))
def roll_dice():
dice = ['\u2680', '\u2681', '\u2682', '\u2683', '\u2684', '\u2685']
label.configure(text=f'{random.choice(dice)} ')
label.pack()
button = tkinter.Button(root, text='roll dice', foreground='blue', command=roll_dice)
button.pack()
root.mainloop()
from Recent Questions - Stack Overflow https://ift.tt/3jr5y6S
https://ift.tt/eA8V8J
Comments
Post a Comment