Skip to content

Proof-pof-concept code tthat impelements Angel's algorightm from the "Arithmetic hide and seek" problem

License

Notifications You must be signed in to change notification settings

dmishin/arithmetic-hide-and-seek

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

The Game of Arithmetic Hide and Seek

Implementation of Angel's algorithm (solution of the problem). See more here: http://dmishin.blogspot.com/2015/05/the-game-of-arithmetic-hide-and-seek.html

The program enumerates all expressions, buit of operations +-/*^ integer numbers and variable k, substituting current move number to k.

Resulting sequence is guaranteed to intersect with any sequence, generted by a fixed formula.

Requirments

Python 3, pyparsing.

To validate and evaluare expressions, pyparsing is used. The code is in Python 3, bus should work in Python 2 with minor modifications (prints etc).

Implementation

Simply enumerate all strings of characters "0123456789+-*/^()k", and choose those that are valid expressions.

About

Proof-pof-concept code tthat impelements Angel's algorightm from the "Arithmetic hide and seek" problem

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages