Skip to content

Commit

Permalink
Added a method to get the number of rings
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeremy Johnstone committed Oct 4, 2009
1 parent 8ad0c01 commit 03eb1b4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions hexagon.rb
Expand Up @@ -33,6 +33,10 @@ def initialize(initialState)
end
end
end

def getRingCount
@rings.length - 1
end

def getCurrentState
state = Array.new
Expand Down

0 comments on commit 03eb1b4

Please sign in to comment.