This site requires JavaScript, please enable it in your browser!
Greenfoot back

Report as inappropriate.

elle
elle presents ...

2012/3/13

War Game

The War Game is a cards game that uses queues. The idea of the game is that there are two decks of cards (two queues) from which the computer and the other player draw cards. The computer throws a card automatically, while the player has to click on his deck to throw a card. These two decks are made up from one complete deck (54 shuffled cards) by splitting it. The cards are drawn one at a time and they are compared. If the computer throws a higher card than the other player, then the computer takes both cards. Otherwise, the player takes the cards. If the value of the two cards is the same, this is called “war” and each player has to put a number of cards that represents the value of the cards which are at “war”. Whoever ends up with an empty deck loses. This means that the winner will have 54 cards. Along with the decks of cards, on the table there is a display which shows the number of cards in each deck.

2947 views / 20 in the last 7 days

Tags: mouse game demo

Your browser does not support the canvas tag.
A new version of this scenario was uploaded on Wed Mar 14 11:56:55 UTC 2012
Spartan289Spartan289

2014/4/11

Can you make the source code available?

Want to leave a comment? You must first log in.

Who likes this?

No votes yet.