All pastes #382042 Raw Edit

Unnamed

public text v1 · immutable
·published 2007-03-05 07:32 UTC
rendered paste body
Starting 4x4 game, words from enable1.txt, min word length 3.
Reading word list from file enable1.txt... Read 172823 words.
Building this game's lexicon... done.
 
Stringpos 0
word to check: hen
wordToCheck.length 3
 Cur Center:  0
 
NotABaseCase: 
 
Stringpos 0
word to check: hen
Looking for letter : h
wordToCheck.length 3
 Cur Center:  0
 X is : 0
 
 row is: 0
 col is: 0
row: 0 and col: 0
 row is: 0
 col is: 0
Grid[row][col] M
 
SelectedSquare[row][col] == unselected if false: false
 
 
NotABaseCase: 
 
Stringpos 0
word to check: hen
Looking for letter : h
wordToCheck.length 3
 Cur Center:  0
 X is : 1
 
 row is: 0
 col is: 0
row: 0 and col: 1
 row is: 0
 col is: 1
Grid[row][col] E
 
SelectedSquare[row][col] == unselected if false: false
 
 
NotABaseCase: 
 
Stringpos 0
word to check: hen
Looking for letter : h
wordToCheck.length 3
 Cur Center:  0
 X is : 2
 
 row is: 0
 col is: 1
row: 0 and col: 2
 row is: 0
 col is: 2
Grid[row][col] S
 
SelectedSquare[row][col] == unselected if false: false
 
 
NotABaseCase: 
 
Stringpos 0
word to check: hen
Looking for letter : h
wordToCheck.length 3
 Cur Center:  0
 X is : 3
 
 row is: 0
 col is: 2
row: 0 and col: 3
 row is: 0
 col is: 3
Grid[row][col] A
 
SelectedSquare[row][col] == unselected if false: false
 
 
NotABaseCase: 
 
Stringpos 0
word to check: hen
Looking for letter : h
wordToCheck.length 3
 Cur Center:  0
 X is : 4
 
 row is: 0
 col is: 3
row: 1 and col: 0
 row is: 1
 col is: 0
Grid[row][col] Y
 
SelectedSquare[row][col] == unselected if false: false
 
 
NotABaseCase: 
 
Stringpos 0
word to check: hen
Looking for letter : h
wordToCheck.length 3
 Cur Center:  0
 X is : 5
 
 row is: 1
 col is: 0
row: 1 and col: 1
 row is: 1
 col is: 1
Grid[row][col] X
 
SelectedSquare[row][col] == unselected if false: false
 
 
NotABaseCase: 
 
Stringpos 0
word to check: hen
Looking for letter : h
wordToCheck.length 3
 Cur Center:  0
 X is : 6
 
 row is: 1
 col is: 1
row: 1 and col: 2
 row is: 1
 col is: 2
Grid[row][col] M
 
SelectedSquare[row][col] == unselected if false: false
 
 
NotABaseCase: 
 
Stringpos 0
word to check: hen
Looking for letter : h
wordToCheck.length 3
 Cur Center:  0
 X is : 7
 
 row is: 1
 col is: 2
row: 1 and col: 3
 row is: 1
 col is: 3
Grid[row][col] N
 
SelectedSquare[row][col] == unselected if false: false
 
 
NotABaseCase: 
 
Stringpos 0
word to check: hen
Looking for letter : h
wordToCheck.length 3
 Cur Center:  0
 X is : 8
 
 row is: 1
 col is: 3
row: 2 and col: 0
 row is: 2
 col is: 0
Grid[row][col] C
 
SelectedSquare[row][col] == unselected if false: false
 
 
NotABaseCase: 
 
Stringpos 0
word to check: hen
Looking for letter : h
wordToCheck.length 3
 Cur Center:  0
 X is : 9
 
 row is: 2
 col is: 0
row: 2 and col: 1
 row is: 2
 col is: 1
Grid[row][col] E
 
SelectedSquare[row][col] == unselected if false: false
 
 
NotABaseCase: 
 
Stringpos 0
word to check: hen
Looking for letter : h
wordToCheck.length 3
 Cur Center:  0
 X is : 10
 
 row is: 2
 col is: 1
row: 2 and col: 2
 row is: 2
 col is: 2
Grid[row][col] H
 
SelectedSquare[row][col] == unselected if false: false
 
 row is: 2
 col is: 2
Found & not selected
 Next row: 2
Next col 2
 
Looking for Letter To Check  h
Found letter at 10
Found letter at row: 2 and col: 2
 
 
Selected squre should be true: true
At Spot H
Next Letter is: e
Current Row and Column : 2 2
Found lettertocheck: e
Found it at: 82
next center: 10
List with Locations in order -_-__-_-== 
List with Locations in order: 10
locaTions in order 10
WordToCheck hen
 
 
Stringpos 1
word to check: hen
wordToCheck.length 3
 Cur Center:  10
 
NotABaseCase: 
 
Stringpos 1
word to check: hen
Looking for letter : e
wordToCheck.length 3
 Cur Center:  10
 X is : 0
 
 row is: 2
 col is: 1
row: 0 and col: 0
 row is: 0
 col is: 0
Grid[row][col] M
 
SelectedSquare[row][col] == unselected if false: false
 
 
NotABaseCase: 
 
Stringpos 1
word to check: hen
Looking for letter : e
wordToCheck.length 3
 Cur Center:  10
 X is : 1
 
 row is: 0
 col is: 0
row: 0 and col: 1
 row is: 0
 col is: 1
Grid[row][col] E
 
SelectedSquare[row][col] == unselected if false: false
 
 row is: 0
 col is: 1
Found & not selected
 Next row: 0
Next col 1
 
Looking for Letter To Check  e
Found letter at 1
Found letter at row: 0 and col: 1
 
 
Selected squre should be true: true
At Spot E
Next Letter is: n
Current Row and Column : 0 1
LetterToCheck: n
LetterToCheck is not found In FindAround
next center: -100
Not Found Around!
 
NotABaseCase: 
 
Stringpos 1
word to check: hen
Looking for letter : e
wordToCheck.length 3
 Cur Center:  -100
 X is : 2
 
 row is: 0
 col is: 1
row: 0 and col: 2
 row is: 0
 col is: 2
Grid[row][col] S
 
SelectedSquare[row][col] == unselected if false: false
 
 
NotABaseCase: 
 
Stringpos 1
word to check: hen
Looking for letter : e
wordToCheck.length 3
 Cur Center:  -100
 X is : 3
 
 row is: 0
 col is: 2
row: 0 and col: 3
 row is: 0
 col is: 3
Grid[row][col] A
 
SelectedSquare[row][col] == unselected if false: false
 
 
NotABaseCase: 
 
Stringpos 1
word to check: hen
Looking for letter : e
wordToCheck.length 3
 Cur Center:  -100
 X is : 4
 
 row is: 0
 col is: 3
row: 1 and col: 0
 row is: 1
 col is: 0
Grid[row][col] Y
 
SelectedSquare[row][col] == unselected if false: false
 
 
NotABaseCase: 
 
Stringpos 1
word to check: hen
Looking for letter : e
wordToCheck.length 3
 Cur Center:  -100
 X is : 5
 
 row is: 1
 col is: 0
row: 1 and col: 1
 row is: 1
 col is: 1
Grid[row][col] X
 
SelectedSquare[row][col] == unselected if false: false
 
 
NotABaseCase: 
 
Stringpos 1
word to check: hen
Looking for letter : e
wordToCheck.length 3
 Cur Center:  -100
 X is : 6
 
 row is: 1
 col is: 1
row: 1 and col: 2
 row is: 1
 col is: 2
Grid[row][col] M
 
SelectedSquare[row][col] == unselected if false: false
 
 
NotABaseCase: 
 
Stringpos 1
word to check: hen
Looking for letter : e
wordToCheck.length 3
 Cur Center:  -100
 X is : 7
 
 row is: 1
 col is: 2
row: 1 and col: 3
 row is: 1
 col is: 3
Grid[row][col] N
 
SelectedSquare[row][col] == unselected if false: false
 
 
NotABaseCase: 
 
Stringpos 1
word to check: hen
Looking for letter : e
wordToCheck.length 3
 Cur Center:  -100
 X is : 8
 
 row is: 1
 col is: 3
row: 2 and col: 0
 row is: 2
 col is: 0
Grid[row][col] C
 
SelectedSquare[row][col] == unselected if false: false
 
 
NotABaseCase: 
 
Stringpos 1
word to check: hen
Looking for letter : e
wordToCheck.length 3
 Cur Center:  -100
 X is : 9
 
 row is: 2
 col is: 0
row: 2 and col: 1
 row is: 2
 col is: 1
Grid[row][col] E
 
SelectedSquare[row][col] == unselected if false: false
 
 row is: 2
 col is: 1
Found & not selected
 Next row: 2
Next col 1
 
Looking for Letter To Check  e
Found letter at 9
Found letter at row: 2 and col: 1
 
 
Selected squre should be true: true
At Spot E
Next Letter is: n
Current Row and Column : 2 1
Found lettertocheck: n
Found it at: 81
next center: 9
List with Locations in order -_-__-_-== 
List with Locations in order: 10
List with Locations in order: 9
locaTions in order 9
WordToCheck hen
 
 
Stringpos 2
word to check: hen
wordToCheck.length 3
 Cur Center:  9
 
NotABaseCase: 
 
Stringpos 2
word to check: hen
Looking for letter : n
wordToCheck.length 3
 Cur Center:  9
 X is : 0
 
 row is: 2
 col is: 0
row: 0 and col: 0
 row is: 0
 col is: 0
Grid[row][col] M
 
SelectedSquare[row][col] == unselected if false: false
 
 
NotABaseCase: 
 
Stringpos 2
word to check: hen
Looking for letter : n
wordToCheck.length 3
 Cur Center:  9
 X is : 1
 
 row is: 0
 col is: 0
row: 0 and col: 1
 row is: 0
 col is: 1
Grid[row][col] E
 
SelectedSquare[row][col] == unselected if false: true
 
 
NotABaseCase: 
 
Stringpos 2
word to check: hen
Looking for letter : n
wordToCheck.length 3
 Cur Center:  9
 X is : 2
 
 row is: 0
 col is: 1
row: 0 and col: 2
 row is: 0
 col is: 2
Grid[row][col] S
 
SelectedSquare[row][col] == unselected if false: false
 
 
NotABaseCase: 
 
Stringpos 2
word to check: hen
Looking for letter : n
wordToCheck.length 3
 Cur Center:  9
 X is : 3
 
 row is: 0
 col is: 2
row: 0 and col: 3
 row is: 0
 col is: 3
Grid[row][col] A
 
SelectedSquare[row][col] == unselected if false: false
 
 
NotABaseCase: 
 
Stringpos 2
word to check: hen
Looking for letter : n
wordToCheck.length 3
 Cur Center:  9
 X is : 4
 
 row is: 0
 col is: 3
row: 1 and col: 0
 row is: 1
 col is: 0
Grid[row][col] Y
 
SelectedSquare[row][col] == unselected if false: false
 
 
NotABaseCase: 
 
Stringpos 2
word to check: hen
Looking for letter : n
wordToCheck.length 3
 Cur Center:  9
 X is : 5
 
 row is: 1
 col is: 0
row: 1 and col: 1
 row is: 1
 col is: 1
Grid[row][col] X
 
SelectedSquare[row][col] == unselected if false: false
 
 
NotABaseCase: 
 
Stringpos 2
word to check: hen
Looking for letter : n
wordToCheck.length 3
 Cur Center:  9
 X is : 6
 
 row is: 1
 col is: 1
row: 1 and col: 2
 row is: 1
 col is: 2
Grid[row][col] M
 
SelectedSquare[row][col] == unselected if false: false
 
 
NotABaseCase: 
 
Stringpos 2
word to check: hen
Looking for letter : n
wordToCheck.length 3
 Cur Center:  9
 X is : 7
 
 row is: 1
 col is: 2
row: 1 and col: 3
 row is: 1
 col is: 3
Grid[row][col] N
 
SelectedSquare[row][col] == unselected if false: false
 Exception in thread "AWT-EventQueue-0" java.lang.StringIndexOutOfBoundsException: String index out of range: 3
	at java.lang.String.charAt(Unknown Source)
	at b0ggleLayout.FindWord(b0ggleLayout.java:107)
	at b0ggleLayout.FindWord(b0ggleLayout.java:126)
	at b0ggleLayout.FindWord(b0ggleLayout.java:126)
	at BogglePlayer.isOnBoard(BogglePlayer.java:26)
	at BoggleGUI.checkAndAddWordHuman(BoggleGUI.java:127)
	at BoggleGUI$WordEntryField$1.actionPerformed(BoggleGUI.java:682)
	at javax.swing.JTextField.fireActionPerformed(Unknown Source)
	at javax.swing.JTextField.postActionEvent(Unknown Source)
	at javax.swing.JTextField$NotifyAction.actionPerformed(Unknown Source)
	at javax.swing.SwingUtilities.notifyAction(Unknown Source)
	at javax.swing.JComponent.processKeyBinding(Unknown Source)
	at javax.swing.JComponent.processKeyBindings(Unknown Source)
	at javax.swing.JComponent.processKeyEvent(Unknown Source)
	at java.awt.Component.processEvent(Unknown Source)
	at java.awt.Container.processEvent(Unknown Source)
	at java.awt.Component.dispatchEventImpl(Unknown Source)
	at java.awt.Container.dispatchEventImpl(Unknown Source)
	at java.awt.Component.dispatchEvent(Unknown Source)
	at java.awt.KeyboardFocusManager.redispatchEvent(Unknown Source)
	at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(Unknown Source)
	at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(Unknown Source)
	at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(Unknown Source)
	at java.awt.DefaultKeyboardFocusManager.dispatchEvent(Unknown Source)
	at java.awt.Component.dispatchEventImpl(Unknown Source)
	at java.awt.Container.dispatchEventImpl(Unknown Source)
	at java.awt.Window.dispatchEventImpl(Unknown Source)
	at java.awt.Component.dispatchEvent(Unknown Source)
	at java.awt.EventQueue.dispatchEvent(Unknown Source)
	at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
	at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.awt.EventDispatchThread.run(Unknown Source)

 row is: 1
 col is: 3
Found & not selected
 Next row: 1
Next col 3
 
Looking for Letter To Check  n
Found letter at 7
Found letter at row: 1 and col: 3