This is an applications to check if words entered by a user are an anagram or antigrams of each other.
For the purpose of this project antigrams are being defined as words that do not contain the same letters.
- Ruby
- Rspec
- Pry
- C8H10N4O2
Initial Specs:
Behavior | Input | Output |
---|---|---|
Should check if both words are in fact words | trk , brk | trk and brk are not, or do not include, words. |
Check if two words are anagrams of each other | ruby bury | ruby and bury are anagrams. |
Should check if words are antigrams if they are not anagrams | hi bye | hi and bye are antigrams. |
Should account for multiple words in the phrase being anagrams or antigrams | Debit Car. Bad Credit | Debit Card. and Bad Credit are anagrams. |
Should account for cases of entries | Eat Tea | Eat and Tea are anagrams. |
-
Go to ( https://github.com/jonstump/anagramsandantigrams ).
-
Navigate to the code button on the github website.
-
Click on the code button to open the menu.
-
Copy the HTTPS code by clicking the clipboard next to the link.
-
Within your Bash terminal navigate to your desired location by using cd fallowed by your desired directory.
cd Desktop
- Once you have chosen your desired directory use the command.
git clone https://github.com/jonstump/anagramsandantigrams
- Now that the project is downloaded you will need to run the command 'bundle install' to install all of the gems from the Gemfile.
bundle install
- In oder to run the tests enter 'rspec' into your terminal.
bundle install
- If you would like to see the code use the command "editor ." (where editor is your code editor. example code for VScode and vim for Vim) to open the project in your code editor.
code .
GPLv3
Jon Stump © 2021
Jon Stump: Email