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

Add the multiplayer tic-tac-toe using socket #4

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

Conversation

Nikhil-Varma-19
Copy link

This is a multiplayer Tic-Tac-Toe game using socket and python tkinter


return True

def isGameFinished(self):
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you please optimize this function ?

return finish,won


def computeStats(self):
Copy link
Owner

@krishkamani krishkamani Nov 4, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can add the status directly as below :

stats = {
"board": self.board,
"user1": self.user1,
"user2": self.user2,
"lastMove": self.lastMove,
"numGames": self.numGames,
"wins": self.wins,
"loss": self.loss,
"ties": self.ties
}

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.

2 participants