Skip to content

SummerOfCode2020/week-07-homework-perfect-lineup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The Perfect Lineup

Instructions

In the initial commit to this project, you have been provided with files that contain a JavaScript module and some associated tests. Your task is to implement a validateLineup function that will return true if the lineup provided adheres to all of the rules listed below.

Lineup Rules

  1. The total salary of all players in a lineup may not exceed $45,000
  2. Lineups may not contain more than 2 players from a single team
  3. Lineups may not contain more than 3 players from a single game
  4. Lineups must contain exactly 3 players with the position of 'OF' and must also contain exactly 1 player from each of the following positions: 'P', 'C', '1B', '2B', '3B', 'SS'

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published