ruby_snake 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.
data/README.md CHANGED
@@ -9,7 +9,7 @@ The rules are the same of any snake game:
9
9
 
10
10
  > To each money is given a bonus value, so the challenge is to earn the biggest score possible by eating as much money as you can.
11
11
 
12
- In addition, two players can fight online.
12
+ In addition, two players can LAN Battle.
13
13
 
14
14
  Good Luck!
15
15
 
@@ -4,7 +4,6 @@ module RubySnake
4
4
  include Config
5
5
 
6
6
  # common
7
-
8
7
  def start(role=nil)
9
8
  self.role = role
10
9
  @time_flag = Time.now.to_f
@@ -130,7 +130,7 @@ module RubySnake
130
130
  operation = Game.listen_operation
131
131
  if !snake.move(operation) || Game.lose?
132
132
  Game.role_class.message = '1'
133
- Client.connect
133
+ Client.connect Game.host
134
134
  Game.lose!
135
135
  break
136
136
  elsif score == 0 || Game.win?
@@ -1,3 +1,3 @@
1
1
  module RubySnake
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby_snake
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-12-28 00:00:00.000000000 Z
12
+ date: 2013-01-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: ncurses-ruby