To play, each player reveals the top card in their stack. The player who played the card with the higher rank (Aces high) takes both cards and puts them at the bottom of their stack in an arbitrary order.
If there is a tie, then it's War! In the card game each player places the top three cards of their stack face down, and then each player reveals the top card again. Whoever wins out of the second reveal takes all of the cards, and if there is another tie the process repeats until there is a winner.
The Game ends : if one of the player has no cards left or If the players enter the war state(revealed cards have the same value) and one of the players have less than 4 cards left. Note: Once war is declared(tie!), each player needs atleast 4 cards to start the fight - draw 3 cards(closed) and reveal top card from deck(total 4 cards)
Installation
Open the Index.html