MCPcopy Create free account
hub / github.com/Semaserg/LeetCodeProblems / SnakeGame

Method SnakeGame

design/SnakeGame_353/SnakeGame.java:71–80  ·  view source on GitHub ↗

Initialize your data structure here. @param width - screen width @param height - screen height @param food - A list of food positions E.g food = [[1,1], [1,0]] means the first food is positioned at [1,1], the second is at [1,0].

(int width, int height, int[][] food)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 1

addMethod · 0.45

Tested by

no test coverage detected