runApp(width=width, height=height).
Finally, we can call playTetris() at the bottom of the file to start the application!
Again, playTetris() should not take any parameters.
# pre-load a few cells with known colors for testing purposes
app.board[0][0] = "red" # top-left is red
app.board[0][app.cols-1] = "white" # top-right is white
app.board[app.rows-1][0] = "green" # bottom-left is green
app.board[app.rows-1][app.cols-1] = "gray" # bottom-right is gray

|
David Kosbie |