ruby_chess 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +4 -34
- data/lib/ruby_chess/version.rb +1 -1
- data/lib/ruby_chess.rb +3 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 63eb27b00ea66017e4a529a08981ec16bbb8cd10
|
4
|
+
data.tar.gz: a634e91c4831e0d2eac517744f8fdc1f10836ab5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9b33e836619cef187c1041059931e78a092a2c07d45446ba2d2db7dae1d1b295fa2f0c0da51b407f99fc3dc40b83a8e994845f3369157ac01de672c3d18a4cd8
|
7
|
+
data.tar.gz: 774063a4a97486c3cce1149e2949db0d1eaeb0459a404edffbe7e476baa9a14b8bf9b4a3640e629fe2a9dec978d79317fcd702cd2b12eb94566ec2630db8f48e
|
data/README.md
CHANGED
@@ -1,39 +1,9 @@
|
|
1
1
|
# RubyChess
|
2
2
|
|
3
|
-
Welcome to
|
3
|
+
Welcome to Ruby Chess. Ruby Chess is a simple command line chess game. The players may be either human or computer. So feel free to play a friend, a computer, or just watch two AI's play each other. Any and all suggestions are welcome. I would love for my AI to be a little smarter.
|
4
4
|
|
5
|
-
|
5
|
+
Ruby chess is available as a gem.
|
6
6
|
|
7
|
-
## Installation
|
8
|
-
|
9
|
-
Add this line to your application's Gemfile:
|
10
|
-
|
11
|
-
```ruby
|
12
|
-
gem 'ruby_chess'
|
13
7
|
```
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
$ bundle
|
18
|
-
|
19
|
-
Or install it yourself as:
|
20
|
-
|
21
|
-
$ gem install ruby_chess
|
22
|
-
|
23
|
-
## Usage
|
24
|
-
|
25
|
-
TODO: Write usage instructions here
|
26
|
-
|
27
|
-
## Development
|
28
|
-
|
29
|
-
After checking out the repo, run `bin/setup` to install dependencies. Then, run `bin/console` for an interactive prompt that will allow you to experiment.
|
30
|
-
|
31
|
-
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release` to create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
32
|
-
|
33
|
-
## Contributing
|
34
|
-
|
35
|
-
1. Fork it ( https://github.com/[my-github-username]/ruby_chess/fork )
|
36
|
-
2. Create your feature branch (`git checkout -b my-new-feature`)
|
37
|
-
3. Commit your changes (`git commit -am 'Add some feature'`)
|
38
|
-
4. Push to the branch (`git push origin my-new-feature`)
|
39
|
-
5. Create a new Pull Request
|
8
|
+
gem install ruby_chess
|
9
|
+
```
|
data/lib/ruby_chess/version.rb
CHANGED
data/lib/ruby_chess.rb
CHANGED
@@ -10,7 +10,9 @@ class RubyChess
|
|
10
10
|
choose_players
|
11
11
|
game = Game.new(@white_player, @black_player)
|
12
12
|
game.play
|
13
|
-
|
13
|
+
clear_screen
|
14
|
+
choice = reset
|
15
|
+
run if choice == 'y' || choice =='Y' || choice == 'yes' || choice == 'Yes'
|
14
16
|
end
|
15
17
|
|
16
18
|
def choose_players
|
@@ -45,5 +47,4 @@ class RubyChess
|
|
45
47
|
@black_player = ComputerPlayer.new(:black)
|
46
48
|
end
|
47
49
|
end
|
48
|
-
|
49
50
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby_chess
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Joseph Daly
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-06-
|
11
|
+
date: 2015-06-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|