added word shuffle functionality
This commit is contained in:
15
README.md
15
README.md
@ -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**
|
||||
|
||||
Reference in New Issue
Block a user