Skip to content

aliyounis9/Voice-Interactive-Snake-Game

Repository files navigation

Voice-Interactive Snake Game

📝 Table of contents

📙 About

Through this snake game, the player controls a long, thin creature, resembling a snake, which roams around on a bordered plane, picking up food (red squares). Each time the snake eats a piece of food, its tail grows longer. Instead of losing when hitting the edges of the playing area, every two opposite borders of the plane are interconnected; for instance, if the snake reaches the far-right direction of the border, it comes out of the left direction (as demonstrated in the demo) Therefore, the user only loses when the snake hits its tail.

The user controls the direction of the snake through the following voice commands (please make sure mic permission is allowed through the browser when playing the game):

  • Up
  • Down
  • Right
  • Left

PS: a normal version of the game is also available that could be played with normal keyboard arrows (up/down/right/left).

💻 Built Using

🎥 GIF Demo

🎮 Game in Action

  • Voice-interactive version of the game can be played through this link (please make sure mic permission is allowerd through the browser.)
  • Normal version of the game (works through keyboard arrow keys) can be played through this link.

If you have any inquiries, please do not hesitate to reach out.

About

A simple snake game built using JS that works through voice input commands.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published