Skip to content

jamesweber7/Snake-Finite-Automaton

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Snake Game Finite Automaton

Video Presentation: YouTube | Snake Game Finite Automaton

This webpage simulates a finite automaton that uses ≈1.656 E+619 states to represent an implementation of the snake game.

The snake game is represented by a 5-tuple (Q, Σ, δ, q0, F), where:

  • Q is the set of states, which represent:
    • points
    • direction
    • incoming tail
    • second chance
    • apple position
    • snake head position
    • snake body
  • Σ is the set of inputs:
    • ␀ represents a game tick with no user input
  • δ : Q × Σ → Q is the transition function between states
  • q0 is the start state
  • F is the set containing the accept state

The webpage goes into detail on how the automaton is constructed:

Check it out

About

Finite automaton representing the snake game

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages