Replies: 10 comments 25 replies
|
I did this is all by myself but is it right? lives=2 computer_choice=Label(text="computer_choice",width=100, height=6,bg="#52f5e8",font="12") def get_computer_choice(my_choice): winner=Label(text="Winner",width=40,bg="#5ff3d4",font="24") def king(human): def color(human): def win(my_choice,machine_choice): def yay(chosen): def click_button(chosen): rock=Button(text="Rock",command=lambda:click_button(rock),width=5,height=1,bg="#f03521") paper=Button(text="Paper",command=lambda:click_button(paper),width=5,height=1,bg="#7af35f") scissors=Button(text="Scissors",command=lambda:click_button(scissors),width=5,height=1,bg="#5f94f3") app.destroy()result=Tk()app.mainloop() eact time you win earn 100 more points, you have two lives, make top player leader,add input for sign in |
|
it`s awesome, now add whole to window, not in print |
|
I don't know how to make it so that each time you win 100 more points you earn. I just did it by this code. import random lives=2 computer_choice=Label(text="computer_choice",width=100, height=6,bg="#52f5e8",font="12") def get_computer_choice(my_choice): winner=Label(text="Winner",width=40,bg="#5ff3d4",font="24") def king(human): def color(human): def win(my_choice,machine_choice): def yay(chosen): def click_button(chosen): rock=Button(text="Rock",command=lambda:click_button(rock),width=5,height=1,bg="#f03521") paper=Button(text="Paper",command=lambda:click_button(paper),width=5,height=1,bg="#7af35f") scissors=Button(text="Scissors",command=lambda:click_button(scissors),width=5,height=1,bg="#5f94f3") app.destroy()result=Tk()app.mainloop() eact time you win earn 100 more points, you have two lives, make top player leader,add input for sign in |
|
Commit it
Сб, 24 мая 2025 г. в 08:57, Shrekami ***@***.***>:
… I did it
—
Reply to this email directly, view it on GitHub
<#8 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A2HEQE26ZRPAJ4JRXFPQZM33AAC3TAVCNFSM6AAAAAB5ME2AKCVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTGMRVGQZTAOA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***
com>
|
|
So I made somebody username show up on the screen with the points they have and how much lives they have but I just don't know how to change the points so that the points will go 100 points more each time. And I did all of that with this code. import random lives=2 computer_choice=Label(text="computer_choice",width=100, height=6,bg="#52f5e8",font="12") def get_computer_choice(my_choice): winner=Label(text="Winner",width=40,bg="#5ff3d4",font="24") def king(human): def color(human): def win(my_choice,machine_choice): def yay(chosen): def click_button(chosen): rock=Button(text="Rock",command=lambda:click_button(rock),width=5,height=1,bg="#f03521") paper=Button(text="Paper",command=lambda:click_button(paper),width=5,height=1,bg="#7af35f") scissors=Button(text="Scissors",command=lambda:click_button(scissors),width=5,height=1,bg="#5f94f3") app.destroy()result=Tk()app.mainloop() eact time you win earn 100 more points, you have two lives, make top player leader,add input for sign in |
|
I pulled the pull request but it doesn't work it just goes to the second winow not allowing me to play rock paper, scissors |
|
Are someone alive here? |
|
Why does it not show the label in this code: def get_leaders(): def update_db(player_name,score): If user exist you need to compare actual score with score from json.#If actual score is bigger than score from json , we should to update score from json,in another way dont do anything def end(player_name, score): create Labels for leaderboard.In leaderboard show name of user and score#update nice colors for login window and ending window |
|
I updated the whole screen for ending but I can't do more labels because it shows a mistake and another thing is how do you check the actual score with score from json? Because it doesn't want to add the human that participated in this code import json def get_leaders(): def update_db(player_name,score): #If actual score is bigger than score from json , we should to update score from json,in another way dont do anything def end(player_name, score): create Labels for leaderboard.In leaderboard show name of user and score#update nice colors for login window and ending window |


Uh oh!
There was an error while loading. Please reload this page.
Don`t be shy
All reactions