Hi, I am just starting to learn java and i need to make a game.
So there are 2 players in the game. We have 5 rows of sticks arranged so that 1st row has 1 stick, the 2nd has 2 sticks, etc. players take turns and can remove as many sticks as they want, and from which ever row. goal is to remove the last stick.
We need to alternate between both players, print out the game after each turn, and check if the player has won after each turn.
I am having so much trouble with this, so any help would really be appreciated.
So there are 2 players in the game. We have 5 rows of sticks arranged so that 1st row has 1 stick, the 2nd has 2 sticks, etc. players take turns and can remove as many sticks as they want, and from which ever row. goal is to remove the last stick.
We need to alternate between both players, print out the game after each turn, and check if the player has won after each turn.
I am having so much trouble with this, so any help would really be appreciated.
Comment