Python Forum
Python code isn't looping player turns
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Python code isn't looping player turns
#4
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 while loop ends, check for which player has won, and then print the winner
checking the winner -
Have a variable to store current player playing. When the game ends, that variable will be holding the string value of the player's name who won
Reply


Messages In This Thread
Python code isn't looping player turns - by Reta - May-19-2019, 06:07 AM
RE: Python code isn't looping player turns - by SheeppOSU - May-19-2019, 06:29 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How would I go about repeating/looping this code? azulu 5 2,164 Mar-23-2020, 02:26 AM
Last Post: azulu
  PLayer vs.PLayer game candylicious 1 3,095 Nov-04-2017, 08:33 PM
Last Post: Lux

Forum Jump:

User Panel Messages

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