Giter Club home page Giter Club logo

17war's Introduction

17'War Card Game

The "17'War" card game is a simple two-player card game where the goal is to win as many rounds as possible. This README provides an overview of the game and its features.

Table of Contents

Rules of the Game

The "17'War" card game is played with a standard deck of 52 cards. Here are the basic rules:

  • The deck is divided evenly between two players, giving each player 26 cards.
  • In each round, both players reveal the top card from their deck.
  • The player with the higher card value wins the round and earns a point.
  • If the cards have the same value, it's a tie, and no one gets a point.
  • The game continues for 26 rounds, and the player with the most points at the end wins the game.
  • If the scores are tied at the end of 26 rounds, the game ends in a tie.

Features

Custom Player Names

You can choose custom names for the two players before starting the game. When you run the game, you'll be prompted to enter the names for "Player 1" and "Player 2". Enjoy the game with personalized player names!

Pause Between Rounds

To make the game more engaging and visually appealing, there is a brief pause (1 second) between each round. This allows players to see the outcome of each round before moving on to the next one.

Replay Option

After completing a game, players are given the option to replay. You can choose to start a new game or exit. If you choose to replay, the game will reset, and you can play another round.

How to Run the Game

  1. Compile the Java code for the game.

    javac Card.java Player.java War.java
  2. Run the War class to start the game.

    java War
  3. Follow the on-screen prompts to play the game. You'll be asked if you want to play again after each game ends. If you choose to exit, the program will terminate.

Enjoy playing the "17'War" card game with your friends and have fun trying to outscore each other!

Tumay YILDIZ

17war's People

Contributors

yildiz17 avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.