This is a solver for a game called "Keep Talking and Nobody Explodes."
It is written in pure Python (apart from py.test
for testing), and should run on both Python 2 and Python 3.
It is intended to run in an interpreter, such as IPython or IDLE. This would allow Mission Control to respond more quickly and dynamically.
To start, simply import Bomb from solver.py
, and initialize it with the required parameters.
>>> from solver import Bomb
>>> b = Bomb("ipzcv0", 1, True)
Then, you can simply move through the modules one at a time.
>>> b.wires("wbk")
... SECOND
If you are using IPython, you should be able to see the instructions for all the modules.
Finally, if anyone can help me test the modules that require continuous operation, with lots of input
and print
, I would appreciate it. The testing for these was done manually because I couldn't find a workaround.
Enjoy!