Ayu-hack / Hacktoberfest-Contributions

This repository helps beginners contribute to open source and participate in Hacktoberfest. We welcome all pull requests (Python & Java), prioritize genuine contributions, and promote good first issues! #hacktoberfest2022 #hacktoberfest2023 #hacktoberfest2024
20 stars 51 forks source link

Advanced Calculator #97

Closed Iqra-hash797 closed 1 month ago

Iqra-hash797 commented 1 month ago

Dynamic Game Mode Selection:

Introduced a mode selection menu allowing players to choose between playing against a human or a computer. Added options for different difficulty levels (Easy, Medium, Hard) in the mode selection screen. Minimax Algorithm for Computer Moves:

Implemented the Minimax algorithm to enable the computer to play optimally at the Hard difficulty level. This algorithm evaluates possible moves and their outcomes, ensuring that the computer can make the best possible decision to win or block the opponent. Random Move Logic:

In Easy mode, the computer makes random moves instead of calculated ones, creating a more casual gaming experience. Score Tracking:

Implemented a scoring system to keep track of the number of wins for both players (X and O). The scoreboard updates after each game, reflecting the current score. Game Reset and Restart Functionality:

Added buttons for resetting the current game and restarting the entire game, which clears the board and resets scores. Enhanced UI Feedback:

The game provides feedback to players using message boxes when a game ends, indicating whether a player has won or if the game ended in a draw. User-Friendly Design:

Improved layout and organization of the GUI components, making the interface more user-friendly. The buttons are styled and arranged to create an appealing design. Highlight Winning Combinations:

Placeholder function (highlight_winner) for future implementation of visually highlighting the winning combinations on the board (this can be enhanced further). Efficient Board Representation:

Utilized a 2D list to represent the Tic Tac Toe board, making it easier to check for wins and manage the game state.

Ayu-hack commented 1 month ago

Please share the screenshot of working, to get it merged. PR name is calculator but you have described it as game.

Ayu-hack commented 1 month ago

Due to no response and the PR being made with incorrect details, the PR has been closed.

Ayu-hack commented 1 month ago

More repos are available for pull requests, and they’re part of Hacktoberfest 2024. Feel free to tag me in your Hacktoberfest certificate or badges LinkedIn post! 😄

👉 Follow my GitHub and connect with me on LinkedIn! ⭐ Star these repos to stay updated for next year’s Hacktoberfest!