Mastermind: Difference between revisions
m
Minor code alteration.
(New post.) |
m (Minor code alteration.) |
||
Line 1,520:
=={{header|Java}}==
<syntaxhighlight lang="java">
import java.util.ArrayList;
import java.util.Collections;
Line 1,577 ⟶ 1,576:
while ( guessCount > 0 && ! playerWin ) {
showBoard();
if (
playerWin = true;
reader.close();
Line 1,628 ⟶ 1,627:
}
private boolean
List<Character> userInputCharacters = new ArrayList<Character>();
for ( char ch : aUserInput.toCharArray() ) {
|