bloodymines 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/bin/bloodymines +6 -12
  2. metadata +3 -3
data/bin/bloodymines CHANGED
@@ -114,18 +114,12 @@ Curses.program do |scr|
114
114
  while true
115
115
  game.draw_field
116
116
  case getch
117
- when Key::UP
118
- game.move(:direction => :up, :type => :movement)
119
- when Key::DOWN
120
- game.move(:direction => :down, :type => :movement)
121
- when Key::LEFT
122
- game.move(:direction => :left, :type => :movement)
123
- when Key::RIGHT
124
- game.move(:direction => :right, :type => :movement)
125
- when 32
126
- game.mines.uncover_field(game.cursor_x, game.cursor_y)
127
- when 27, ?q, ?Q
128
- break
117
+ when Key::UP : game.move(:direction => :up)
118
+ when Key::DOWN : game.move(:direction => :down)
119
+ when Key::LEFT : game.move(:direction => :left)
120
+ when Key::RIGHT : game.move(:direction => :right)
121
+ when 32 : game.mines.uncover_field(game.cursor_x, game.cursor_y)
122
+ when 27, ?q, ?Q : break
129
123
  end
130
124
  if game.ended?
131
125
  game.draw_field
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bloodymines
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 25
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 0
10
- version: 0.1.0
9
+ - 1
10
+ version: 0.1.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - !binary |