mineswiper 0.0.1 → 0.0.2

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: f6b38ed1b4be75ea36f861f0424264be0cc23019
4
- data.tar.gz: f527a31c8b794270e5f9ed7feb0fb063b1d206dc
3
+ metadata.gz: 039a439e0839a8da8ce18937485b3d675ba20649
4
+ data.tar.gz: 3d7d1c327722f7ada2dd27602ced7e4a1c7ee225
5
5
  SHA512:
6
- metadata.gz: 36a551d2e7248efefb91495517214f26a9b2b74c0aad6c92eef42e166d58fc76d4cabfb6c38b0ba292b91fce1067d63d00e204b4bbf023291c5351f87164a572
7
- data.tar.gz: b1bc60017ea4dcef23ddad27a42ccda593d5e747d97de100bd311c4f302f53a2e0a4c8ef4c5304d7a82d9dec8b27eb99fd18d6ab7a3aec62d6906967651b916e
6
+ metadata.gz: 7870851029f624a4c182a26fe5eca7d026cbe77572b4b9541506aa7c0ab237c5d06f50403dca9651f2e52cbd7068ecb248320ccfce3d1cded7499dd68338e286
7
+ data.tar.gz: a68dc27da8309d8b1308dfe22a7f52dadf2265aa796783f3845af0101b4af8cb47f31d28fe56233bf28d63f7530dac34f3938d5b929574fe8927599a5c277497
data/README.md CHANGED
@@ -1,13 +1,9 @@
1
1
  # Mineswiper
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/mineswiper`. To experiment with that code, run `bin/console` for an interactive prompt.
4
-
5
- TODO: Delete this and the text above, and describe your gem
3
+ A simple command line minesweeper.
6
4
 
7
5
  ## Installation
8
6
 
9
- Add this line to your application's Gemfile:
10
-
11
7
  ```ruby
12
8
  gem 'mineswiper'
13
9
  ```
@@ -22,20 +18,19 @@ Or install it yourself as:
22
18
 
23
19
  ## Usage
24
20
 
25
- TODO: Write usage instructions here
26
-
27
- ## Development
28
-
29
- After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also 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`, which will 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
21
+ ```
22
+ require 'mineswiper'
23
+ ```
34
24
 
35
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/mineswiper. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
25
+ then in the command line
36
26
 
27
+ ```
28
+ new_game = Mineswiper::Game.new
29
+ new_game.play
30
+ ```
37
31
 
38
- ## License
32
+ control the movement using W-A-S-D, Space to click, and f to put the flag.
39
33
 
40
- The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
34
+ ## Credit
41
35
 
36
+ [ndevvy](https://github.com/ndevvy/minesweeper)
data/lib/mineswiper.rb CHANGED
@@ -5,7 +5,6 @@ require_relative 'mineswiper/player'
5
5
  require_relative 'mineswiper/display'
6
6
  require 'colorize'
7
7
  require 'io/console'
8
- require 'pry-byebug'
9
8
 
10
9
  module Mineswiper
11
10
  class Game
@@ -1,3 +1,3 @@
1
1
  module Mineswiper
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
data/mineswiper.gemspec CHANGED
@@ -10,7 +10,6 @@ Gem::Specification.new do |spec|
10
10
  spec.email = ["lby89757@hotmail.com"]
11
11
 
12
12
  spec.summary = %q{Command line version Minesweeper game. Original author: https://github.com/ndevvy/minesweeper}
13
- spec.description = %q{require 'mineswiper'}
14
13
  spec.homepage = "http://www.liangboyuan.pub"
15
14
  spec.license = "MIT"
16
15
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mineswiper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - BranLiang
@@ -66,7 +66,7 @@ dependencies:
66
66
  - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
- description: require 'mineswiper'
69
+ description:
70
70
  email:
71
71
  - lby89757@hotmail.com
72
72
  executables: []