Skip to content

An expressions solver module for games like "Mathler" and "Nerdle"

License

Notifications You must be signed in to change notification settings

lfhohmann/expression-solver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Expression Solver

An expression validator and solver for games like Mathler and Nerdle

Solver Rules

  • Operations are always performed in PEDMAS order
  • Divisions must always result in an integer

Note

The ExpressionSolver() object expects a config dictionary, containing the following keys:

  • allow_consecutive_sum_and_sub_operators: True or False
  • allow_leading_zeros: True or False