tsehori/ma.py

Try again country feature - ask once more instead of restarting the game

Opened this issue · 0 comments

Issue is in line 98 in mapy.py. Instead of break in line 99, it is preferred that the user will be asked once more for a country name (that he hasn't listed before), rather than continuing to the next mini-game.
I tried working around the existing (working) for-loop (starts in line 89) but it seems like a while-loop will be a better option. This is because Python does not support index-modification during a for-loop (further reading below in stackoverflow).
See this question on stackoverflow for reference of why it's not possible to just put i -= 1 in line 99 instead of break, as possible in other languages as Java or C.