aiji-logo

A curated collection of inspirational AI-powered JavaScript apps

footer-icon

Built by Elle, Asim, Osama - hosted on Azure

Snakes.ai


Play Snakes using your head movements as controllers

DemoLink

  • TensorFlow.js
  • MobileNet

Play the classic Snakes game, using your webcam and neural networks for image recognition.

Try it out here and follow instructions!

How to play:

  1. Take one or more images for each direction, by clicking on the areas on the right.
  2. Press Train to train the neural net on your images.
  3. Press Start to play!

This demo uses the MobileNet model, which has already been trained on millions of images. The output of this MobileNet model is then retrained using the images captured from your training.

For the final output, the model then makes a prediction about which category of your example images it thinks it is currently seeing. The snake then moves in the direction linked to the predicted category.