Skip to content

fix: remove unnecessary global statement in Blackjack21_pygame.py#1643

Open
ashrion wants to merge 1 commit into
steam-bell-92:mainfrom
ashrion:fix/blackjack-pygame-remove-unnecessary-globals
Open

fix: remove unnecessary global statement in Blackjack21_pygame.py#1643
ashrion wants to merge 1 commit into
steam-bell-92:mainfrom
ashrion:fix/blackjack-pygame-remove-unnecessary-globals

Conversation

@ashrion

@ashrion ashrion commented Jul 11, 2026

Copy link
Copy Markdown

Summary

Removed unnecessary global statement from Blackjack21_pygame.py. The function declared 45 variables as global but none are used outside main().

Changes

  • Removed 45-variable global declaration from main()

How to Test

  1. Run python games/Blackjack-21/Blackjack21_pygame.py
  2. Play a few rounds to verify game works correctly
  3. Confirm no NameError or behavior changes

Related Issues

Fixes #1642

GSSoC 2026

Removed 40-variable global declaration from main() since all variables
are local and never accessed outside the function.

Fixes steam-bell-92#1640
@vercel

vercel Bot commented Jul 11, 2026

Copy link
Copy Markdown

@ashrion is attempting to deploy a commit to the Anuj's projects Team on Vercel.

A member of the Team first needs to authorize it.

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.

feat: add type hints and utility functions to db_manager.py

1 participant