Giter VIP home page Giter VIP logo

scrabble-scorer-autograded's Introduction

Scrabble Scorer

Assignment Requirements

For this "Scrabble Scorer" assignment, you will create functions to accomplish the following:

  1. Convert the oldScoreKey object (with numbers as keys and arrays of letters as values) to a newScoreKey object that has 26 letter keys, each with a single number as the value.
  2. Provide 3 different scoring methods for words.
  3. Display some initial information about the program, then prompt the user to select a scoring method.
  4. Prompt the user to enter a word, then display the calculated score for that word.

The output from your program should look similar to the example output in the textbook.

How Your Assignment is Graded

Grading Tests

Provided with the assignment starter code is a suite of unit tests. Remember that these are just a starting point for your TA to grade your work.

To run the unit tests use the following command inside your terminal: npm test. If your assignment passes all the tests, it will have an output of: 17 passed, 17 total.

If you believe that your work meets all the requirements for the assignment and you are getting some test failures, don't hesitate to reach out to your TA for assistance!

Beyond the Tests

The tests aren't the only way your TA will grade your work. They will be looking for other things as well.

  1. Does your output look similar to the example?
  2. You did NOT hard code newScoreKey.
  3. Your code contains the functions transform, initialPrompt, and runProgram.
  4. Your code contains a scoringAlgorithms array that contains three objects---one for each scoring system. Each object uses the keys name, description, and scorerFunction.
  5. Your code is set up such that the value for each scorerFunction key is a function (named or anonymous) that takes in a single parameter and returns a point value.

When your TA runs your code, they will use test cases to see if your code is accurate. Here are some test cases so you can check the accuracy of your code.

Test Word Scrabble Simple Scorer Bonus Vowel
Fox 13 3 5
zebra 16 5 9
rhythm 17 6 6

Note: "rhythm" scores 8 if you count "y" as a vowel.

When you are ready, submit the link to your repo in Canvas.

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.