Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def isHeadCollision(other: Snake): Boolean = initPos.x + initPos.dim.x == other.initPos.x && initPos.y == other.initPos.y
- def isTailCollision(other: Snake): Boolean = isOccupyingBlockAt(other.initPos)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement