testsAndMisc/poker-modifier-app
Krzysztof kuhy Rudnicki 83022f9b2c fix(lint): remove remaining global ignores with per-file ignores
Removed from global ignore list:
- PTH (pathlib) - per-file ignores for each file using os.path
- BLE001 (blind except) - per-file ignores for resilient error handling
- S603/S607 (subprocess) - per-file ignores for tests and trusted code
- S310 (URL open) - per-file ignores for test files
- S311 (random) - per-file ignores for non-crypto random usage
- S110 (try-except-pass) - per-file ignores for optional features
- LOG015 (root logger) - per-file ignores for scripts
- G004 (logging f-strings) - per-file ignores for all scripts

Per-file ignores added for:
- Test files: S603, S310, S607, BLE001, PTH
- lichess_bot/: BLE001, S110, S603, PTH, LOG015, G004
- stockfish_analysis/: BLE001, S110, PTH, LOG015, G004
- randomJPG/: S311, PTH, LOG015, G004
- poker-modifier-app/: S311, LOG015, G004
- And other affected files

Global ignore list now only contains:
- Formatter conflicts (D203/D213, COM812, ISC001)
- Style preferences (PERF401, RUF005, SIM*, B904, TRY*)
2025-11-30 20:43:17 +01:00
..
index.html fix: correct shebang and executable permissions 2025-11-30 13:42:16 +01:00
poker_modifier_app.py fix(lint): remove remaining global ignores with per-file ignores 2025-11-30 20:43:17 +01:00
README_python.md fix: correct shebang and executable permissions 2025-11-30 13:42:16 +01:00
README.md fix: correct shebang and executable permissions 2025-11-30 13:42:16 +01:00
script.js fix: correct shebang and executable permissions 2025-11-30 13:42:16 +01:00
style.css fix: correct shebang and executable permissions 2025-11-30 13:42:16 +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).