Please enable JavaScript.
Coggle requires JavaScript to display documents.
const view, tetrominoes - Coggle Diagram
const view
creatGirds()
draw()
undraw()
displayNextTetromino()
checkAndRemoveGrids()
tetrominoes
const controller
moveDown()
rush(e)
freeze()
pause()
rotate()
control(e)
moveRight()
mouseControl()
moveLeft()
gameOver()
displayGame()
const model
tetrominoes(width?: any): any[ ][ ][ ]
width: number
currentPosition: number
currentRotation: number
currentTetromino: any[ ]
nextTetromino: any[ ]
index: number
nextIndex: number
score: number
const utility
randomIndex(array: any): number
randomIndex(array: any): number