ang_ttt_gem 1.0.4 → 1.0.5

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.
@@ -22,8 +22,10 @@ class Board
22
22
  available_spaces
23
23
  end
24
24
 
25
+ ### this is not grabbing the right cell
25
26
  def cell_occupied?(cell_number)
26
- get(cell_number.to_i - 1) != " "
27
+ get(cell_number) != " "
28
+ puts current_state
27
29
  end
28
30
 
29
31
  def current_state
@@ -43,7 +43,7 @@ class Game
43
43
  def make_move(move,mark)
44
44
  @board.set(move, mark)
45
45
  end
46
-
46
+ ##### this is not grbbing the right cell
47
47
  def square_taken?(cell_number)
48
48
  @board.cell_occupied?(cell_number)
49
49
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ang_ttt_gem
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.4
4
+ version: 1.0.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: