SnakeAI
Visit ToolSnakeAI is an AI Agents & Automation tool that trains a neural network to play Snake using a genetic algorithm. It allows customization of the neural network's hidden layers and neurons.
At a glance
Trending
SnakeAI is an AI Agents & Automation tool that trains a neural network to play Snake using a genetic algorithm. It allows customization of the neural network's hidden layers and neurons.
Trending
About
SnakeAI is an open-source project designed to train a neural network to play the classic game Snake through the application of a genetic algorithm. Each snake within the simulation is equipped with a neural network, initially featuring an input layer of 24 neurons, two hidden layers of 16 neurons, and an output layer of 4 neurons. A key feature is the ability to customize the number of hidden layers and neurons, offering flexibility for experimentation. The snake's 'vision' system provides 24 inputs by detecting the distance to food, its own body, and walls in 8 directions. The evolutionary process involves natural selection across generations of 2000 snakes, with fitness scores determining reproduction. Snakes are rewarded more for higher scores than simply staying alive, with a move limit to prevent endless looping. Crossover and mutation mechanisms are used to evolve the neural networks, and models can be saved and loaded for further testing and analysis.
Capabilities
Pricing & Plans
Open Source
Free
FAQs
Trending