JaPaNi throws Nullpointer Exceptions

Disclaimer: Dieser Thread wurde aus dem alten Forum importiert. Daher werden eventuell nicht alle Formatierungen richtig angezeigt. Der ursprüngliche Thread beginnt im zweiten Post dieses Threads.

JaPaNi throws Nullpointer Exceptions
All over the place:

Exception in thread "Thread-3" java.lang.NullPointerException
	at game.State$Result.get(State.java:192)
	at game.State.<init>(State.java:55)
	at info.kwarc.teaching.AI.Kalah.WS1819.JaPaNi.move(JaPaNi.java:83)

Please fix this asap :wink:


The reason for this is the error in KalahGUI\src\game\State.
I already pointed out the mistake in this forum in ‘Kalah: error in game.State’.
In the constructor of State the GameInfo must be set before setting the result.

1 „Gefällt mir“

Ah, makes sense - I’ve fixed it now and your agent (seems to) run(s) as expected :slight_smile: