My game is done, but the ‘while True’ feature is needed in 2 tiers. How can I connect it in python

Issue

This Content is from Stack Overflow. Question asked by Playersplayer

Basically, the game is done. It works fine for tier 1 of the game and loops back to the start…but my confusion is with having a separate ‘while True’ block below. I need it to bypass the 1st loop if player wins the 1st tier. Then regardless of what happens in the 2nd ‘while True’ block, it loops back to the 1st.

Hope it makes sense. It’s just a series of floats that player input and CPU randomizes. If pchoice is a
If cchoice is b
Print(‘you got the point’)

If p equal 20:
Print(player wins!)



Solution

Check the Answers

This Question and Answer are collected from stackoverflow and tested by JTuto community, is licensed under the terms of CC BY-SA 2.5. - CC BY-SA 3.0. - CC BY-SA 4.0.

people found this article helpful. What about you?