akshaymk360 / game_of_war_with_cards Goto Github PK
View Code? Open in Web Editor NEWI have created a game which will be played by 2 players computer play both players , its a game of war in which a deck of playing cards are shuffled randomly and are cut equally among both the players and each player picks one card from their respective pile of cards and irrespective of the suits the rank will be compared and whoever has the highest rank gets both the card if the ranks of both the card are same then a war is declared in which both place 5 cards on the table and whoever wins the next round gets all the five cards the player who runs out of the cards losses