DroidFish: Some code re-organization.

This commit is contained in:
Peter Osterlund
2011-12-27 14:57:36 +00:00
parent d44cb003f1
commit 4f2bc00259
9 changed files with 819 additions and 718 deletions

View File

@@ -667,7 +667,8 @@ public class GameTreeTest extends TestCase {
for (int i = 0; i < 5; i++) gt.goForward(-1);
assertEquals("e4 e5 Nf3 Nc6 Bb5 a6*", getMoveListAsString(gt));
Node na6 = gt.currentNode;
gt.goNode(gt.rootNode);
assertTrue(gt.goNode(gt.rootNode));
assertFalse(gt.goNode(gt.rootNode));
assertEquals("*e4 e5 Nf3 Nc6 Bb5 a6", getMoveListAsString(gt));
gt.goNode(na6);
assertEquals("e4 e5 Nf3 Nc6 Bb5 a6*", getMoveListAsString(gt));