js代写

In this assignment, you will be required to write JavaScript functions that simplify playing of the variation of UNO

3 One Player, Many Moves

The second part (onePlayerManyMoves in the file csce322h0mework02part02.js) will take in two
(2) arguments (a deck and a discard pile) and return a function that takes in one (1) argument (a hand), and returns the deck, discard, and hand that is the result of the player in possession of the hand playing as many cards in a row as they can before emptying their hand or being unable to continue playing cards. The same rules for precedence of moves as onePlayerOneMove applies.

4 Many Players, One Move

The third part (manyPlayersOneMove in the file csce322h0mework02part03.js) will take in two

5 Many Players, Many Moves

The fourth part (manyPlayersManyMoves in the file csce322h0mework02part04.js) will take in

6.1 helpers.js