Skip to content

GregorGrasselli/calculator-the-game-solver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Calculator: The Game Solver (Haskell)

This is a tool to solve puzzles from Calculator: The Game, (Android and iOS).

The game consists of a calculator with only a few buttons for very specific operations, and a limited number of moves (button presses) to get to a specific goal number.

Instructions

Build:

ghc -o resevanje resevanje.hs

Syntax:

./resevanje [start] [goal] [max moves] [operation1 ... operationN]

Operations:

  • '>n' means shift right in decimal by n places
  • '-' means change sign
  • '+n' means add n
  • '-n' means subtract n
  • '*n' means multiply by n
  • '/n' means divide by n
  • 'reverse' reverse
  • 'a=>b' replace a with b
  • ':n' means add n to the end

Example:

Level 57

./resevanje 0 58 4 '+4' '*4' '-3' reverse

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published