Giter VIP home page Giter VIP logo

word-score-game's Introduction

About

This is a word score game. The goal of the game is to get the most points by making an English word with letters you took from the bag. Each letter has a point value, and each letter can only be used once in your turn. The bag has 100 letters in it. Once you use a letter from the bag it will be discarded. The game is over when all the letter have been drawn from the bag and your hand is empty. You can release your hand if you don't have any words to make, but you can not get the value of those letters.

Your Tasks

  • Write the JavaScript to allow the "blank" space to be a wild card. It can be any letter that is missing from the word, but is worth no points. For example if I had the letters "H" "E" "L" "S" "S" "_" "_" I could make the word "HELLO" by using "H" "E" "L" "_" "_".
  • Write logic to "end the game" when all letters are used from the bag and you have released your last unused letters from your hand. - Write the JavaScript needed to find the highest point word available in the dictionary.
  • Clean up the existing JavaScript code to be well formatted and have better performance (useless looping, use recursion when needed)

BONUS

  • Make the HTML look pretty

Thanks

A special thanks to WordList-JS for the dictionary JavaScript library.

word-score-game's People

Contributors

jmatthes avatar

Watchers

James Cloos avatar Katherine Zuo 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.