Menu
support@authoritypapers.com
+1(805) 568 7317

pls help java code in this question you will write a game played with pawns and hors 5153326

pls help java code In this question you will write a game played with pawns and horses in chess. Each player will play in turn, and to specify which stone to play, he will first write the address of the stone he will play and then the address of the stone he wants to put the stone in. The program will take 3 different parameters.

– action: The name of the file that shows the players' moves in order. This parameter is not required. If this parameter is not entered, it will receive the movement information from the users in turn as in the first assignment.

– load_text: The game record file required to continue a game saved as a text file.

– load_binary: The game record file required to continue a saved game as a binary file. If this parameter is not entered, a new game will start.

If no load parameter is entered, a new game will start. Rules of the game: Each player has 8 pawns and 8 horses. The player who brings any of his pawns to the last point wins the game. If there are no pawns in the game, each team gets as many points as the seven pieces from the opposing team. The pawn is 1 point, the horse is 3 points. Pawns can only move one square and eat only the stone in the diagonal. The horses will act as normal chess rules. When the game first starts, it should show:

8 |A|A|A|A|A|A|A|A|

7 |P|P|P|P|P|P|P|P|

6 | | | | | | | | |

5|||||||||

4|||||||||

3|||||||||

2 |p|p|p|p|p|p|p|p|

1 |a|a|a|a|a|a|a|a|

"Order a similar paper and get 15% discount on your first order with us
Use the following coupon
"GET15"

Order Now