[Vox Codei - Episode 1] python 3 input bug


#1

Hi,

I have an issue with the input() function of python in the Vox Codei.

This is the main loop of my original code:
game%20loop%201
and the error output is as follow:
output%201

I do not understand why it doesn’t print what is after the rounds and bombs input.

Furthermore, I’ve found that commenting the “searcher.search_sol()” line make it work.
game%20loop%202
output%202

Does anyone have a clue about why this is happening?
Thank you.


#2

you can add

sys.stderr.flush()

in your err_print method. Your program does timeout in the search_sol method.


#3

That worked, thank you.
Now I can debug my code.