All Projects → philshem → open-spelling-bee

philshem / open-spelling-bee

Licence: MIT license
🐝 Terminal-based python clone of New York Times' puzzle game "Spelling Bee"

Programming Languages

python
139335 projects - #7 most used programming language
shell
77523 projects

Projects that are alternatives of or similar to open-spelling-bee

euli treasure hunt
Euli is not a computer game but a tool which helps you set up a real life treasure hunt
Stars: ✭ 34 (-10.53%)
Mutual labels:  puzzle, puzzle-game, puzzle-generator
linjat
A puzzle game
Stars: ✭ 24 (-36.84%)
Mutual labels:  puzzle-game, puzzle-generator
2048-rs
A rust implementation of the famous 2048 game
Stars: ✭ 48 (+26.32%)
Mutual labels:  puzzle-game, terminal-game
pokete
A terminal based Pokemon like game
Stars: ✭ 1,397 (+3576.32%)
Mutual labels:  console-game, terminal-game
AWKTC
AWKTC is Workable Klutzy Time-wasting Command
Stars: ✭ 44 (+15.79%)
Mutual labels:  puzzle, terminal-game
iqpuzzle
A diverting I.Q. challenging pentomino puzzle.
Stars: ✭ 23 (-39.47%)
Mutual labels:  puzzle, puzzle-game
puzzlescript
🎮 Play Accessible PuzzleScript games in your terminal or embed them
Stars: ✭ 24 (-36.84%)
Mutual labels:  puzzle, puzzle-game
mimstris
A falling block puzzle game created using React and Redux.
Stars: ✭ 129 (+239.47%)
Mutual labels:  puzzle, puzzle-game
Adpuzzleanimation
Inspired by Fabric - Answers animation. Allows to "build" given view with pieces. Allows to "destroy" given view into pieces
Stars: ✭ 123 (+223.68%)
Mutual labels:  puzzle
asciiarena
Terminal multiplayer deathmatch game
Stars: ✭ 34 (-10.53%)
Mutual labels:  terminal-game
Matchimals.fun
🦁 🃏 📱 An animal matching puzzle card game– built with turn-based game engine boardgame.io and React-Native + React-Native-Web
Stars: ✭ 101 (+165.79%)
Mutual labels:  puzzle
Android Jigsaw Puzzle
Android app that allows you to draw anything and turn it into a jigsaw puzzle.
Stars: ✭ 139 (+265.79%)
Mutual labels:  puzzle
Buzz
🐝 Spelling Bee game for Android
Stars: ✭ 62 (+63.16%)
Mutual labels:  spelling-bee
Vue Puzzle Vcode
vue 拼图人机验证 右滑拼图验证
Stars: ✭ 108 (+184.21%)
Mutual labels:  puzzle
queens-cpm
Eight Queen Puzzle - portable CP/M version, written on Commodore 128
Stars: ✭ 24 (-36.84%)
Mutual labels:  terminal-game
Puzzlemaker
Swift framework responsible for generating puzzles from the image
Stars: ✭ 99 (+160.53%)
Mutual labels:  puzzle
Opencx
An open-source cryptocurrency exchange toolkit for implementing experimental exchange features
Stars: ✭ 86 (+126.32%)
Mutual labels:  puzzle
kuzusi
breakout for terminal
Stars: ✭ 19 (-50%)
Mutual labels:  console-game
terminally bored terminal board games
board games for your terminal!
Stars: ✭ 53 (+39.47%)
Mutual labels:  terminal-game
Rush
Rush Hour puzzle goodies!
Stars: ✭ 233 (+513.16%)
Mutual labels:  puzzle

Open Spelling Bee (OSB)

🐝

Open source port of New York Times' puzzle game Spelling Bee for the command line.

Requires Python 3.x and nothing but standard Python libraries.

to play

To download the game:

git clone https://github.com/philshem/open-spelling-bee.git
cd open-spelling-bee

To play a random game:

python3 play_puzzle.py

To play a non-random game:

python3 play_puzzle.py RDGHNOU

where R is the center letter that must be used at least once in each word. If the puzzle RDGHNOU does not exist, it will be created and saved to data/RDGHNOU.json (the file names are the first letter and the alphabetically sorted remaining letters).

The word list used is from SCOWL. The default setting contains 40,000 words, which seems comparable to the New York Times dictionary. (See below on changing the size parameter to include more erudite words.)

To reach "genius" level, you'll need to solve 50% of the words.

To solve a game (aka cheat-mode):

python3 solve_puzzles.py RDGHNOU

If the game does not exist, it will be created and saved to the data/ folder.

For a list of the previous NY Times letter selections, see William Shunn's page.

to generate new puzzles

Set custom parameters in the params.py file, for example how many puzzles you want to create. Then generate by running:

python3 generate_puzzles.py

Or to save the word stats:

python3 generate_puzzles.py > stats.csv

Runtime depends on your parameters. For the default parameter settings, the code takes approximately 8 hours to generate 100 7-letter puzzles that meet the criteria (total points, total words, pangram count).

To generate a certain letter combination, use:

python3 generate_puzzles.py AGFEDCB

which will then be saved to data/ABCDEFG.json.

to change the size of the wordlist

If you find the game overly facile or wish your recondite words were accepted, you can change the wordlist size. Change size=35 to a larger number in word_lists/mkscowl and then run mkscowl to create a new wordlist. You must run generate_puzzles.py (as detailed above) whenever the wordlist changes.

Description Scowl size Num words Sample word
Small size=35 40,198 abacus
Medium size=50 63,375 abeyance
Large size=70 115,332 abecedarian
Huge size=80 251,064 abapical
Insane size=95 435,726 abigailship

Game Play

To play, build words with a minimum of 4 letters, using the letters provided.

Each word must include the center letter at least once.

Letters may be used as many times as you'd like.

Scoring: 1 point for a 4 letter word, and 1 more point for each additional letter.

Each puzzle has 1 "pangram" that uses each of the 7 letters at least once. The pangram is worth 7 extra points.

example play

(based on game found by playing python3 play_puzzle.py RDGHNOU)

Type !help or !h for help
Playing puzzle index: 1
Your letters are: 
            _____
           /     \
          /       \
    ,----(    N    )----.
   /      \       /      \
  /        \_____/        \
  \   H    /     \    U   /
   \      /       \      /
    )----(    R'   )----(
   /      \       /      \
  /        \_____/        \
  \   G    /     \    D   /
   \      /       \      /
    `----(    O    )----'
          \       /
           \_____/

Max score: 88
Total words: 37
Your guess: GROUND
✓ GROUND              word score = 3        words found = 1/37    total score = 3/88    

Use the following commands for more details:

!i : instructions
!g : show letters
!f : shuffle letters
!s : player stats
!h : help
!q : quit

interesting puzzles

  • Q as center letter: QAHILSU, QBEISTU

  • X as center letter: XACESTV, XEFIOST, XAENSTU, XADEIRS, XAEINOT, XCENOST, XEFIPRS, XAERSTY, XDELOPS, XBELOST, XCDELSU

  • Z as center letter: ZORIBTE, ZRBEOSU, ZCEILST,ZAEMNST,ZADELRS, ZADENRS, ZAEIKLS, ZACENOS, ZGILNOS, ZABDELR, ZBEGINO, ZABGINS, ZEILNOR, ZABDELS, ZAELOST

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].