Code Monkey home page Code Monkey logo

c3projects--scrabblesinatra's Introduction

Scrabble Sinatra

We are going to use the functionality that we implemented in our Scrabble projects using the new Sinatra functionality we have learned.

Setup

You'll be working on this assignment with a pair.
Choose one person to fork and clone the repo.
Add the second individual as a collaborator to the forked repo.
Both individuals will clone the forked repo: $ git clone [YOUR FORKED REPO URL]

Baseline

Once you've acheived this baseline, take a walk around the room and see if you can answer questions or help other teams.

This project...

  • needs a Gemfile so others are aware of its dependencies.
  • needs a config.ru file; look at the structure in the SinatraSite project for an example
  • should be started with rackup on the command line.

Breakfast

  • Create a new Sinatra application with a home page (route for '/') that contains a link to a score page (route & view).
  • The score page will include a form that contains one text input. This form will POST the word for scoring. The calculated score is then returned and displayed to the user.

Lunch

  • Create a new page (route & view) which will allow the user to score multiple words.
    • This functionality should use the Scrabble functionality that scored an array of words.
  • In any view that shows a scored word, include a letter-by-letter breakdown showing the point value for each letter along with the score for the word. Avoid duplicating markup wherever possible; use partials to DRY up erb logic and HTML blocks.

Dinner

  • Modify the Lunch form to include radio buttons that will change the way the words are scored. The user can choose which piece of information has the highest weight:
    • 7-letters highest (the default from the original project)
    • Shortest word always (will outweigh 7-letters)

Dessert

  • Implement a GET route that is equivalent to the form created for Breakfast.
    • Hint: Think about idempotency; how could the breakfast functionality be implemented in a way that is idempotent?

c3projects--scrabblesinatra's People

Contributors

jnf avatar kariabancroft avatar

Watchers

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