Home > Back-end >  Java small white online cry
Java small white online cry

Time:09-26

For what I input the player is always wrong, sorrow is broken,

CodePudding user response:

If you judge is wrong, if use | |, O you input, will meet the player!='X', will also enter the if branch
So the if conditions change to the following
If (player!='O' & amp; & player! )
='X'

CodePudding user response:

reference 1st floor qybao response:
if your judgment is wrong, if use | |, O you input, will meet the player!='X', will also enter the if branch
So the if conditions change to the following
If (player!='O' & amp; & player!='X')

Poof thanks by feeling wrote don't see it
  • Related