Because of this:
The code in post#5 needs formatting. All statements should NOT start in the first column. Add some indentations to nested statements.
Type: Posts; User: Norm
Because of this:
The code in post#5 needs formatting. All statements should NOT start in the first column. Add some indentations to nested statements.
Ask for the player's name if the value of the name variable is null.
Please edit your post and wrap your code with code tags:
<YOUR CODE HERE>
to get highlighting and preserve formatting.
Should the code ask for both players' names? Why not have separate questions for each player's name?