Add enemies, i.e. snakes, such that collision between the player and an enemy triggers a losing condition. The enemies do not have to move in a very smart way (in-fact, they shouldn't as that would make winning somewhat impossible), their movement can be random but not uniformly random otherwise they will keep switching directions (give preference to the direction it is currently moving in).
Add enemies, i.e. snakes, such that collision between the player and an enemy triggers a losing condition. The enemies do not have to move in a very smart way (in-fact, they shouldn't as that would make winning somewhat impossible), their movement can be random but not uniformly random otherwise they will keep switching directions (give preference to the direction it is currently moving in).