Skip to content

This is a starting point for new programmers learning TDD and ruby

Notifications You must be signed in to change notification settings

RoleModel/tdd_ruby_card_game_war

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

This is a starting point for new programmers learning TDD and ruby

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages