8000 GitHub - nicey0/tui-snake: Simple Snake clone for Unix terminals, written in Python+Curses
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

nicey0/tui-snake

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tui-snake

Simple Snake clone for Unix terminals, written in Python+Curses


Running

git clone https://github.com/nicey0/tui-snake.git
cd tui-snake
python3 src/main.py

Dependencies

  • Python >= 3.8
  • ncurses >= ?

Screenshots

menu game end


Todo

Curses display

Snake

  • Movement
  • Apple eating
  • Wrapping (teleport down if y < 0 and etc)

Apples

  • Disappear when eaten
  • Create new apples after the last was eaten
  • Don't spawn apples on top of the snake

Game state

  • Running
    • Fullscreen area
    • 20-width area to the left (score, apples onscreen, etc)
  • End
    • <score>
    • Play again
    • Quit to Main Menu
  • Menu
    • Start
    • Quit

Input

  • Menu
    • j moves up - X
    • k moves down - X
    • q quits game - X
    • <CR> enters selected option - X
  • Running
    • j goes left
    • k goes right
    • Q quits to main menu
  • End
    • j moves up - X
    • k moves down - X
    • <CR> enters selected option
    • q quits to main menu

Score

  • Add score system (apples eaten)

About

Simple Snake clone for Unix terminals, written in Python+Curses

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0