Waiting for answer This question has not been answered yet. You can hire a professional tutor to get the answer.

QUESTION

Allow the users to enter the names for player1 and player2 using your game GUI.

I need to help to add following functionality to my java game:

  • If the current player is a winner, update the display label to reflect the status, and write the name of the winner on a new line in the output file named Connect4-Results.txt. You should also and ask if they want to play again. If they decide to NOT play again and terminate this round of games, write to the output file named Connect4-Results.txt the current champion's name and how many games each player won this round. Otherwise, the alternate player should take a turn.
  • If the board is full, check for a winner or a tie. If the game is a tie, indicate that in a seperate line in the output file named Connect4-Results.txt. Ask if the want to play again. If they decide to NOT play again and terminate this round of games, write to the output file named Connect4-Results.txt the current champion's name and how many games each player won this round.

Here's the repo that has the code for the working game that I build: https://github.com/araf-rahman/test.

Show more
LEARN MORE EFFECTIVELY AND GET BETTER GRADES!
Ask a Question