Code Monkey home page Code Monkey logo

warcardgame's Introduction

WarCardGame

The card game "War" simulated in a terminal or a WPF GUI.

The /Terminal directory contains a text based version of the game that was mostly made for testing purposes.

The /Visual directory contains a version of the game that has been modified to run as a .NET WPF application.

Playing the text based version of the game:

  • Run the .exe file included in the /Terminal directory
    • the executable should work on Windows with .NET or on Linux with Mono
  • Follow the on screen prompts
    • the "auto option will play the game from the current state to the end

Playing the graphical version of the game:

  • Run the .exe file included in the /Visual directory
  • Click the "Next" button to draw cards.
  • Click the Next button again to determine who won the round.
  • If the round was a tie, a "war" will start and clicking Next will draw the next cards for the war.
  • Continue clicking next to play through the game.
  • The number of cards in each deck is shown over the decks in the corners of the window.
  • Click "Reset" to start a new game.

Art Credit: The images used for the card faces in this game were created by Byron Knoll and are available as .png and .svg files at http://byronknoll.blogspot.com/2011/03/vector-playing-cards.html.

warcardgame's People

Contributors

mfleberfinger 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.