[][src]Crate ascii_hangman

Loads the configuration and runs the game workflow. This file not sourced for the wasm32 (wasm) target.

Modules

application

This module provides the backend API for the game logic

dictionary

This module deals with configuration data including the management of the list of secrets

game

Defines the game state and logic

image

Holds a dictionary of built-in ASCII art images and manages the piecemeal disclosure to the image. Also parses user provided images if given in the configuration file.

secret

Constants

COMMANDLINE_HELP

Text to show as command-line help --help

CONF_DEMO

Fallback sample configuration when no configuration file can be found. Fallback secret when no configuration file can be found.

PATHSTR

Default configuration filename when no filename is given at the command-line.

Traits

Render

Trait to render the text user interface (TUI)

Functions

main

Starts the game. This is the terminal application

read_config

Reads the configuration file.

write_config_template

Writes a sample configuration file on disk. Called when no configuration file can be found.