Spelling Bee
Back to EnvironmentsDescription
Spelling Bee is a two-player competitive game where each player attempts to create the longest possible valid English word using a given set of allowed letters. Players submit their words simultaneously, and the player with the longer valid word wins. The game emphasizes vocabulary skills and strategic letter usage.
Action Space
Actions are strings representing the player's proposed word, wrapped in square brackets.
Example Actions:
[donkey]
- "I think a good word would be
[apples]
"
Observation Space
Players receive initial game instructions with the allowed letters. The game provides no step-based observations to ensure fair play.
Initial Game Observation
[GAME]: You are Player 0 in the Spelling Bee Game. Allowed Letters: a e l m p s Create the longest possible English word using only the allowed letters. You may use each letter multiple times. Please wrap your word in square brackets, e.g., '[example]'. On your turn, simply type your word.
Gameplay
- Players: 2
- Turns: Each player has one turn to submit their word
- Allowed Letters: Random set of unique lowercase letters, configurable via num_letters
- Letter Usage: Letters can be used multiple times in a word
- Dictionary: Words must be valid English words (British or US)
- Format: Words must be wrapped in square brackets
Troubleshooting
Missing Enchant Dictionaries
If the Enchant library cannot find the required dictionaries (en_US and en_GB), install them using:
sudo apt-get install enchant sudo apt-get install myspell-en-us myspell-en-gb
Variants
Env-id | num_letters |
---|---|
SpellingBee-v0 | 6 |
SpellingBee-v0-small | 4 |
SpellingBee-v0-large | 10 |
Contact
If you have questions or face issues with this specific environment, please reach out directly to Guertlerlo@cfar.a-star.edu.sg