Code Monkey home page Code Monkey logo

round-four's Introduction

Challenge #4, Scrabble Solver

Denise likes to play Scrabble against her friend Zoe, but unfortunately Denise is quite bad at Scrabble due to her inability to unscramble anagrams.

Your task is to write a Scrabble Solver program in Ruby, so I can beat Zoe next time. In this repo, you've been provided a file called scrabble_dictionary.md, which is a HUMONGOUS textfile that alleges to be the comprehensive Scrabble dictionary. I downloaded it from the internet somewhere.

Your Scrabble Solver must do the following:

  1. Accept an argument that is a string of letters. The string should be capped at 7 letters long.
  2. Return all possible words that I can make using all or some of those letters.

PROBABLY IMPORTANT:

You should mock out as many of the method calls that involve the textfile as possible. We recommend waiting until the Last Responsible Moment to run your "grand finale" test.

BONUS:

Look up the corresponding letter values and tell me the X highest-value words I can make, where X is a number that I can specify for how many words I want returned. The method call may look something like,

scrabblesolver.return_highest(5, "nice") => ["nice", "cine", "nie", "ice", "ne"]

Tips

Try to take a test-driven approach - having a spec file is necessary to pass the challenge.

Submissions will be evaluated on the basis of well-written tests, clean + readable code, and adherence to SOLID principles.

When your 20 minutes is up, push your solution to Github and Hipchat the repo link to the Codejam room.

round-four's People

Contributors

chrisjbatts avatar deniseyu avatar

Watchers

 avatar  avatar

Forkers

jacobmitchinson

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.