Crate ascii_hangman_backend

Source
Expand description

This module provides the backend API for the game logic

Modules§

game
Defines the game state and logic

Structs§

Backend
State of the application.

Constants§

AUTHOR
CHANGE_IMAGE_MAX
The ASCII-art image should not change too often, to keep the children focused on the words rather then on the image. The disclosing image should be seen as an additional motivation that changes only from time to time. This value determines how many games should start with the same image until it changes.
CONF_TEMPLATE
Fallback sample configuration when the desktop application finds no configuration. This is also place holder and default when the web application starts.
CONF_TEMPLATE_SHORT
Configuration template. This short version is used in the web application.
LIVES
Number of wrong guess allowed.
TITLE
Title line.
VERSION

Traits§

HangmanBackend
API to interact with all game logic. This is used by the desktop frontend in main.rs or by the web-app frontend in lib.rs.