snakeai

module
v0.0.0-...-1488afb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 17, 2024 License: MIT

README

snake-ai

Snake AI is a competitive self-education game specifically crafted for programming learning.

Building AI for your Snake you can play with your friends and improve your algorithms and coding skills.

Snake-AI

build Go Report Card Coverage Status

What is it and how it works?

Snake-AI helps you and your friends to exercise in coding and/or algorythms.

You can:

  • Register with your email and password
  • Login to start playing
  • Create your lobby as HOST:
    • Up to 10 players simultaneously
    • From 5x5 to 30x30 field size
    • (optional) Create your CUSTOM map with our map editor!
  • Connect to any existing lobby as CLIENT according to your game skills
How does Match Making work?

Here is the full UML diagram to explain Match Making:

What can I do while playing?

You can:

  • Write AI with following:
    • Commands:
      • Left - turn head left
      • Right - turn head right
      • Move - continue moving
    • Condition Operators:
      • If
      • Else If (you can chain them multiple times)
      • Else
    • Conditions (>, <, >=, <=, ==, !=):
      • Distance to Edge / Wall
      • Distance to Food
      • Distance to another Snake
  • Try your AI: unleash your snake AI power on the game field!
  • Play with friends: who is the best with coding skills? Let's know it!

NB: Equally 1 snake is possible for 1 player!

NNB: Up to 10 players are possible for 1 game session!

Installation

  • make build
  • make up
  • ENJOY :)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL