Giter Site home page Giter Site logo

anagram_check's Introduction

Anagram Checker

Created: 09.08.2017

Last Modified: 12.11.2017

By David Hale

Description

Script takes two strings and runs a series of comparisons on them.

Specs

Description Input Output
It will check if strings are actual words. 'rby', 'bury' 'You need to input actual words!'
It will check if strings are anagrams. 'ruby', 'bury' 'These words are anagrams!'
It will check if strings are not anagrams and if not display number of letters in common. 'mango', 'melon' 'These words are not anagrams and have 3 letters in common!'
It will run checks ignoring case. 'ruBy', 'buRy' 'These words are anagrams!'
It will check if anagrams are also palindromes. 'Racecar', 'racecar' 'These words are anagrams and palindromes!'
It will check if strings are anti-grams. 'Kite', 'Car' 'These words are antigrams!'
It will remove spaces and run checks. 'Race Car', 'racecar' 'These words are anagrams and palindromes!'
It will remove special characters and run checks. 'Race Car', 'racecar!!!##@@' 'These words are anagrams and palindromes!'
Script offers option to check another string against original. Would you like to check another word against 'original string'? Response: Yes 'Type another word:'

Setup/Installation Requirements

  1. Download files here.

  2. In terminal run 'anagram_check_script.rb'.

  3. Follow the prompts.

Support and contact details

If you have questions or run into any issues please email me at ([email protected])

Technologies Used

Ruby 2.2.2 and the gems 'rspec' and 'pry'.

License

MIT License

Copyright (c) 2017 David Hale

anagram_check's People

Contributors

phuzisham avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.