tin_automata/
lib.rs

1//! Tin Automata: twelve robot-programming workbenches and a factory to restore.
2mod content;
3mod layout;
4pub mod model;
5mod view;
6use ferravex_arcade::{Color, Conf, Meta, window};
7pub use model::{Game, Phase};
8/// Identity, controls and the short field guide.
9pub const META: Meta = Meta {
10    id: "tin-automata",
11    title: "Tin Automata",
12    subtitle: "Programming puzzles",
13    controls: "Left/Right Command | Up/Down Tape | Act Write | X Delete | 1 Run | 2 Step | C Stop | 3 Undo | 4 Clear | 5 Hint",
14    accent: Color::new(0.43, 0.86, 0.77, 1.),
15    help: &[
16        "Fill the tape with commands, then run it to deliver every parcel.",
17        "Grab a parcel and Drop it on its numbered dock; switches open gates.",
18        "Repeat plays the previous command two or three more times.",
19        "Three stars need par length, no faults and no hint.",
20    ],
21};
22fn conf() -> Conf {
23    window(META.title)
24}
25async fn game() {
26    ferravex_arcade::run::<Game>(META).await;
27}
28ferravex_render::game!(conf, game);