refactor: Convert Games Python CLI scripts to follow procedural guidelines#825
Merged
steam-bell-92 merged 2 commits intoMay 27, 2026
Merged
Conversation
|
@mrdeyroy is attempting to deploy a commit to the Anuj's projects Team on Vercel. A member of the Team first needs to authorize it. |
Contributor
Author
|
@steam-bell-92 You can check now! |
Contributor
|
🎉 Thank you for your contribution! Your Pull Request has been merged successfully. We appreciate the time and effort you put into improving this project. Contributions like yours help the repository grow and stay useful for everyone. If you'd like to contribute again, please check the open issues and make sure you are assigned before opening another Pull Request. Thanks again for your support! 🙌 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This pull request addresses Issue #805 by refactoring all purely CLI-based projects within the
games/directory to adhere strictly to the project's procedural programming guidelines (Nodef, Noclass).Fixes #805
Changes Made:
while True:game loops.test_number_guessing.pyto properly execute and test procedural scripts utilizingexec()combined withunittest.mock.patch.Files Modified:
games/Blackjack-21/Blackjack-21.pygames/Dots-Boxes-AI/Dots-Boxes-AI.pygames/Emoji-Memory-Game/Emoji-Memory-Game.pygames/FLAMES-Game/FLAMES-Game.pygames/Number-Guessing-Game/Number-Guessing-Game.pygames/Number-Sliding-Puzzle/Number-Sliding-Puzzle.pygames/Reverse-Hangman-Game/Reverse-Hangman-Game.pygames/Rock-Paper-Scissor/Rock-Paper-Scissor.pygames/Tic-Tac-Toe/Tic-Tac-Toe.pygames/War-Card-Game/War-Card-Game.pygames/Whack-a-Mole/Whack-a-Mole.pygames/Word-Scramble-Game/Word-Scramble-Game.pytests/test_number_guessing.pyTesting:
Note to Maintainers:
Please add the following labels after merging:
gssoc,gssoc-ext,python,refactor.