Python Forum
Feedback on a test adventure?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Feedback on a test adventure?
#2
This is the classic way for a beginning programmer to write a text adventure, and it is fraught with problems. The whole if/elif/then structure is very cumbersome, repetitive, and hard to scale up (expand).

A better way is to use a dictionary or other data structure that contains the information about the locations, and a single program structure that works its way through that dictionary. There is a link in my signature to a text adventure tutorial that shows you how to do exactly that. I would recommend reading that, and then trying to redo your adventure using that method.
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
Reply


Messages In This Thread
Feedback on a test adventure? - by Panda - Jun-15-2018, 04:26 PM
RE: Feedback on a test adventure? - by ichabod801 - Jun-15-2018, 06:13 PM
RE: Feedback on a test adventure? - by nilamo - Jun-15-2018, 06:18 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Text Adventure Game Nave5 1 2,310 Mar-30-2020, 05:06 AM
Last Post: SheeppOSU
  Text base adventure game ForbNovak 12 7,552 Aug-29-2018, 03:11 PM
Last Post: Nwb
  My first 'GAME' It is a simple text adventure jackspendiff942003 3 3,915 Aug-08-2017, 10:22 PM
Last Post: jackspendiff942003
  Christmas Text Adventure OriginalCal 3 5,623 Dec-13-2016, 06:06 PM
Last Post: OriginalCal

Forum Jump:

User Panel Messages

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