Skip to content
/ snake Public

Basic snake game in console, written in C#.

Notifications You must be signed in to change notification settings

ddusek/snake

Repository files navigation

Snake

Basic snake game in console.

How it works

game area is saved in multidimensional array, which is changed every X ms.

After initialization, game works in loop with a few steps:

  1. Show array to user.
  2. Get snake location.
  3. Check area around snake's head.
  4. Get user input.
  5. If path is valid, change array according to user input, if its not, game is over.

Screenshots

screen
** candy
<> snake's head
() snake's body
{} snake's tail
[] wall

About

Basic snake game in console, written in C#.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages