Skip to content

Comment on Show HN: A robot that plays the Simon gameparent

Comments

Thanks! The two imported crates provide the interface to the hardware (servos and sensors), so they don't add much abstraction. Most abstraction is in `robot.rs`, so that `main.rs` is clean and high-level.

Without `rustfmt::skip`, rustfmt would break these sections into more lines but I prefer them to look like little tables.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.