Python Forum
Thread Rating:
  • 2 Vote(s) - 2.5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
GameBoard coding
#2
Not knowing how board is created and processed it's hard to answer the question. I would use print statements before the show_board_fixed method, to see exactly what it is. Specifically, does board contain six lists, and does the sixth list contain three items.

Note that the format method of the string object and storing some of the repeated strings in variables would simplify your method considerably.
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
Reply


Messages In This Thread
GameBoard coding - by Bullman - Dec-20-2016, 01:22 PM
RE: GameBoard coding - by ichabod801 - Dec-20-2016, 09:25 PM
RE: GameBoard coding - by Larz60+ - Dec-21-2016, 01:19 AM
RE: GameBoard coding - by nilamo - Dec-21-2016, 10:46 PM

Forum Jump:

User Panel Messages

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