Caution
This code helps solve specific late-game puzzles in the game Blue Prince. If you haven't played the game it won't mean anything to you. But, it could spoil the method and result of a puzzle if you have played the game. The tests also have lots of other puzzles from the game. Proceed at your own risk.
This is a tiny package to solve Blue Prince's numeric core puzzles.
While the __main__ method solves a specific puzzle from the game, the public numeric_core function can produce the correct core for any number or short word.
This isn't really useful except for solving the one puzzle in the game, but what can I say; I'm a sucker for implementing a spec!