Here is my code:
The instructions are printed out from the python file.
They are given here for convienience
You start by typing in a letter
The computer then types another letter and the cycle repeats Example: You type: z Computer types: a
You know that zambia and zaire start with ""za""." "
So the next letter you type must me ""m"" or ""i"". But, you must type" """m"" because the last letter of zambia will end on the computer." On the other hand, last letter of zaire will end on you.
The person on which the last letter ends, loses. Example: Computer loses on sweden You lose on dubai
If you don't know any place you can type in ""Challenge""." The computer will give you the answer and you will lose.
If the computer doesn't know the answer, he will say ""Challenge""" Then two things can happen:
1) You know the right answer and the moderator says it is correct and you win.
2) You don't know the right answer and you type in gibberish and the moderator marks it as wrong and you lose
- Whenever you think the computer has typed in the last letter of a place, press enter.
I'm looking for comments about the following points:
- coding style
- Readability of code