|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdam.Node
public class Node
class Main
Field Summary | |
---|---|
static int |
N
|
static int[][] |
visited
|
static int |
visitedCount
|
Constructor Summary | |
---|---|
Node(int[] position,
Node prev)
Constructor |
|
Node(Node node,
Node prev)
Constructor 2 |
Method Summary | |
---|---|
static void |
cleanVisited()
cleanVisited() |
Node |
getPrev()
Node getPrev() |
boolean |
isEnd()
boolean isEnd() |
Node |
selectBest()
Node selectBest() Selects one of the best moves |
java.lang.String |
toString()
String toString() |
void |
visit()
visit() |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static int N
public static int[][] visited
public static int visitedCount
Constructor Detail |
---|
public Node(int[] position, Node prev) throws java.lang.Exception
position
- chessboardprev
- previous node
java.lang.Exception
public Node(Node node, Node prev)
node
- actual nodeprev
- previous nodeMethod Detail |
---|
public Node getPrev()
public void visit()
public static void cleanVisited()
public Node selectBest() throws java.lang.Exception
java.lang.Exception
public boolean isEnd()
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |