Giter VIP home page Giter VIP logo

pingpong's Introduction

Getting Started

  1. Run bundle
  2. Run rake db:migrate
  3. Run rake db:seed
  4. Run rails s
  5. Create a new account

Description

The purpose of this app is to allow users to track their ping pong games and to show the current leaderboard of players in the office.

Once logged in, users can log games against other opponents, see the history of their games and see the current leaderboard.

A leaderboard keeps track of the rankings of a group of players or teams over time. This is an example of a leaderboard in the context of socccer, this is an example of a leaderboard, in the context of chess, this is an example of an Elo ranking implemented in Ruby.

The framework of the app already allows users to register and sign in. Your task is to implement the abilty for players to log games, see their results and update the rank of the ping pong leaderboard. Mock ups for all UI to be developed are in the app already. Please replace the mocks with your implementation.

Requirements

Time alotted: 4 hours. Mark your start and end times with your commits.

Add all necessary migrations, models (with relationships, methods and validations), controllers, and tests.

  1. Add necessary functionality to log a game between two users
  • Games follow standard ping pong rules. They are games to 21. Each game needs to be won by a two point margin.
  • Games are inputted on the honor system (no handshaking of approval of a score)
  1. Add history page which allow the logged in user to view history of games they participated in. This includes: timestamp, opponent user, game score
  2. Populate the leaderboard page with current rankings:
  • Rankings are updated every time a game is logged
  • Not all wins should count the same. e.g: a player ranked 4 beating a player ranked 5 should not count the same as a player ranked 5 beating a player ranked 1
  • When the leaderboard is first created all the users will be equal in ranking
  1. Populate all necessary models and controllers to support this functionality
  2. Populate all necessary tests for the models and the controllers
  3. Upload your code to a public repository (github)
  4. Deploy the solution to Heroku to complete the task

Please note the following:

  • The UI uses bootstrap 3.3.5. See docs here.
  • The current Gemfile should be sufficient for the task. Please feel free to include rspec (if needed) and deployment-related gems.

Evaluation Scoring

We are evaluating you as a backend ruby developer. We will score your completion of the task as follows:

  • 30 points for code completion (leaderboard algorithm, UI, methods, controllers)
  • 30 points for code quality (RESTful, simple)
  • 10 points for tests coverage
  • 10 points for lack of bugs (correct validations, thorough testing)
  • 10 points for deployment
  • 10 points for sound logic around coding decisions

pingpong's People

Contributors

jdsampayo avatar

Watchers

 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.