Code Monkey home page Code Monkey logo

war's Introduction

War by JS - Warriors

A JavaScript implementation of the card game 'War'

Team

Version

1.0

Usage

Visit war.netlify.com to play

or Download the latest files:

  • index.html
  • war.js
  • styles.css
  • images folder.

Open index.html in your browser to play.

Tech

JQuery JavaScript HTML CSS

About

Final Project for Hack Reactor Remote Prep class, rp8 choort, taught by Richard Treichel

How To Play

In our Version of the game, the winner is the first player to reach 10 points.

  • The highest valued card wins the hand
  • Values: "Ace is high", "2" is low.
  • in the event of a tie, both players now flip 2 cards..
    • The second card now determines the winner of the tie.
    • This is repeated until there is no longer a tie.
    • The winner of the tie takes all the cards flipped since the last "capture".
  • Each card "captured" counts as 1 point.
  • First Player/Computer to reach or surpass 10 points Wins !

License

What would we do in a version 2 ?

  • More likely: we will build completely New Projects to keep learning and applying new skills.
  • extend game play until one player captures all 52 cards. (This could easily make for a Very long game.)
  • properly transfer the winning cards to the player that wins the hand.
    • in the current version, this was not necessary because we have a winner far before all cards are looked at. Easy to implement this change.
    • game would then end when the player or computer runs out of cards.
  • update the visual layout, adding some animated effects showing a transfer of cards, or shuffling, for example
  • make a two player version of the game

war's People

Contributors

sherylhohman avatar natoen avatar cadkinson avatar

Watchers

James Cloos avatar  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.