Git Product home page Git Product logo

tdd_ruby_card_game_war's Introduction

tdd_ruby_card_game_war

This is a starter repository for programmers new to TDD, objects, and/or ruby.

The first assignment is to create a test-driven version of the card game of war. The tests for the 4 classes identified by the spec files should all pass by running

rspec

NOTE: it starts with one passing and one failing test

AND

The manual system test

ruby lib/war_runner.rb

produces something like:

[… lots of stuff deleted …]
Player 2 took 4 of Hearts with 10 of Spades
Player 1 took 7 of Spades with K of Hearts
Player 1 took 4 of Hearts, 10 of Hearts, 10 of Spades with K of Hearts after a single tie
Winner: Player 1

Later assignments may add other interfaces to the game.

tdd_ruby_card_game_war's People

Contributors

lapeterson01 avatar kauerrolemodel avatar

Watchers

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