Skip to content

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