An open API service indexing awesome lists of open source software.

https://github.com/rolemodel/tdd_ruby_card_game_war

This is a starting point for new programmers learning TDD and ruby
https://github.com/rolemodel/tdd_ruby_card_game_war

Last synced: about 1 year ago
JSON representation

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

Awesome Lists containing this project

README

          

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