Can someone code the following in Java:

Prepare a project in Java to implement the “Game ofMatches”.

a) The game must start with 3 rows of matches:

– row 1: 3 matches;

– row 2: 5 matches; and

– row 3: 7 matches.

b) On each move, a player can remove ANY numberof matches of a single row. For example, Player1 could remove 1 to7 matches from the third row.

c) It is not allowed to remove matches from more than one row ina single move.

d) The player that gets the last match loses.

e) Example:

– Start of the game.

row1: I I I

row2: I I I I I

row3: I I I I I I I

– Player1 removes 3 matches from row 2.

row1:   I I I

row2: I I

row3: I I I I I I I

– Player2 removes 5 matches from row 3.

row1: I I I

row2: I I

row3:   I I

– Player1 removes 3 matches from row 1.

row1:

row2: I I

row3: I I

– Player2 removes 1 match from row 2.

row1:

row2: I

row3: I I

– Player1 removes 2 matches from row 3.

row1:

row2: I

row3:

– Player2 gets the last match.

– Player1 wins.

f) The user must be able to select the game mode:

– Player1 versus Player2; or

– Player1 versus Computer.

g) The user must be able to select the player that is going tostart the game.

h) Show the rows after each move.

i) Show the winner at the end of each game.

j) Criteria for evaluation:

k) Use Camel Notation and in-program comments.

l) Either player can remove any number of matches from a row ontheir turn.