Small Rust program that tries to spell a word using elements from the period table, as per this /r/dailyprogrammer challenge. Done as an exercise to get more familiar with Rust.
- Make sure you have
cargo
andrust
available. - Navigate to the checked out directory and run
cargo run word_to_spell
.
poison -> PoISON (polonium, iodine, sulfur, oxygen, nitrogen)
bacon -> BaCoN (barium, cobalt, nitrogen)
sickness -> SiCKNeSS (silicon, carbon, potassium, neon, sulfur, sulfur)
ticklish -> TiCKLiSH (titanium, carbon, potassium, lithium, sulfur, hydrogen)
Thanks to Shepmaster for providing a lot of helpful feedback.