Git Product home page Git Product logo

textovka-tui's Introduction

textovka TUI

python3.7 TUI client for PHP REST API text-based game v1

API endpoint:
https://text.n0p.cz/

API documentation:
https://github.com/krustowski/textovka-api

Running the TUI

Docker

Just install docker engine, clone this repo and run the project:

make run

If you want to end, just hit CTRL-C to exit the game.

If your game ended somehow (you died, or you won), just remove tmp/apikey file in the cloned repository and start again (but with different nickname this time)!

Other (legacy)

Make sure your python3 environment is all set up first:

./setup.py
python3 setup.py

Then just run the main.py script, choose a nickname and start the game!

./main.py
python3 main.py

By performing a registration (script is prompting for a nickname) a new file called apikey is created in the actual working directory. The file will contain the unique API key used for sending game actions and retrieving the actual player data.

TUI preview

When successfully registred, the initial room properties are loaded and shown on screen (no ping info at this moment):

_

In every room, all four default actions (directions) are available even though they do not have to be implemented in the map ("There is no such way in this room."). Actions can be map-defined, here climb-up action is loaded from the map:

_

It is also possible to define trap rooms like well room in the figure below. One is stuck in there, drowning and dying -> hp fall:

_

After death (hp = 0), one is not able to continue and has to quit the game (Control-C is a possible way to exit the TUI).

_

textovka-tui's People

Contributors

krustowski avatar

Watchers

 avatar

textovka-tui's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.