mirror of
https://github.com/kuhyx/testsAndMisc.git
synced 2026-11-11 16:54:07 +01:00
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*) |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| main.py | ||
| README.md | ||
| requirements.txt | ||
| run_game.sh | ||
| words_dictionary.json | ||
Keyboard Coop Game
A fun 2-player cooperative word game where players take turns selecting adjacent letters on a QWERTY keyboard to form valid words.
How to Play
- Setup: Two players take turns at the same computer
- Turn System: Player 1 starts by clicking any letter on the keyboard
- Adjacent Rule: The next player must click a letter that is adjacent to the previously selected letter
- Word Formation: Continue taking turns until you want to submit a word
- Scoring: Press ENTER to submit the word. Valid words score points exponentially based on length:
- 3 letters: 2 points
- 4 letters: 4 points
- 5 letters: 8 points
- 6 letters: 16 points
- And so on...
Game Rules
- Minimum Length: Words must be at least 3 letters long
- Adjacency: Letters must be adjacent on a standard QWERTY keyboard
- Valid Words: Only dictionary words are accepted
- Cooperative: Both players share the same score - work together!
Keyboard Adjacency
Each key is adjacent to its neighbors (including diagonals). For example:
- 'S' is adjacent to: Q, W, E, A, D, Z, X, C
- 'F' is adjacent to: E, R, T, D, G, C, V, B
Controls
- Mouse Click: Select letters and buttons
- ENTER Key: Submit current word
- R Key: Reset the game
- ENTER Button: Submit current word (mouse)
- RESET Button: Reset the game (mouse)
Installation
- Make sure you have Python 3.6+ installed
- Install dependencies:
pip install -r requirements.txt - Run the game:
python main.py
Features
- Visual QWERTY keyboard layout
- Real-time adjacency highlighting
- Turn-based gameplay with player indicators
- Exponential scoring system
- Built-in dictionary validation
- Reset and restart functionality
Strategy Tips
- Look for common word patterns and endings
- Try to set up your partner for success
- Longer words give exponentially more points
- Remember that some letters have more adjacent options than others
Enjoy playing together!