Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Python code isn't looping player turns
Post: RE: Python code isn't looping player turns

(May-19-2019, 06:29 AM)SheeppOSU Wrote: Alright, well right below the points = 0, put a while loop how I described above. Make sure to add a print at the very end outside the while loop and when the...
Reta Homework 7 3,652 May-19-2019, 12:00 PM
    Thread: Python code isn't looping player turns
Post: RE: Python code isn't looping player turns

(May-19-2019, 06:18 AM)SheeppOSU Wrote: In this game, you type in the number of players and the player names. Then the player plays their turn, are they supposed to role just once, then the next per...
Reta Homework 7 3,652 May-19-2019, 06:23 AM
    Thread: Python code isn't looping player turns
Post: Python code isn't looping player turns

Hey all, so I was tasked to create a Double Hog game. For the most part, with help from my teacher, my code works 95%. However, as for this game, the game loops until a player in the lobby reaches 100...
Reta Homework 7 3,652 May-19-2019, 06:07 AM
    Thread: How to assign a "Score" variable to each element in a list
Post: RE: How to assign a "Score" variable to each eleme...

(May-16-2019, 07:37 AM)Yoriz Wrote: If you have not been introduced to dictionary's yet you could alter your player list to have lists inside of a list. playerList = [['player1', 5], ['player2', 8]]...
Reta Homework 5 5,338 May-16-2019, 12:07 PM
    Thread: How to assign a "Score" variable to each element in a list
Post: RE: How to assign a "Score" variable to each eleme...

(May-15-2019, 01:19 PM)ichabod801 Wrote: This is how I handle it: I have a dictionary of player names to their scores, like {'Bob': 23, 'Ichabod': 81, 'Buckaroo': 55}. I also have a list of the play...
Reta Homework 5 5,338 May-15-2019, 11:45 PM
    Thread: How to assign a "Score" variable to each element in a list
Post: How to assign a "Score" variable to each element i...

Hey all, I was tasked to create a game for homework but I still can't seem to figure out how to assign each individual player a "Score" variable that changes as the game progresses. E.g. If user inp...
Reta Homework 5 5,338 May-15-2019, 09:38 AM
    Thread: How to repeat input line of code until condition is met
Post: How to repeat input line of code until condition i...

So right now, I'm trying to loop a line that requires input until a condition is met, but I can't seem to do so. Essentially, what I want is: Code asks user how many players are playing: Var (player...
Reta Homework 2 3,377 May-14-2019, 11:55 AM
    Thread: Trouble figuring out how to pass a value between functions?
Post: Trouble figuring out how to pass a value between f...

Hey all, the following block of code yields a "decide" is not defined I created a 'decide=input()' inside a function Is it possible to call 'decide' into a different function? regPizza = ["Pepperon...
Reta Homework 1 1,744 Mar-28-2019, 04:37 AM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020