Player 1: Use the arrow keys to move. Player 2: Use wasd keys to move. If you run into the walls or the other player you die. Your Snake gets bigger and faster as you eat the fruit which will make it increasingly harder for your opponent to not run into you.
Check out the single player version! https://scratch.mit.edu/projects/378398957/