The Card War v1.0

Here’s my new project: The Card War !
Probably the 1st card game i’ve learn!
Good game !
(I put to the test my card engine: some improvements have been made)
(If you are interested in the card game engine, raise your hand !)

Objectives and rules

The objective of the game is to win all of the cards.

The deck is divided evenly among the players, giving each a down stack. In unison, each player reveals the top card of their deck—this is a “battle”—and the player with the higher card takes both of the cards played and moves them to their stack. Aces are high, and suits are ignored.

If the two cards played are of equal value, then there is a “war”. Both players place the next card from their pile face down and then another card face-up. The owner of the higher face-up card wins the war and adds all the cards on the table to the bottom of their deck. If the face-up cards are again equal then the battle repeats with another set of face-down/up cards. This repeats until one player’s face-up card is higher than their opponent’s.

Most descriptions of War are unclear about what happens if a player runs out of cards during a war. In some variants, that player immediately loses. In others, the player may play the last card in their deck as their face-up card for the remainder of the war or replay the game from the beginning. There also exists a variant where the player that possesses a larger amount of cards must provide the cards to fight the war.

image

This is a pretty great project, and I love the animations and sounds. However, there is a problem, you left the cards draggable. Pretty great project overall though.

Thank you !
The correction was done !

Lovely game :slight_smile:
I would suggest having the 26/52 selection to be a menu to avoid having to type

It’s a cool idea, thank you !

Nice! I remember when I was a little kid, all us little kids loved it, and all the grownups hated it, for the same reasons: the game goes on forever, and doesn’t have any element of skill involved.

I was going to argue with you because in your description you say a war has one down card and one up card, but I see your actual project has three down cards, just as I remember it. :~)

Yeah, there is some “local” rules. (See wikipedia)

For me, when we got into a battle, the player win when he got the same card involve in the battle, no 3 cards, just draw since somebody draw the battel card not the higher card drawed…

(See the wikipedia link in the init sprite)

There are some interesting variations between this and the version I learned as a kid:

In the version I learned growing up, there is a separate stack with your winnings. When you run out of cards, you shuffle your winnings and then begin playing them.

In the version I’m familiar with, you deal three cards down and then another card face-up. As I’m writing this, I see @bh mentioned something similar.

When I’ve played, the second time you do this it is called a “double war”, the third time it is called a “triple war” etcetera (and if you played with three people, a two-person war was called a two-way war and a three person war called a three-way war).

In my case, I don’t remember exactly what would happen. I think that you just sent fewer cards into war, as you described here (unless you had none left, in which case you just lost):

Upon playing the game, an additional variation I noticed was that you don’t get to see the three cards you won or lost in a war. I understand that that might be harder to program (I haven’t looked at how you did it yet), but it is a very different dynamic. In the game I played, I started with the Ace of Diamonds. The only way you can lose an Ace is through a war (or if you play with Jokers). At a certain point along in the game, the computer flipped the Ace of Diamonds, showing that it had abducted it without my knowing. This has broader implications for the overall game experience for me.

When I used to play, even though there was no strategy I could use, I think it helped my strategization (somehow that isn’t a word) and memorization skills. Specifically, I would pay close attention to how many Aces each player had in the start round; this was very easy because you could know when you’d made it through the deck because of the aforementioned shuffling when running out of cards. Thus, once the first hand had been played, I knew exactly where the power lay (sometimes I’d even count Kings). I’d keep track of any developments for the rest of the game. I’d also pay attention to the 2s, especially in the later game. If I was losing, 2s were fluff cards that just added to my card count and would almost certainly be lost. However, if my opponent had them that wasn’t a bad thing, if I won a 2 that meant I didn’t lose any cards. Additionally, as a winning opponent, I hated having the 2s and giving the losing person more time and ammo. One of the big things I’d “strategize” in was when I was losing. In that case I knew exactly what I had and what my high cards were. So, every time I shuffled, I knew what kind of order I probably wanted (especially if I was shuffling mid-war). And, of course, I was always hoping against hope I would win an Ace in a war. As a losing player, Aces are far more powerful because you reshuffle more often. Thus the game is often determined by who has the Aces; sometimes we would even separate the Aces and give two to each person to shuffle into their deck.

Adding Jokers was always an interesting variation. They upset the dominance of the Aces by trumping them, but as there were only two Jokers the dynamic was a bit different. The Aces remained quite powerful even as the Jokers could beat them. However, I think it perhaps best that they weren’t included as an option…

Me! I’ve been wanting to make a version of Hand and Foot game which you can play on the cloud for a while now (no promises though).

So what’s the point of the face-down cards?

So what’s the point of the face-down cards?

To make the wars more exciting! If you win a war you get five cards added to your side all at once. (The thing is, War is really a boring game; you just sit there turning over cards forever. It’s more like twiddling your thumbs than like playing a game. As a little kid I liked it because I couldn’t handle actual competition (still can’t), and it sure filled up a lot of time.)

I don’t know this game: it is probably fun !

For you:
card game engine

i like it! maybe with that you can make uno in it!

In the card engine?

yes

If you want to program the uno game, i can add this type of cards, but i have to do some pictures research before. I will do it if tyou have a real interest into programming this game…

okay

The card game engine in now in v2.2 and support UNO cards game!

tysm