Class: ChessVwong::Node

Inherits:
Object
  • Object
show all
Defined in:
lib/chess_vwong/node.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeNode

Returns a new instance of Node.



4
5
6
7
# File 'lib/chess_vwong/node.rb', line 4

def initialize
  @occupied = []
  @visited = []
end

Instance Attribute Details

#occupiedObject

Returns the value of attribute occupied.



3
4
5
# File 'lib/chess_vwong/node.rb', line 3

def occupied
  @occupied
end

#visitedObject

Returns the value of attribute visited.



3
4
5
# File 'lib/chess_vwong/node.rb', line 3

def visited
  @visited
end