War card game: Difference between revisions

No change in size ,  11 months ago
m
Corrected minor error in code.
(New post.)
m (Corrected minor error in code.)
Line 568:
System.out.println("The game ended in a tie");
} else if ( handA.size() == 0 ) {
System.out.println("Player AB has won the game");
} else {
System.out.println("Player BA has won the game");
}
}
Line 622:
? ? Cards are face down
2S 2H War!
Player AB has won the game
</pre>
 
871

edits