https://github.com/overbryd/tic-tac-toe
https://github.com/overbryd/tic-tac-toe
Last synced: 7 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/overbryd/tic-tac-toe
- Owner: Overbryd
- Created: 2016-12-06T20:15:13.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-12-07T09:03:54.000Z (almost 9 years ago)
- Last Synced: 2025-02-02T08:17:38.287Z (9 months ago)
- Language: Ruby
- Size: 2.93 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# TicTacToe
* Setup with Bundler `$ bundle`
* Run tests with RSpec `$ rspec spec/tic_tac_toe_spec.rb`
* Use in your code:
```ruby
tic_tac_toe = TicTacToe.new([
%w[X - O],
%w[X O -],
%w[X O -]
])
tic_tac_toe.winner
# => "X"
```