Jan-19-2021, 08:52 AM
it's an answer to both your questions - validate the user input. make a function that will ask for input until valid one is provided. then call that functions twice - for each of the players.
Also, you can simplify the long if list by using a dict to provide what wins over what. Search the forum - there were some good implementations of the game
Also, you can simplify the long if list by using a dict to provide what wins over what. Search the forum - there were some good implementations of the game
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs