taka_tic_tac_toe 0.7.0 → 0.8.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/taka_tic_tac_toe/board.rb +4 -0
  2. metadata +2 -2
@@ -9,6 +9,10 @@ module TakaTicTacToe
9
9
  @slots = %w[1 2 3 4 5 6 7 8 9]
10
10
  end
11
11
 
12
+ def set_board(board)
13
+ @slots = board
14
+ end
15
+
12
16
  def get(index)
13
17
  @slots[index-1]
14
18
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: taka_tic_tac_toe
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.8.0
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: 2013-04-15 00:00:00.000000000 Z
12
+ date: 2013-04-18 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: tic tac toe engine
15
15
  email: tak.yuki@gmail.com