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§
- Hangman
Backend - API to interact with all game logic. This is used by the desktop frontend
in
main.rs
or by the web-app frontend inlib.rs
.