Skip to content

Directory with previous Curta puzzlest that were hosted on Curta.wtf

License

Notifications You must be signed in to change notification settings

bronzepickaxe/old-curta-puzzles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Working Puzzles:

As you can see, some of the puzzles are not working at the moment. If you got them to work, feel free to submit a PR.

Old Curta Puzzles

I decided to create a directory of old Curta puzzles because I want to play them, all other available options of playing the puzzles were not working for me. Make sure to check out the Curta.wtf website for new puzzles and join there Discord.

Step 1 (Setup)

  • Run forge build
  • Install Huff

Put your RPC_URL_MAINNET in .env.example:

file: .env.example
RPC_URL_MAINNET=

After that, remove .example from the file-name, leaving you with .env. I use Infura, but other RPC providers will work as well.

Step 2 (Generating seed)

Pick the puzzle you want to play. Let's say you want to play Puzzle1, run this command: forge script script/deploy/DeployPuzzle1.s.sol This will log the seed to your console:

[] Compiling...
No files changed, compilation skipped
Script ran successfully.
Gas used: 266368

== Logs ==
  TwoTimesFourIsEight.generate():
6901746346790564457901554991452530692688817142401467382862937683132416

This will print seed in uint256 format.

If you need to convert the value to a hexidecimal value, follow these steps:

  1. Run chisel in your terminal
  2. Copy and paste the following into your terminal: uint256 puzzle = 6901746346790564457901554991452530692688817142401467382862937683132416
  3. Type puzzle, this should return:
chisel                                                                                                                                                                                                                       ─╯
Welcome to Chisel! Type `!help` to show available commands.
 uint256 puzzle = 6901746346790564457901554991452530692688817142401467382862937683132416
 puzzle
Type: uintHex: 0x0000010000000000000700000000040200000000030000800000006000500000Decimal: 6901746346790564457901554991452530692688817142401467382862937683132416
  1. Use the Hex value for your puzzles!

Happy solving!

Step 3 (Submitting answer)

If you think you have got the answer, head over to the DeployPuzzle file in script/deploy/ and follow these steps:

  • Let's say we wan to submit the solution to Puzzle1
  • Open script/deploy/DeployPuzzle.s.sol
  • Un-comment testSolve() and put your answer between the parentheses:
file: script/deploy/DeployPuzzle1.s.sol

// testSolved();
testSolved(0x123);

If the script successfully runs, this means you have solved the puzzle. If it fails, you have submitted the wrong answer.

Step 4 (Optional)

If you are stuck with a puzzle, the answers for all puzzles are in script/deploy/DeployBase.sol. You can use the answers in DeployBase.sol to try debugging the puzzles that are not working at the moment.

About

Directory with previous Curta puzzlest that were hosted on Curta.wtf

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages