mirror of
https://github.com/kuhyx/testsAndMisc.git
synced 2026-07-04 20:03:12 +02:00
Fix ruff violations in ~15 source files and ~60+ test files to minimize per-file-ignores in pyproject.toml. Remaining ignores are justified with comments explaining why each suppression is necessary. Source fixes: FBT003 (keyword args), S310 (URL validation), SLF001 (private access), T201 (print→logging), C901 (complexity), E501 (line length), E402 (import order). Test fixes: SIM117 (combined with), FBT (boolean args), PERF203 (try in loop), S310/S607 (URLs/executables), E402/E501 (imports/lines), S108 (tmp paths), PLR0913 (too many args), ARG (unused args), ANN (type annotations), RUF059 (unused unpacked vars), PT019 (fixture naming). Remaining per-file-ignores (with justifications): - Tests: ARG, D, PLC0415, PLR2004, S101, SLF001 - music_gen sources: PLC0415 (heavy ML lazy imports) - moviepy_showcase: PLC0415 (circular dependency) - generate_images: PLR0913 (matplotlib helpers need many params) - praca_magisterska_video: E501, E402 (long paths, mpl.use) |
||
|---|---|---|
| .. | ||
| tests | ||
| __init__.py | ||
| _poker_gui.py | ||
| _poker_modifiers.py | ||
| index.html | ||
| poker_modifier_app.py | ||
| README_python.md | ||
| README.md | ||
| script.js | ||
| style.css | ||
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
- Open
index.htmlin your web browser - Adjust the "Modifier Probability" slider to set the chance of getting a modifier
- Click "Start Round" to begin a new round
- The app will randomly decide whether to apply a modifier based on your probability setting
- 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 structurestyle.css: Styling and responsive designscript.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).