Closed Dr-Steve closed 13 years ago
I am planning on implementing four versions of this. There will be versions for passing the center node as a row/column/generation, or as a Node. Furthermore, there will be versions for returning a list of indicies or a list of Node objects.
Furthermore, should the center node be included? In other words, if you ask for nodes-reachable from (5,5), should (5,5) itself be in the return list?
Yes that would be best
I've implemented it. The version that returns a Node list (instead of an index/integer list) is not very efficient (runs twice as many queries as it needs). I will fix this later.
It would be helpful to have a method on a node allowing me to get the number of nodes reachable from that node. This would be used for scoring possible moves in the Adversarial search to calculate end-games. I only need the number of reachable moves for this, though it may be useful to have it actually spit back the possible moves.