Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/teja-1403/war-card-game
War (also known as Battle in the United Kingdom) is a simple card game, typically played by two players using a standard playing card deck!
https://github.com/teja-1403/war-card-game
python
Last synced: 25 days ago
JSON representation
War (also known as Battle in the United Kingdom) is a simple card game, typically played by two players using a standard playing card deck!
- Host: GitHub
- URL: https://github.com/teja-1403/war-card-game
- Owner: teja-1403
- Created: 2024-11-30T08:16:09.000Z (about 1 month ago)
- Default Branch: main
- Last Pushed: 2024-11-30T08:22:44.000Z (about 1 month ago)
- Last Synced: 2024-11-30T09:23:01.602Z (about 1 month ago)
- Topics: python
- Language: Jupyter Notebook
- Homepage:
- Size: 9.77 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# War-Card-Game β
![68747470733a2f2f6d796d6f6465726e6d65742e636f6d2f77702f77702d636f6e74656e742f75706c6f6164732f323032302f30392f7374616e646172642d6672656e63682d737569742d6465636b2d312e6a7067](https://github.com/user-attachments/assets/6decdd46-8b1c-4b0e-a794-ad210493863a)# About:
War (also known as Battle in the United Kingdom) is a simple card game, typically played by two players using a standard playing card deck!# 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 of their pile face down (some variants have three face down cards) 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.
Finally, Those who collect the 52 cards at first is declared as the winner !!!
You can have a look at the rules of the game [here](https://en.wikipedia.org/wiki/War_(card_game))!
#
Languages used :![python-logo-only](https://github.com/user-attachments/assets/a78aa447-fe92-4892-aaed-4dd6ea761795)
#
π£ Feel free to have a look at all the files in this repository !π€β In case you find issues in any of my Repositories, you can Hit Me Up [here](https://github.com/issues)! π