Skip to content

Tries to spell the given word using elements from the periodic table

Notifications You must be signed in to change notification settings

bjrnt/elemental-speller

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Elemental Speller

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.

Instructions

  1. Make sure you have cargo and rust available.
  2. Navigate to the checked out directory and run cargo run word_to_spell.

Example Output

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.

About

Tries to spell the given word using elements from the periodic table

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages