Skip to content

Instantly share code, notes, and snippets.

@ge0ffrey
Created December 16, 2011 16:38
Show Gist options
  • Save ge0ffrey/1486776 to your computer and use it in GitHub Desktop.
Save ge0ffrey/1486776 to your computer and use it in GitHub Desktop.
multipleQueensHorizontal because of col2@row4 and col7@row4
2011-12-16 17:35:17,219 [main] TRACE - 1 = -1
multipleQueensHorizontal because of col1@row2 and col6@row2
2011-12-16 17:35:17,221 [main] TRACE - 1 = -2
multipleQueensHorizontal because of col0@row0 and col5@row0
2011-12-16 17:35:17,221 [main] TRACE - 1 = -3
2011-12-16 17:35:17,221 [main] TRACE calculateScoreFromWorkingMemory = -3
2011-12-16 17:35:17,221 [main] INFO Solver started: time spend (8), score (-3), new best score (-3), random seed (0).
2011-12-16 17:35:17,223 [main] TRACE Before doing move col5@row0 => row2
retractLeftTuple with activation [Activation rule=multipleQueensHorizontal, act#=0, salience=0, tuple=[fact 0:22:32455963:32455963:25:DEFAULT:col5@row2] [fact 0:17:31497899:31497899:17:DEFAULT:col0@row0] ]
2011-12-16 17:35:17,226 [main] TRACE + 1 = -2
multipleQueensAscendingDiagonal because of col4@row3 and col5@row2
2011-12-16 17:35:17,228 [main] TRACE - 1 = -3
multipleQueensHorizontal because of col1@row2 and col5@row2
2011-12-16 17:35:17,228 [main] TRACE - 1 = -4
multipleQueensDescendingDiagonal because of col5@row2 and col7@row4
2011-12-16 17:35:17,230 [main] TRACE - 1 = -5
multipleQueensHorizontal because of col5@row2 and col6@row2
2011-12-16 17:35:17,230 [main] TRACE - 1 = -6
2011-12-16 17:35:17,230 [main] TRACE calculateScoreFromWorkingMemory = -6 // CORRECT
retractLeftTuple with activation [Activation rule=multipleQueensHorizontal, act#=3, salience=0, tuple=[fact 0:23:14875627:14875627:23:DEFAULT:col6@row2] [fact 0:22:32455963:32455963:26:DEFAULT:col5@row0] ]
2011-12-16 17:35:17,230 [main] TRACE + 1 = -5
retractLeftTuple with activation [Activation rule=multipleQueensDescendingDiagonal, act#=4, salience=0, tuple=[fact 0:24:602878:602878:24:DEFAULT:col7@row4] [fact 0:22:32455963:32455963:26:DEFAULT:col5@row0] ]
2011-12-16 17:35:17,230 [main] TRACE + 1 = -4
retractLeftTuple with activation [Activation rule=multipleQueensHorizontal, act#=5, salience=0, tuple=[fact 0:22:32455963:32455963:26:DEFAULT:col5@row0] [fact 0:18:23632030:23632030:18:DEFAULT:col1@row2] ]
2011-12-16 17:35:17,231 [main] TRACE + 1 = -3
retractLeftTuple with activation [Activation rule=multipleQueensAscendingDiagonal, act#=6, salience=0, tuple=[fact 0:22:32455963:32455963:26:DEFAULT:col5@row0] [fact 0:21:32653965:32653965:21:DEFAULT:col4@row3] ]
2011-12-16 17:35:17,231 [main] TRACE + 1 = -2
2011-12-16 17:35:17,231 [main] TRACE Move score (-6), accepted (true) for move (col5@row0 => row2).
2011-12-16 17:35:17,231 [main] TRACE Before doing move col1@row2 => row7
retractLeftTuple with activation [Activation rule=multipleQueensHorizontal, act#=1, salience=0, tuple=[fact 0:23:14875627:14875627:23:DEFAULT:col6@row2] [fact 0:18:23632030:23632030:27:DEFAULT:col1@row7] ]
2011-12-16 17:35:17,231 [main] TRACE + 1 = -1
multipleQueensAscendingDiagonal because of col1@row7 and col6@row2
2011-12-16 17:35:17,231 [main] TRACE - 1 = -2
multipleQueensHorizontal because of col0@row0 and col5@row0
2011-12-16 17:35:17,231 [main] TRACE - 1 = -3
2011-12-16 17:35:17,231 [main] TRACE calculateScoreFromWorkingMemory = -3 // CORRECT
retractLeftTuple with activation [Activation rule=multipleQueensAscendingDiagonal, act#=8, salience=0, tuple=[fact 0:23:14875627:14875627:23:DEFAULT:col6@row2] [fact 0:18:23632030:23632030:28:DEFAULT:col1@row2] ]
2011-12-16 17:35:17,231 [main] TRACE + 1 = -2
2011-12-16 17:35:17,231 [main] TRACE Move score (-3), accepted (true) for move (col1@row2 => row7).
2011-12-16 17:35:17,232 [main] TRACE Before doing move col1@row2 => row1
retractLeftTuple with activation [Activation rule=multipleQueensHorizontal, act#=9, salience=0, tuple=[fact 0:23:14875627:14875627:23:DEFAULT:col6@row2] [fact 0:18:23632030:23632030:29:DEFAULT:col1@row1] ] <=== BAD
2011-12-16 17:35:17,232 [main] TRACE + 1 = -1 <=== BAD because the rule never fired
multipleQueensDescendingDiagonal because of col0@row0 and col1@row1
2011-12-16 17:35:17,232 [main] TRACE - 1 = -2
multipleQueensHorizontal because of col1@row1 and col3@row1
2011-12-16 17:35:17,232 [main] TRACE - 1 = -3
2011-12-16 17:35:17,232 [main] TRACE calculateScoreFromWorkingMemory = -3 // WRONG should be -4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment