Class: ChessVwong::Node
- Inherits:
-
Object
- Object
- ChessVwong::Node
- Defined in:
- lib/chess_vwong/node.rb
Instance Attribute Summary collapse
-
#occupied ⇒ Object
Returns the value of attribute occupied.
-
#visited ⇒ Object
Returns the value of attribute visited.
Instance Method Summary collapse
-
#initialize ⇒ Node
constructor
A new instance of Node.
Constructor Details
#initialize ⇒ Node
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
#occupied ⇒ Object
Returns the value of attribute occupied.
3 4 5 |
# File 'lib/chess_vwong/node.rb', line 3 def occupied @occupied end |
#visited ⇒ Object
Returns the value of attribute visited.
3 4 5 |
# File 'lib/chess_vwong/node.rb', line 3 def visited @visited end |