I'm recreating an old game, similar to Tron, in HTML5 canvas+JS. The main difference is that the snakes don't turn in right angles, they can move in curves (the name's Achtung Die Kurve).
I need to detect collisions, and I don't know how. The rules are really simple, and everything I come up with or read about looks needlessly complicated. Collisions occur when:
A snake runs into another snake's body (or its own) head-first (I emphasize that because, in a very early experiment, my snakes' heads crushed backwards into their own "necks" as soon as they moved :P).
A snake runs into a wall (no inner walls).
How should I go about this? I'm willing to add whatever data is needed to my objects.