testsAndMisc/poker_modifier_app
Krzysztof kuhy Rudnicki 50fd6812d7 refactor: enforce 500-line limit on all Python source files
Split 18+ Python files that exceeded 500 lines into smaller modules
with helper files (prefixed with _). All functions are re-exported
from the original modules to maintain backward compatibility with
test patches and external imports.

Files split:
- moviepy_showcase.py (1212 -> 302 + 3 helpers)
- anki_generator.py (1174 -> 473 + 4 helpers)
- test_analyze_chess_game.py (1152 -> 361 + 2 parts)
- poker_modifier_app.py (1024 -> 263 + 2 helpers)
- transcribe_fw.py (1007 -> 342 + 3 helpers)
- music_generator.py (1002 -> 319 + 2 helpers)
- translator.py (951 -> 442 + 2 helpers)
- cinema_planner.py (893 -> 369 + 2 helpers)
- lichess_bot/main.py (757 -> 495 + _game_logic.py)
- test_translator.py (725 -> 289 + part2 + conftest)
- test_lichess_api.py (680 -> 475 + part2)
- learning_pipe.py (668 -> 375 + 2 helpers)
- cache.py (655 -> 360 + _cache_decks.py)
- analyze_chess_game.py (632 -> 463 + _move_analysis.py)
- visualize_q02.py (609 -> 371 + helper)
- repo_explorer.py (602 -> 347 + 2 helpers)
- keyboard_coop/main.py (515 -> 416 + _dictionary.py)
- scanning.py (501 -> 314 + _enforce_loop.py)

All tests pass: 144 lichess_bot (100% branch coverage), 243 others.
No new lint errors introduced.
2026-03-17 22:47:42 +01:00
..
__init__.py refactor: rename folders to fix N999, INP001, S311 linting rules 2025-11-30 21:20:17 +01:00
_poker_gui.py refactor: enforce 500-line limit on all Python source files 2026-03-17 22:47:42 +01:00
_poker_modifiers.py refactor: enforce 500-line limit on all Python source files 2026-03-17 22:47:42 +01:00
index.html refactor: rename folders to fix N999, INP001, S311 linting rules 2025-11-30 21:20:17 +01:00
poker_modifier_app.py refactor: enforce 500-line limit on all Python source files 2026-03-17 22:47:42 +01:00
README_python.md refactor: rename folders to fix N999, INP001, S311 linting rules 2025-11-30 21:20:17 +01:00
README.md refactor: rename folders to fix N999, INP001, S311 linting rules 2025-11-30 21:20:17 +01:00
script.js refactor: rename folders to fix N999, INP001, S311 linting rules 2025-11-30 21:20:17 +01:00
style.css refactor: rename folders to fix N999, INP001, S311 linting rules 2025-11-30 21:20:17 +01:00

Texas Hold'em Modifier App

A fun web application that randomly applies modifiers to Texas Hold'em poker games with configurable probability.

Features

  • Configurable Probability: Adjust the chance of getting a modifier (0-100%)
  • 15 Unique Modifiers: Various game-changing rules like "High Stakes", "Wild Card", "Reverse Psychology", etc.
  • Statistics Tracking: Keep track of rounds played and modifiers applied
  • Beautiful UI: Modern, responsive design with poker-themed styling
  • Smooth Animations: Visual feedback for button clicks and result displays

How to Use

  1. Open index.html in your web browser
  2. Adjust the "Modifier Probability" slider to set the chance of getting a modifier
  3. Click "Start Round" to begin a new round
  4. The app will randomly decide whether to apply a modifier based on your probability setting
  5. If a modifier is chosen, a random modifier will be selected and displayed

Modifiers Included

  • High Stakes: All bets are doubled
  • Wild Card: Next card can be used as any card
  • Bluff Master: See one opponent's card before betting
  • All-In Fever: If someone goes all-in, everyone must match or fold
  • Lucky Sevens: Any hand with a 7 beats a pair
  • Reverse Psychology: Lowest hand wins
  • Split Pot: Pot split between top 2 hands
  • Texas Twister: Each player gets an extra hole card
  • Blind Luck: Play blind until the river
  • Community Boost: Extra community card revealed
  • Minimum Madness: Minimum bet tripled
  • Suit Supremacy: Random suit cards worth +1 rank
  • Quick Draw: Betting time cut in half
  • Royal Treatment: Face cards worth double
  • Chip Challenge: Winner gets extra house chips

Files

  • index.html: Main HTML structure
  • style.css: Styling and responsive design
  • script.js: JavaScript functionality and modifier logic

Customization

You can easily add new modifiers by using the addModifier() method:

window.pokerApp.addModifier(
  "Your Modifier Name",
  "Description of what it does",
);

Browser Compatibility

Works in all modern web browsers (Chrome, Firefox, Safari, Edge).