Image size: ~155KiB. Barebones snake screensaver/game.
6.6K
docker run -it --rm --log-driver none --net none --read-only defnotgustavom/sssnake
Options:
-m op, --mode=op Mode in which the program will run. The available modes are: normal, arcade, autopilot and screensaver.(Default: normal)
-l op, --look=op Style in of the cells in the game. The available styles are: fancy, full, ascii and dots .(Default: fancy)
-s N, --speed=N Speed of the game, from 1 to 20. (Default: 1 )
-j N, --junk=N Add random blocks of junk, levels from 1 to 5. (Default: 0 )
-x N, --maxX=N Define the width of the game field. A single unit equals to two terminal columns
-y N, --maxY=N Define the height of the game field. A single unit equals to one terminal row
-z, --score Shows the size of the snake at any time.
-t, --teleport Teleport between borders.
-h, --help Print help message.
--try-hard=N Makes the snake unkillable in the autopilot/screensaver mode . For now there are two options (algorithms): "--try-hard 1" is cpu efficient, good for big boards. "--try-hard 2" uses more cpu, it reaches the food faster and produces a cleaner board. Neither of the two works well with junk in the board.
--short-path=ALG This lets you set the algorithm that finds the shortest path. The available algorithms are: astar : A* with a simple heuristic.(default). bfs : Breadth-first search. asfixed : A* with a heuristic that puts extra cost to the turns.
Controls:
NORMAL/ARCADE:
wasd,hjkl and arrow keys Movement controls.
spacebar Pause game.
q Quits the game.
AUTOPILOT/SCREENSAVER:
+ and - Increase and decrease speed.
spacebar Pause game.
q Quits the game.
SCREENSAVER:
Any key except +,- or spacebar Quits the game.
Try to run something like this :
sssnake -s 15 -j 5 -m screensaver
For bugs or new features go to : https://github.com/AngelJumbo/sssnake
Content type
Image
Digest
sha256:6ba8af9f6…
Size
152.4 kB
Last updated
over 3 years ago
docker pull defnotgustavom/sssnake