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

Tic tac toe game fixedA #2265

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

Conversation

Dathaze20
Copy link

Enhanced User Experience: Added a scoreboard to track player and AI wins, keeping users engaged and informed about their performance. Implemented a "Restart" button, allowing users to easily start a new game without needing to restart the application.

  • Improved Gameplay: Included a "Start" button that enables the game board buttons only after the user clicks it, preventing accidental moves before the game officially begins. Introduced visual cues by using different background colors for player and AI moves, making the game board state easier to understand for the user.
  • Increased Responsiveness: Utilized root.after to schedule the AI's move after a short delay, enhancing the responsiveness of the user interface, especially on slower devices.
  • Error Handling: Incorporated a new function is_valid_move to prevent users from clicking on buttons that are already occupied, resulting in a more robust and user-friendly game experience.

Enhanced User Experience: Added a scoreboard to track player and AI wins, keeping users engaged and informed about their performance. Implemented a "Restart" button, allowing users to easily start a new game without needing to restart the application.
 * Improved Gameplay: Included a "Start" button that enables the game board buttons only after the user clicks it, preventing accidental moves before the game officially begins. Introduced visual cues by using different background colors for player and AI moves, making the game board state easier to understand for the user.
 * Increased Responsiveness: Utilized root.after to schedule the AI's move after a short delay, enhancing the responsiveness of the user interface, especially on slower devices.
 * Error Handling: Incorporated a new function is_valid_move to prevent users from clicking on buttons that are already occupied, resulting in a more robust and user-friendly game experience.
@@ -0,0 +1,191 @@
import tkinter as tk
from tkinter import messagebox

Choose a reason for hiding this comment

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

Looks clean

Copy link

@kisaanjam kisaanjam left a comment

Choose a reason for hiding this comment

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

Impressive

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.

3 participants