minesweeprb 0.4.1 → 0.4.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e6c2da768c57df88516bb3b8412dbcfe05792cccc251c12b5c8fcbf29d9b8965
4
- data.tar.gz: 07f4c0ec0797611ad76dd063712df054fe1bb2698cad7d832b5107826002926a
3
+ metadata.gz: b7b2455f9494e12c5bf2bddea4488d916173e411fc790bbc0b5efa468f896adb
4
+ data.tar.gz: 89b78d2f8a6280c28823c62d9c1348c3fcb8e2c2e15f4d5323457e388f811e08
5
5
  SHA512:
6
- metadata.gz: 5e4fdc062f14815586dd9f897678f970e9b6e33296806d7fc11270bf31b8ad3d03169b23b44dff87778bbe198314e7af4123e3d31f9545773f06020084cf9f1d
7
- data.tar.gz: 35572a54c306a0b051265867794bebb0990bd99bd1dad991e2b1c89f96fa4255c37dd28262ebd83465c18e90c19ab7cc5a74cfc518ec06053e057d789ffc9ff8
6
+ metadata.gz: 854a839d903dc70508fafd42e4ab173abd7c1b4cad9919489a856c793ab58ff5d09920cb8b87c359f28b7326f91d3ecefca21c32f1492a360d29c4a394d2d5fb
7
+ data.tar.gz: 282f1b1ce362b13e2f8693f8add2c50fab969d08cf4f414111de4275acddc4e8c3d22cd60348327c2d9e04d5b85ee997d03e0cea7134971b8ec9da85f1dbb459
@@ -1,3 +1,7 @@
1
+ ### 2020-02-11 0.4.2
2
+
3
+ * Fix timer loop and make it actually sleep
4
+
1
5
  ### 2020-02-09 0.4.1
2
6
 
3
7
  * Fix bug when revealing squares (Set is not a good choice)
data/README.md CHANGED
@@ -2,11 +2,18 @@
2
2
 
3
3
  Use clues on the gameboard to deduce locations of mines. Correctly reveal all non-mine squares to win.
4
4
 
5
+ ## Demo
6
+ <p align="center">
7
+ <a href="https://i.imgur.com/9VpbRzV.mp4"><img src="https://i.imgur.com/9VpbRzV.jpg?fbplay" width="390"/></a>
8
+ </p>
9
+
10
+ ## Screenshots
5
11
  <p align="center">
6
12
  <img src="screenshots/play.png" width="940" />
7
13
  <img src="screenshots/win.png" width="394" />
8
14
  </p>
9
15
 
16
+
10
17
  ## Install
11
18
 
12
19
  ```
@@ -45,10 +52,10 @@ There are no mines surrounding an empty square. Note: Revealing an empty square
45
52
  ```
46
53
  where '◻' is an empty Clue Square.
47
54
 
48
- In the example below, there is a mine in exactly 3 of the squares. Because the "3" Clue Square only has three unrevealed spaces bordering itself, it is correct to assume that there is mine in each space.
55
+ In the example below, there are exactly three mines surrounding the "3" square. Because the "3" Clue Square only has three unrevealed spaces bordering itself, it is correct to assume that there is mine in each space.
49
56
  ```
50
- 3 ◼ ◼ 3
51
- ◼ ◼ ◼ →
57
+ 3 ◼ ◼ 3
58
+ ◼ ◼ ◼ →
52
59
  ◼ ◼ ◼ ◼ ◼ ◼
53
60
  ```
54
61
 
@@ -73,7 +80,7 @@ If you reveal a square that contains a Mine, the game will end.
73
80
  Reveal all Clue Squares without revealing a Mine.
74
81
 
75
82
  ### ASCII Reference
76
- * Flags `⚑ ⍰`
83
+ * Flags `✖ ⍰`
77
84
  * Square `◼`
78
85
  * Clues `◻ ➊ ➋ ➌ ➍ ➎ ➏ ➐ ➑`
79
86
  * Mine `☀`
@@ -83,9 +90,10 @@ Reveal all Clue Squares without revealing a Mine.
83
90
  * ~Extract Gameboard~
84
91
  * Simplify logic
85
92
  * ~Repaint only what's necessary~
86
- * Separate squares and timer into separate window?
93
+ * ~Separate squares and timer into separate window?~
87
94
  * ~Implement timer~
88
95
  * Add Leaderboard
89
96
  * ~Add custom games (set width, height, and number of mines)~
90
97
  * Add peek mode, undo, or lives to help users learn
91
98
  * restarting a game brings back to prompt instead of generating a new board of the same dimensions
99
+ * Splash screen
@@ -73,7 +73,12 @@ module Minesweeprb
73
73
 
74
74
  def draw
75
75
  # paint_debug
76
- Thread.new { loop { paint_header && sleep(0.5) } }
76
+ Thread.new do
77
+ loop do
78
+ paint_header
79
+ sleep(0.5)
80
+ end
81
+ end
77
82
 
78
83
  paint_grid
79
84
  paint_grid while process_input(w_grid.getch)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Minesweeprb
4
- VERSION = '0.4.1'
4
+ VERSION = '0.4.2'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: minesweeprb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - scudco
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-02-10 00:00:00.000000000 Z
11
+ date: 2020-02-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: curses