#game #learning #specs #rust

bin+lib rust-warrior

Game for learning Rust, inspired by Ruby Warrior

15 releases (8 breaking)

✓ Uses Rust 2018 edition

0.9.0 Oct 15, 2019
0.8.1 Aug 27, 2019
0.3.0 Jul 31, 2019

#21 in Games

Download history 23/week @ 2019-07-23 107/week @ 2019-07-30 82/week @ 2019-08-06 33/week @ 2019-08-13 215/week @ 2019-08-20 78/week @ 2019-08-27 69/week @ 2019-09-03 59/week @ 2019-09-10 162/week @ 2019-09-17 37/week @ 2019-09-24 48/week @ 2019-10-01

304 downloads per month

MIT license

1.5K SLoC

Rust Warrior

Build Status Crates.io Docs.rs Deps.rs

This game is inspired by Ruby Warrior, which I played many years ago. This project started as a direct port, but because Ruby is an interpreted language and allows (encourages?) meta programming... I've designed Rust Warrior partly from scratch.

Set Up

Rust Warrior ships with two major components: a binary that generates a new game directory, and a library which contains the main game engine.

To get started, install rust-warrior.

$ cargo install rust-warrior

Then run rust-warrior and follow the prompts to pick a player name and set up all the necessary files in a new game directory.

getting started

Then navigate to rustwarrior/<name> (the name you provided). You'll find a README.md with instructions for level 1 and a src/main.rs with the scaffolding for a Rust Warrior player project (with some rust_warrior imports).

After reviewing the instructions, start playing level 1 by running the project:

$ cargo run


~68K SLoC