Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Connect 4 Game
#11
Hello @nilamo I changed the code, is this the correct way to put it? It also shows this error
Error:
Traceback (most recent call last): File "/Users/DarkSideMoses/Documents/Programming/Connect 4/Connect 4.py", line 21, in <module> x = connect(i) TypeError: 'list' object is not callable
x = chip.xcor()
for i in range(7):
    connect.append ([])
    x = connect(i)
Reply
#12
Note that this traceback does not match the code you provide. Always post the code that produce the traceback
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
Exclamation Please help me with my connect 4 game im beyond despair and I have it due in 4 days JuanT05 1 1,321 Jan-22-2022, 04:28 AM
Last Post: deanhystad
  I need help with Connect-Four Game Board niiakoadjei 2 2,594 May-26-2021, 04:54 PM
Last Post: jefsummers

Forum Jump:

User Panel Messages

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