space_traveller

Crates.iospace_traveller
lib.rsspace_traveller
version0.6.0
sourcesrc
created_at2024-04-25 19:48:03.247717
updated_at2024-04-26 07:23:42.303142
descriptionA simple command-line game engine based on the MVC architecture, centered around cosmic space.
homepage
repositoryhttps://github.com/MateuszWalewski/space_traveller
max_upload_size
id1220696
size28,407
MateuszWalewski (MateuszWalewski)

documentation

README

Space Traveller

A simple command-line game engine based on the MVC architecture, centered around cosmic space. The "reader" and "viewer" components are fully customizable as public trait objects that are injected to the main part. It may serve as a starting point for crafting epic, old-school RPGs, enriching the knowledge of the universe.

Just play

use space_traveller::{view, GameManager, StdInputReader};

fn main() {
    let std_reader = StdInputReader;
    let console_view = view::ConsoleView;
    let gm = GameManager::new(std_reader, console_view);
    let gm = gm.add_players();
    let gm = gm.start_game();
    gm.finish_game();
}

Commit count: 31

cargo fmt