added word shuffle functionality

This commit is contained in:
tom.hempel
2025-09-18 10:26:33 +02:00
parent 6a6b2b9936
commit e6d73a2bcb
3 changed files with 48 additions and 12 deletions

View File

@ -137,16 +137,7 @@ $env:TARGET_IP="YOUR_PLAYER1_IP,YOUR_PLAYER2_IP" ; python control.py "MODE:1;0;0
#### 6. Prepare Word List
Shuffle the word list for randomization:
```bash
# Windows PowerShell
cd experiment-scripts
Get-Content word-list.txt | Sort-Object {Get-Random} | Out-File word-list-shuffled.txt
# Linux/Mac
cd experiment-scripts
shuf word-list.txt > word-list-shuffled.txt
```
You can shuffle the word list directly in the web interface (see Web Interface Usage section below).
### Web Interface Usage
@ -159,8 +150,8 @@ Once you have the web interface running at `http://localhost:8000`:
- These should match the IPs you used in the `control.py` commands
2. **Prepare Word List**
- Copy your shuffled word list from `word-list-shuffled.txt`
- Paste it into the large text area on the right side
- Copy your word list from `word-list.txt` and paste it into the large text area on the right side
- Click the **"Shuffle"** button to randomize the word order
- Click the **"Modify"** button to generate interactive word items
3. **Set Game Parameters**