Mediocre v0.4 released

Discussion of anything and everything relating to chess playing software and machines.

Moderator: Ras

mar
Posts: 2679
Joined: Fri Nov 26, 2010 2:00 pm
Location: Czech Republic
Full name: Martin Sedlak

Re: Mediocre v0.4 released

Post by mar »

Zlaire wrote: Bit late so might not be thinking clearly :), but how would B be removed before C?
Yep :) There is nothing like double embarassement! :oops: :oops: Sorry #2 of course it will work in all cases, average query/insert/delete in constant time in 99.9% cases (table will always be much larger than max positions stored)! Brilliant solution.
User avatar
Dr.Wael Deeb
Posts: 9773
Joined: Wed Mar 08, 2006 8:44 pm
Location: Amman,Jordan

Re: Mediocre v0.4 released

Post by Dr.Wael Deeb »

A much faster and optimized version is released by Master Jim than the premature one provided by the author of the engine....
_No one can hit as hard as life.But it ain’t about how hard you can hit.It’s about how hard you can get hit and keep moving forward.How much you can take and keep moving forward….
Engin
Posts: 1001
Joined: Mon Jan 05, 2009 7:40 pm
Location: Germany
Full name: Engin Üstün

Re: A lot of nonsenses !!!!!

Post by Engin »

if you an expert you can it if you want !

but you must know that a beginner having trouble to install winboard engines and escpecially to configurate the INI file.
User avatar
Jim Ablett
Posts: 2424
Joined: Fri Jul 14, 2006 7:56 am
Location: London, England
Full name: Jim Ablett

Re: Mediocre v0.4 released

Post by Jim Ablett »

SzG wrote:Hi Jonatan,

I have two notes:

1. Time usage seems not optimal. Under 40 moves in 3 minutes Mediocre uses only a bit more than half the time for 40 moves, usually there is 1:20 on the clock when the time control is reached.

2. The JA compile seems not to run on my Q6600. Does it use SSE4 instructions?
Hi Gabor,

JA compile does not use any SSE instructions, but executable was compressed with Aspack. Maybe this causes a problem with your cpu.

This program will unpack it > http://www.woodmann.com/collaborative/t ... npacker%29

Select Aspack plugin when unpacking the executable.

Jim.
ZirconiumX
Posts: 1362
Joined: Sun Jul 17, 2011 11:14 am
Full name: Hannah Ravensloft

Re: Mediocre v0.4 released

Post by ZirconiumX »

My version of java spits out Mediocre v0.4 and v0.34.

Code: Select all

$ java -version
java version "1.5.0_19"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_19-b02-306)
Java HotSpot(TM) Client VM (build 1.5.0_19-138, mixed mode, sharing)
$ java -jar mediocre_v0.4.jar
Exception in thread "main" java.lang.UnsupportedClassVersionError: Bad version number in .class file
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
        at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:242)
        at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoader.java:56)

Thanks!

Matthew:out
tu ne cede malis, sed contra audentior ito
User avatar
Jim Ablett
Posts: 2424
Joined: Fri Jul 14, 2006 7:56 am
Location: London, England
Full name: Jim Ablett

Re: Mediocre v0.4 released

Post by Jim Ablett »

ZirconiumX wrote:My version of java spits out Mediocre v0.4 and v0.34.

Code: Select all

$ java -version
java version "1.5.0_19"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_19-b02-306)
Java HotSpot(TM) Client VM (build 1.5.0_19-138, mixed mode, sharing)
$ java -jar mediocre_v0.4.jar
Exception in thread "main" java.lang.UnsupportedClassVersionError: Bad version number in .class file
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
        at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:242)
        at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoader.java:56)

Thanks!

Matthew:out
Hi Matthew,

Your Java version is a bit ancient. Update to 1.6 or 1.7.

Jim.
ZirconiumX
Posts: 1362
Joined: Sun Jul 17, 2011 11:14 am
Full name: Hannah Ravensloft

Re: Mediocre v0.4 released

Post by ZirconiumX »

I use Mac OS X so Apple distributes Java. However my version of OS X is ancient (10.4) so it is unsupported.

Hey ho!

Matthew:out
tu ne cede malis, sed contra audentior ito
User avatar
Jim Ablett
Posts: 2424
Joined: Fri Jul 14, 2006 7:56 am
Location: London, England
Full name: Jim Ablett

Re: Mediocre v0.4 released

Post by Jim Ablett »

ZirconiumX wrote:I use Mac OS X so Apple distributes Java. However my version of OS X is ancient (10.4) so it is unsupported.

Hey ho!

Matthew:out
I don't know if you have already tried this. I did a bit of googling and found it may be possible to update your java to v1.6 >
http://blog.adsdevshop.com/2008/02/26/i ... -mac-os-x/

Jim.
User avatar
Jim Ablett
Posts: 2424
Joined: Fri Jul 14, 2006 7:56 am
Location: London, England
Full name: Jim Ablett

Re: Mediocre v0.4 released

Post by Jim Ablett »

SzG wrote:
Jim Ablett wrote:
SzG wrote:Hi Jonatan,

I have two notes:

1. Time usage seems not optimal. Under 40 moves in 3 minutes Mediocre uses only a bit more than half the time for 40 moves, usually there is 1:20 on the clock when the time control is reached.

2. The JA compile seems not to run on my Q6600. Does it use SSE4 instructions?
Hi Gabor,

JA compile does not use any SSE instructions, but executable was compressed with Aspack. Maybe this causes a problem with your cpu.

This program will unpack it > http://www.woodmann.com/collaborative/t ... npacker%29

Select Aspack plugin when unpacking the executable.

Jim.
Hi Jim,

I did as you'd advised. I've obtained a 3MB executable called mediocre-04-jet-ja.unpacked.exe. Still no GUI wants to recognize it as an UCI engine. Do I have anything else to do?
I don't understand this, all my fellow members have successfully installed the engine.
BTW, I have never heard of Aspack, let alone having a compressed file inside the compressed zip. Is that so well-known?

Cheers,

What happens when you just double-click the executable? can you type the normal uci commands into the console window ? e.g

Code: Select all

uci
position startpos
go infinite
Aspack in an file compressor known to coders and compilers much like similar program called UPX which is used to reduce executable size.

Jim.
User avatar
Sylwy
Posts: 5114
Joined: Fri Apr 21, 2006 4:19 pm
Location: IAȘI - the historical capital of MOLDOVA
Full name: Silvian Rucsandescu

Re: The same problem here with the .exe compilation

Post by Sylwy »

SzG wrote:
Jim Ablett wrote: What happens when you just double-click the executable? can you type the normal uci commands into the console window ? e.g

Code: Select all

uci
position startpos
go infinite
A black DOS window pops up then disappears immediately. Same with both (packed and unpacked) files.
Same when I try to run them from under Total Commander. And when I direct the output to a file, the file created is 0 in size.

Hi Jim and Gabor !

The same problem here !
With a double-click on .exe file I obtain not a console mode but only a new file : mediocre-04-jet-ja.unpacked.usg
Take a look please :

Image

And I have on my computer Java 6 update 29. Java site says all are OK with my installation !

What to do ?

Regards,
SilvianR :wink: