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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0f9cebf323ed1409f108613fc3f1403b327858f4
4
- data.tar.gz: 801a167cb2e0c90e86ae7811fd39ceb09e351eb5
3
+ metadata.gz: 63eb27b00ea66017e4a529a08981ec16bbb8cd10
4
+ data.tar.gz: a634e91c4831e0d2eac517744f8fdc1f10836ab5
5
5
  SHA512:
6
- metadata.gz: 5f7cdb3f6eb1c0558f54fb686912fff36a4e468991f21aa4959bd1e3002c823df2a5181ec7192ed2fde286952dc1929debbfbca0a29a4ee90abe7b4ba4b60938
7
- data.tar.gz: 6aa63e24024b75cb0d2e85d7edd3a8c50a14361527564cd51534b2b3d01295d495a3cb7bf254856f7047561837fbee952a66020755ac810925851c4d6e07872c
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 your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/ruby_chess`. To experiment with that code, run `bin/console` for an interactive prompt.
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
- TODO: Delete this and the text above, and describe your gem
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
- And then execute:
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
+ ```
@@ -1,3 +1,3 @@
1
1
  class RubyChess
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
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
- run if reset == 'y' || reset =='Y' || reset == 'yes' || reset == 'Yes'
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.0
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-24 00:00:00.000000000 Z
11
+ date: 2015-06-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler