Skip to content

bart-kneepkens/crackthecode-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Crack The Code - Generator

Crack The Code - Generator is a basic macOS commandline utility to generate puzzles for Gridlock: Crack The Code.

If you're interested in the algorithm, check out PuzzleSolver.swift and Generator.swift

Usage

./CrackTheCode-Generator [difficulty] [amount]

Where difficulty is either easy, medium, hard, or wizard, and where amount is a positive number.

Limitations

  • easy puzzles are played with possible values 1, 2, and 3. This significantly reduces the amount of unique combinations to 26 (because 333 would be considered too easily solvable, see Equation.swift).
  • The current algorithm is rather naive; after generating a random sequence, it only tries one set of random equations. This can make the script slow when generating a lot of puzzles for higher difficulties. Still, generating about 700/800 puzzles (as done for Gridlock: Crack The Code) doesn't take unreasonably long.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Languages