Skip to content

itsurka/rust-pig-latin-lang-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pig Latin Language Game

Pig Latin Wiki

Convert strings to pig latin. The first consonant of each word is moved to the end of the word and “ay” is added, so “first” becomes “irst-fay.” Words that start with a vowel have “hay” added to the end instead (“apple” becomes “apple-hay”). Keep in mind the details about UTF-8 encoding!

I made this application during study the book - The Rust Programming Language

Build and run

cargo run

Example:

% cargo run
    Finished dev [unoptimized + debuginfo] target(s) in 0.01s
     Running `target/debug/rust-pig-latin`
Input words: 
pig latin banana friends smile string eat omelet are
pig => ig-pay
latin => atin-lay
banana => anana-bay
friends => iends-fray
smile => ile-smay
string => ing-stray
eat => eat-hay
omelet => omelet-hay
are => are-hay

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages