From e66f2a2672d573adc9a3d67f609d2ec8cfadf001 Mon Sep 17 00:00:00 2001 From: Sacha Ligthert Date: Sun, 12 Nov 2023 16:01:47 +0100 Subject: [PATCH] More comments --- game.go | 1 + 1 file changed, 1 insertion(+) diff --git a/game.go b/game.go index 36da945..a11bbd8 100644 --- a/game.go +++ b/game.go @@ -69,6 +69,7 @@ func gameDirector(screen tcell.Screen, style tcell.Style, keypresses chan int, g snakeDirection(lastpress, &snakex, &snakey) } + // Call it quits once the snake hits the border. if snakex == 0 || snakex == screenx-1 { close(gamestate) return