Not logged in. · Lost password · Register

Jazzpirate
Member since Oct 2016
806 posts
Subject: 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 ;)
Pau14
Member since Jan 2018
6 posts
+1 Jazzpirate
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.
Jazzpirate
Member since Oct 2016
806 posts
Ah, makes sense - I've fixed it now and your agent (seems to) run(s) as expected :)
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Go to forum
Datenschutz | Kontakt
Powered by the Unclassified NewsBoard software, 20150713-dev, © 2003-2011 by Yves Goergen