Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Tetris
#2
On line 124, you are trying to use brackets to call the function list.index That line should look like this self.color = shape_colors[shapes.index(shape)]
Reply


Messages In This Thread
Tetris - by abscorpy - Nov-02-2019, 09:13 AM
RE: Tetris - by SheeppOSU - Nov-05-2019, 01:57 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Tetris inteligence DanTDRG 5 1,637 Oct-05-2022, 08:30 AM
Last Post: DanTDRG
  Tetris 3 abscorpy 3 3,039 Dec-10-2019, 06:36 PM
Last Post: nilamo
  Tetris 2 abscorpy 1 1,861 Dec-05-2019, 12:03 AM
Last Post: Windspar
  Basically a Python Tetris game [pygame] rather keyboard arrows can be controlled with lsepolis123 9 5,203 Sep-10-2019, 08:12 PM
Last Post: metulburr
  Tetris - AttributeError: 'list' object has no attribute 'y' abscorpy 6 6,634 Feb-28-2019, 05:20 PM
Last Post: Larz60+

Forum Jump:

User Panel Messages

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