Sign inSign up

ivan1993spb/snake-backend

By ivan1993spb

•Updated 12 months ago

Image
0

1.5K

ivan1993spb/snake-backend repository overview

⁠Snake-Backend

In process of development

The Snake-Backend does backend operations with the Snake-Server.

See the Snake-Server source code here: https://github.com/ivan1993spb/snake-server⁠

Try out the game: http://snakeonline.xyz/⁠

⁠How to start the backend

  1. Setup environment:
    echo "SNAKE_API_ADDRESS=http://snakeonline.xyz/api" > .env
    
  2. Start a redis instance:
    docker run --name redis --rm -d -p 6379:6379 redis:5.0-alpine
    
  3. Start workers. You have to start at least one:
    dramatiq lib.actors
    
  4. Start a scheduler:
    python app.py
    

⁠Features

  • Working with server API via CLI interface
    • Show basic information about server
  • Bots features
    • Start a swarm of bots
    • Stream game replays
  • Work with games
    • Create and delete games by schedule - game rotation
    • Mass game creation
    • Export and import map proportions
  • Generating images of maps
    • Daemon - walk through games and generate images
      • By schedule

⁠Game screenshots

examples/g8s75x25-big.jpeg

More screenshot examples here⁠

⁠Requirements

  • the Snake-Server >= v4.3.0

⁠License

See LICENSE⁠.

Tag summary

Content type

Image

Digest

sha256:70d1d01c1…

Size

102.9 MB

Last updated

12 months ago

docker pull ivan1993spb/snake-backend