Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated app.js #54

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Updated app.js #54

wants to merge 1 commit into from

Conversation

MirAafaq
Copy link

1.Added Player Turn and Match Tracking: Introduced variables playerTurn to keep track of which player's turn it is and matches to record the number of matches each player has made.

2.Updated Match Logic: Adjusted the logic in the checkForMatch function to handle the new multiplayer functionality. When a match is found, it updates the respective player's match count and displays it on the screen.

3.Updated Display: Changed the result display to show the match count for both players.

4.Determined Winner: Added logic to determine the winner based on the number of matches each player has made when the game is over.

5.Alternate Turns: Implemented logic to alternate between player turns after each match attempt.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant