Skip to content

Commit f408132

Browse files
author
magicindian
committed
Ali Tozan's bug fix for checkSuccessorList
1 parent 97cb22b commit f408132

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

ReadMe.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ One minor change is that I've dropped the make file. Please use [http://ant.apac
3232
==bug reports - acknowledgment ==
3333

3434
The following people sent in excellent comments and bug reports. Thank you!!!!
35+
* Ali Tozan
3536

3637
* Carl Anderson, Senior Scientist, ArchimedesModel.com
3738

src/aima/test/gametest/TicTacToeTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ public void testAlphaBeta() {
300300
private void checkSuccessorList(ArrayList successorList,
301301
String playerToMove, int sizeOfSuccessors) {
302302
for (int i = 0; i < successorList.size(); i++) {
303-
GameState h = (GameState) successorList.get(0);
303+
GameState h = (GameState) successorList.get(i);
304304

305305
ArrayList successors2 = new TicTacToe().getSuccessorStates(h);
306306
assertEquals(sizeOfSuccessors, successors2.size());

0 commit comments

Comments
 (0)