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
#3
(Jun-06-2017, 02:14 PM)volcano63 Wrote: input returns string value - convert it to integer
choice = int(choice)
Same goes for shop

I didn't know it worked that way but instead of changing the input to a integer i changed the if a=1 to a string as if a="1"
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 foxtreat - Jun-08-2017, 06:41 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  code won't advance to next statement MCL169 2 845 Apr-11-2023, 09:44 PM
Last Post: Larz60+
  while loop not working-I am using sublime text editor mma_python 4 1,303 Feb-05-2023, 06:26 PM
Last Post: deanhystad
  While loop not ending (Best of 10 dice game) K3nidi 3 1,679 Jul-09-2022, 09:53 AM
Last Post: K3nidi
  Skipping line in text without Restarting Loop IdMineThat 4 1,647 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,448 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,190 Dec-18-2021, 02:38 AM
Last Post: knight2000
  While loop doesn't exit KenHorse 3 2,127 Jun-20-2021, 11:05 PM
Last Post: deanhystad
  loop adventure game ilikedofs 1 1,805 May-26-2021, 12:43 AM
Last Post: bowlofred
  A text-based game [SOLVED] Gameri1 6 4,135 Apr-20-2021, 02:26 PM
Last Post: buran
  how to make a hotkey for text adventure game myn2018 2 2,095 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