Sign inSign up

joakimwinum/py-snake

By joakimwinum

Updated about 3 years ago

Image
0

110

joakimwinum/py-snake repository overview

Py Snake CLI Game

This is a CLI game written in Python 3.6 and ported from PHP.

The game uses WASD for movements.

The objective of the game is to collect food dots and collect as much points as possible.

During the game, a developer mode can be activated that contains additional testing functionality.

There is a custom game engine class inside the game that takes care of mainly three things:

  • clearing the screen (supports multiple OS)
  • syncing the game loop (to a predefined FPS)
  • detecting key presses

The PHP version of the game can be found here.

Usage

Run the game in a CLI:

docker run -it --rm --name py-snake joakimwinum/py-snake

Authors

License

This project is licensed under the MIT License - see the LICENSE file for details

Tag summary

Content type

Image

Digest

sha256:411c11839

Size

18.3 MB

Last updated

about 3 years ago

docker pull joakimwinum/py-snake