Python Forum
Connect 4 Game - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: Homework (https://python-forum.io/forum-9.html)
+--- Thread: Connect 4 Game (/thread-9921.html)

Pages: 1 2


RE: Connect 4 Game - DarksideMoses - May-15-2018

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)



RE: Connect 4 Game - buran - May-15-2018

Note that this traceback does not match the code you provide. Always post the code that produce the traceback