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
- Host: GitHub
- URL: https://github.com/rolemodel/tdd_ruby_card_game_war
- Owner: RoleModel
- Created: 2018-06-01T15:38:23.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2024-06-04T21:34:19.000Z (about 2 years ago)
- Last Synced: 2025-04-12T06:08:15.914Z (about 1 year ago)
- Language: Ruby
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 4
- Forks: 11
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
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.