Jan 5, 2007

[New Version] v0.1b - Aspiration windows, killer moves and PVS

Changes:
  • Aspiration Windows added
  • Killer moves added
  • Principal Variation Search added
  • New opening book file (not class). Shorter but with only openings instead of whole games
  • Readme added in the package, with notes about the engine, installation info and changes
mediocre_v0.1b

5 comments:

Anonymous said...

Impossible to play with it under Arena. I choose UCI or Winboard protocol.. Don't work. I changed the path in the bat file though... This is a pity because I would like to follow the evolution of your engine.

Jonatan Pettersson said...

Hmm.. I have no trouble running it. The .bat file should has this line:

java -classpath "C:\Documents and Settings\Jonatan\Skrivbord\Mediocre\Mediocre" Mediocre x

The path should be changed to whatever directory you have it in. E.g.:

java -classpath "C:\Mediocre" Mediocre x

Also you need to have java runtime environment installed on your computer, or you can't run java-programs. Can be downloaded at java.sun.com

That's the two things I can think of. Tell me if you get it working, or give me some more information. (does it work with the winboard client? etc.)

Jonatan Pettersson said...

Actually there is one more thing I can think of.

If you are using windows, open the console window, and write:

java

and hit enter. You should get a bunch of lines starting with "Usage:" that explains how to start a java application.

If you instead get an error message saying something like "Can't recognize the command", you don't have the path to the java-command set.

If you get the error message try modifying the .bat-file like this:

"C:\j2sdk1.4.2_08\bin\java" -classpath "C:\Documents and Settings\Jonatan\Skrivbord\Mediocre\Mediocre" Mediocre x

The "C:\j2sdk1.4.2_08\bin\java" is the path to the 'java.exe' file used to start java applications.

I have j2sdk (the development kit), you might have j2jre (java runtime environment). Try doing search for 'java.exe' if you can find it, and use whatever path it is in.

This might be the problem also.

Anonymous said...

Dear Jonatan,

if I write java in the windows console I indeed get a bunch of lines which start with "usage:". So java.exe is in my path...

I don't know why it doenn't work properly with arena. I don't have winboard, so I cannot try...

Mediocre play fine when I am in the opening book, but in this case this is Arena that plays no Mediocre. Once I am out of the book nothing happens...

I don't know what you need to know to try to help me...

Jonatan Pettersson said...

Aha, so you are letting Arena play the opening with its book? That could be the problem. Try turning it off and see if it helps.

Currently Mediocre has a quite limited support for winboard commands. 'Force' for example is not supported and perhaps Arena uses it while inputting the opening moves.

If it is, Mediocre will have no idea where to start once out of the opening, and even if it's loaded correctly, it won't be able to send any moves.

Keep in touch, since if this is the problem I will have to look into it.

Also, I would be happy if you could try using Mediocre with the WinBoard interface (http://www.tim-mann.org/xboard.html), just to see if you can get it to work at all.

There's a little guide in the readme.txt and also in an earlier post here, how to install it in WinBoard.