This is an exercise in creating custom classes and methods in Ruby. The goal is to write an algorithm that follows the following rules.
- Check if two words are anagrams.
- Account for the possibility that words may have different cases, but should still be anagrams.
- Check if input is an actual word. In this exercise words must contain a vowel.
- If phrases are not anagrams, the method should check if they are antigrams. An antigram is a word that does not contain any of the letters another word contains.
- Account for multiple words being anagrams or antigrams.
View specs here.
- Code uses a custom class and instance variables.
- Specs have complete coverage for the behaviors that need to be tested. There should be at least 5 unit tests.
- All specs are passing.
- Logic is easy to understand.
- Code has proper indentation and spacing.
- Variable names are descriptive.
- Thorough Git documentation is present (regular commits with clear messages completing the sentence "This commit will..." and a complete README). There should be at least 11 commits.
- Required functionality is in place by the 5:00pm Friday deadline.
- Project is in a polished, portfolio-quality state.
- Project demonstrates understanding of this week's concepts. If prompted, you can discuss your code with an instructor using the correct terminology.
- Clone the project from https://github.com/paigewilliams/anagrams-antigrams.git to a local directory
If you have any issues or questions, please email me at [email protected]
- Ruby 2.5.1
- Command Line
- GitHub
No known bugs.
Copyright (c) 2018 Paige Williams
Licensed under the MIT License