minesweeprb 0.4.1 → 0.4.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 +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +13 -5
- data/lib/minesweeprb/gameboard.rb +6 -1
- data/lib/minesweeprb/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b7b2455f9494e12c5bf2bddea4488d916173e411fc790bbc0b5efa468f896adb
|
4
|
+
data.tar.gz: 89b78d2f8a6280c28823c62d9c1348c3fcb8e2c2e15f4d5323457e388f811e08
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 854a839d903dc70508fafd42e4ab173abd7c1b4cad9919489a856c793ab58ff5d09920cb8b87c359f28b7326f91d3ecefca21c32f1492a360d29c4a394d2d5fb
|
7
|
+
data.tar.gz: 282f1b1ce362b13e2f8693f8add2c50fab969d08cf4f414111de4275acddc4e8c3d22cd60348327c2d9e04d5b85ee997d03e0cea7134971b8ec9da85f1dbb459
|
data/CHANGELOG.md
CHANGED
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
|
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
|
data/lib/minesweeprb/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2020-02-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: curses
|