[Tutor] python game error

Bob Gailer bgailer at gmail.com
Sat Oct 13 11:40:08 EDT 2018


suggestions:
1-Use triple-quoted strings:
  print """take the
short-cut!""'

2 - make the program much simpler to start with. The usual approach to
developing programs like this is to start simple get the simple things
working right then add more complicated scene descriptions.

Even better: separate data from logic. Create a sqlite database in which
you store the information about the various scenes. Then write a program
that does nothing but access the various database elements. This will
result in much much easier to read and maintain code, and much much easier
to read and maintain the description of the scenes. I realize this may
sound like a big chunk but it is well worth the effort to learn how to do
it.


More information about the Tutor mailing list