Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6b5343d commit a597378Copy full SHA for a597378
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