A Ruby program that compares two words to see if they are anagrams or antigrams (Epicodus Ruby Week 1 Code Review)
The program checks how many letters two words have in common. If the words have all of the same letters, they are anagrams, and if they have no letters in common, they are antigrams. Originally created 9.8.2017, refactored on 12.16.2017.
Spec | Input | Output |
---|---|---|
Checks whether or not two words are anagrams | ruby, bury | These words are anagrams. |
Checks whether or not two words are palindromes | bat, tab | These words are palindromes. |
Checks whether or not two words are “antigrams” | hi, bye | These words have no letter matches and are antigrams. |
Run the following commands in Terminal:
$ git clone
this repository$ cd anagrams
$ ruby app.rb
There are no known bugs at this time.
If you have questions, comments, or concerns, please contact codeberry1@gmail.com">Margaret. Feel free to make a contribution to the code.
This software is licensed under the MIT license.
Copyright (c) 2017 Margaret Berry