We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6b5343d commit a597378Copy full SHA for a597378
1 file changed
js/snake.js
@@ -280,7 +280,7 @@ SNAKE.Snake = SNAKE.Snake || (function() {
280
{
281
preMove = directionFound;
282
}
283
- if (Math.abs(directionFound - lastMove) !== 2 && (isFirstMove) || isFirstGameMove || isPaused) // Prevent snake from turning 180 degrees
+ if (Math.abs(directionFound - lastMove) !== 2 && (isFirstMove || isPaused) || isFirstGameMove ) // Prevent snake from turning 180 degrees
284
285
currentDirection = directionFound;
286
isFirstMove = false;
0 commit comments