HOME | GIT | CV | MUSINGS
LOG | FILES | OVERVIEW
F diff --git a/snek.js b/snek.js --- a/snek.js +++ b/snek.js if(direction<0) direction=Math.PI*2+direction; - if(Math.abs(direction-Math.PI-snake.direction)<0.1) + if(Math.abs(direction-Math.PI-snake.direction)<0.3) return true; else return false;