Python Forum
Game of life using IDLE
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Game of life using IDLE
#5
It's hard to answer your questions without seeing your code. You need to look at what's coming out of iterate(board) to see why it doesn't have three items. In the second one you need to look at the board variable. Is it being set to a boolean at some point? Is board[x] a boolean? These are the questions you have to ask yourself in order to solve the problem, but we can't answer them because we can't see the rest of your program.

You're program is probably pretty big, at least bigger than we have the time or inclination to wade through. So we typically suggest trimming down your program to a small chunk of code that replicates the error, say 10 to 20 lines of code. You will often find that trying to isolate the error like this will allow you to solve the problem yourself. If not, it will help us solve the problem.
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
Reply


Messages In This Thread
Game of life using IDLE - by Informatics109 - Oct-29-2016, 12:25 PM
RE: Game of life using IDLE - by Ofnuts - Oct-29-2016, 12:34 PM
RE: Game of life using IDLE - by metulburr - Oct-29-2016, 12:35 PM
RE: Game of life using IDLE - by Informatics109 - Oct-29-2016, 12:52 PM
RE: Game of life using IDLE - by ichabod801 - Oct-29-2016, 01:39 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  While loop/half-life Miraclefruit 6 8,497 Mar-06-2017, 05:24 PM
Last Post: nilamo
  conway's game of life / Single Responsibility Principle hanscvanleeuwen 13 11,090 Dec-17-2016, 08:30 AM
Last Post: hanscvanleeuwen
  conway's game of life hanscvanleeuwen 17 17,783 Dec-09-2016, 04:05 PM
Last Post: hanscvanleeuwen

Forum Jump:

User Panel Messages

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