Python Forum
loop doesn't advance-py3 text game
Thread Rating:
  • 2 Vote(s) - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
loop doesn't advance-py3 text game
#2
input returns string value - convert it to integer
choice = int(choice)
Same goes for shop
Test everything in a Python shell (iPython, Azure Notebook, etc.)
  • Someone gave you an advice you liked? Test it - maybe the advice was actually bad.
  • Someone gave you an advice you think is bad? Test it before arguing - maybe it was good.
  • You posted a claim that something you did not test works? Be prepared to eat your hat.
Reply


Messages In This Thread
loop doesn't advance-py3 text game - by foxtreat - Jun-06-2017, 05:31 AM
RE: loop doesn't advance-py3 text game - by volcano63 - Jun-06-2017, 02:14 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  code won't advance to next statement MCL169 2 839 Apr-11-2023, 09:44 PM
Last Post: Larz60+
  while loop not working-I am using sublime text editor mma_python 4 1,276 Feb-05-2023, 06:26 PM
Last Post: deanhystad
  While loop not ending (Best of 10 dice game) K3nidi 3 1,640 Jul-09-2022, 09:53 AM
Last Post: K3nidi
  Skipping line in text without Restarting Loop IdMineThat 4 1,623 Apr-05-2022, 04:23 AM
Last Post: deanhystad
  For Loop and Use of Brackets to Modify Dictionary in Tic-Tac-Toe Game new_coder_231013 7 2,408 Dec-28-2021, 11:32 AM
Last Post: new_coder_231013
  For Loop Works Fine But Append For Pandas Doesn't Work knight2000 2 2,169 Dec-18-2021, 02:38 AM
Last Post: knight2000
  While loop doesn't exit KenHorse 3 2,107 Jun-20-2021, 11:05 PM
Last Post: deanhystad
  loop adventure game ilikedofs 1 1,796 May-26-2021, 12:43 AM
Last Post: bowlofred
  A text-based game [SOLVED] Gameri1 6 4,059 Apr-20-2021, 02:26 PM
Last Post: buran
  how to make a hotkey for text adventure game myn2018 2 2,071 Jan-06-2021, 10:39 PM
Last Post: myn2018

Forum Jump:

User Panel Messages

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