Question: Create a javascript algorithm that takes a random set of baseball players put in by the user, total of 9, and shuffles them to a

Create a javascript algorithm that takes a random set of baseball players put in by the user, total of 9, and shuffles them to a certain position at random. There is one criteria that only certain players that meet the criteria (this being 'yes or no' based off of user input) that the user can play first base, is limited to user input. Then shuffle the rest. 9 positions are

pitcher

catcher

first baseman

second baseman

third baseman

shortstop

left fielder

center fielder

right fielder

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!