Git Product home page Git Product logo

fantasy-scoring's Introduction

Fantasy Scoring

Instructions

In the initial commit to this project, you have been provided with a basic project setup as well as a set of tests which currently fail. Your task is to create a calculateScore function which will properly calculate the fantasy score for all known positions, returning 0 when the position is not one of the ones laid out below.

Working in a branch called answer, implement your function to get your tests to pass. Once you are done, push your branch up to GitHub, create a pull request, and request review from the instructor.

Scoring Rules

  • QB: 1 point for every 25 yards passing, 6 points for every passing touchdown, -3 points for every interception, 1 point for every 10 yards rushing, 6 points for every rushing touchdown, -3 points for every rushing fumble
  • RB: 1 point for every 10 yards rushing, 6 points for every rushing touchdown, -3 points for every rushing fumble, 1 point for every reception, 1 point for every 10 yards receiving, 6 points for every receiving touchdown, -3 points for every receiving fumble, 1 point for every 15 kick return yards, 6 points for every kick return touchdown, -3 points for every kick return fumble, 1 point for every 15 punt return yards, 6 points for every punt return touchdown, -3 points for every punt return fumble
  • WR: 1 point for every 10 yards rushing, 6 points for every rushing touchdown, -3 points for every rushing fumble, 1 point for every reception, 1 point for every 10 yards receiving, 6 points for every receiving touchdown, -3 points for every receiving fumble, 1 point for every 15 kick return yards, 6 points for every kick return touchdown, -3 points for every kick return fumble, 1 point for every 15 punt return yards, 6 points for every punt return touchdown, -3 points for every punt return fumble
  • TE: 1 point for every reception, 1 point for every 10 yards receiving, 6 points for every receiving touchdown, -3 points for every receiving fumble

fantasy-scoring's People

Watchers

Connor M. Gerrits avatar Andre Petion 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.