I have updated the last snake game and made it multiplayer. You can choose any number of players – either human or computer. The computer just chooses the direction that will yield the shortest path for now. It doesnot detect loops or one way inlets….It just tries to reduce its path. I will soon implement A* algorithm for the snake. But for now, here is the code for the game.