News for hackers. Stuff that matters.
Re:TheAIGames – Develop your coding skills by competing in v... by stefs on Friday May 06, 2016 @06:16PM (#11647090)
i recently tried to implement a monte carlo ai for four in a row, so i thought i'll give this a try.

downloaded the java starter bot and reuploaded it again without much modification. failed.

first, there's a null pointer exception as soon as you try to use the "field" object in the unmodified starter bot. if fixed this.

but now i get:

    Error dump
    Java HotSpot(TM) 64-Bit Server VM warning: No monotonic clock was available - timed services may be adversely affected if the time-of-day clock changes
    Error: Could not find or load main class BotStarter
    
    Input dump
    Output dump
    Running testcase /opt/aigames/etc/tests_fourinarow/test_fourinarow.txt...
    Testing Bot with setup input...
    ... finished testcase in 0.170000001788 seconds
    Test failed: no output

that's it. nothing else.

so a) without having a method of painless local testing before uploading, it gets very tedious and b) the error message "Error: Could not find or load main class BotStarter" doesn't help me much in this case because i do have a class BotStarter with the method main - it's pretty much the starter bot right now.

edit: looks like for local testing i can download the engine source and run it locally.

edit 2:

    javac -d classes @sources.txt
    ...
    java -cp bin com.theaigames.fourinarow.FourInARow ...
looks like this wasn't tested on windows.

edit 3:

got it to run locally. output is:

    stopping...

    Done.
even in dev mode. i have no idea if it worked, what i did, which bot won, etc.

i'm giving up.

There are no comments on this comment yet.