Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions War File
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,15 @@ Up;
If the new cards are equal repeat the previous maneuver;
Repeat until one player flips over a greater card than the other player;

First of all you only wrote down the rules on how to play the card game and didn't even put in
of your own psuedocode down. I'm going to show how you would start your code if you were to do
it.

while (player has > 0 cards) {
both players put down one card from their hand
if player one's card is larger than player two's card
player one takes his card and other card and put it at the bottom of player one's deck
}

TO DO LIST:
The rest of the code.