Skip to content

Commit

Permalink
Fixed a bug in the random game mode
Browse files Browse the repository at this point in the history
  • Loading branch information
d4rk committed Nov 27, 2024
1 parent f32ad8f commit afd8b21
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lua/vim-be-good/games/snake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,7 @@ function Snake:render()
end
self.snakeGame = SnakeGame:new(35, 15, self.difficultyLevel, self.endRoundCallback)
self.snakeGame:start()
local lines = {}
local cursorIdx = 1
return lines, cursorIdx
return {''}, 1
end

return Snake

0 comments on commit afd8b21

Please sign in to comment.