AryanParekh/War
War is a card game between two players, where each player is given 26 cards from a well shuffled deck of 52 cards. When the game starts, both the players are supposed to pick a random card from their 26 cards and then they are supposed to compare their scores. Ace is given the highest priority, after that King Queen and Jack, and after that the numbers 10,9,8...3 and 2 . the player who gets the higher card wins the round and gets to keep both the display cards. If both the players get a card of same preferences (e.g. both aces), then they are asked to pull 3 cards from their set of cards and keep it on the table, and then pull another card and compare their scores. The player who gets the higher card wins and if they get the same cards again, then the same process is repeated.The game continues just like this until one of the players run out of the cards.
No issues in this repository yet.