Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Vishal-raj-1/Awesome-JavaScript-Projects
/ keyDown
Function
keyDown
assets/js/2048.js:177–182 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
175
}
176
177
function
keyDown() {
178
moveDown()
179
combineColumn()
180
moveDown()
181
generate()
182
}
183
184
//check for the number 2048 in the boxes to win
185
function
checkForWin() {
Callers
1
control
Function · 0.70
Calls
3
combineColumn
Function · 0.85
moveDown
Function · 0.70
generate
Function · 0.70
Tested by
no test coverage detected