Controls: up, down, left, and right arrow keys direct the snake up, down, left, or right.

Instructions: The objective is to eat as much food as possible without biting your tail or running into the wall. The AI snake will wait for you to begin the game. Whoever's snake is injured first first will have their controls locked until the other player is finished. For this reason, the AI plays at a much faster speed.

Disclaimer: The AI was trained using python3, TensorFlow and pygame. Converting the game to JavaScript was my first experience with the language. Please excuse my spaghetti code.