chess tips

Chess Tips

Divide and you will gain!
Strange name, real matters
[ Sign up | Log in | Guest ] (beta)
javelin 72 ( +1 | -1 )
Openings & statistics Have you ever wanted to know what openings your opponent plays most? And what openings he/she is most or least successful in? Have you ever wanted to know what openings you are most or least successful in? Do you wonder what openings work well for strong players?

I have created an application named PGNStats that can collect this information from your past game history. You can "Download all available games in PGN format" here on gameknot, for yourself or other users, and analyze it with PGNStats.

Go here for more information:
members.chello.nl/a.denhartog2/
swindel 29 ( +1 | -1 )
source code hi javelin,
why no .java files?
Since you seem to be in to these things: i need a move generator for a thesis i'm guiding. So just a simple program giving reglementary moves with a given position... Any links? (preferably C or something Perl-like)
And nice work!
swindel
bibip 2 ( +1 | -1 )
I downloaded But it seems not to work.
javelin 91 ( +1 | -1 )
swindel - I have not created a chess engine yet. I have thought about it some, and can build an application that can give you all legal moves for a certain board, but it is probably a lot smarter not to invent the wheel twice. I have also noticed that legal move generators are scarcely explained on the internet, at least I have found very little information on this subject by using searchengines. However, this may be of interest to you ... www.xs4all.nl/~verhelst/chess/programming.html
also check out GK member ydebilloez 's site: users.pandora.be/ai/ or you can ask him for an example yourself.

bipip - Where does it go wrong, or what does it say?
javelin 30 ( +1 | -1 )
hmm after a search just now, I found this site:

www.gamedev.net/reference/programming/features/chess1/

(It has irritating ads, but they go away)

I haven't read it completely but it looks promising ...
javelin 13 ( +1 | -1 )
Oh and about the sourcefiles. I was still deciding on giving them or not. For now, you can email me, and I'll send it to you. Maybe I'll decide to include them in the zip in the future ...
swindel 46 ( +1 | -1 )
source files javelin,
that's okay; i don't really need them since i have chessbase anyway, which includes the functionality, but in general i think it's a good idea to have different people working on things like this; ideas and implementations might grow from these initiatives...
swindel
PS: i was mainly curious to see how well java performs in things like these. I can imagine Perl (or awk :-)) to be more suitable for this problem.
tovmauzer 28 ( +1 | -1 )
I think... that Java or C++ (every OO language) should be suitable for move generation or board representation as such things could be nicely described through OOD. PGN parsing is more "Perl" task in terms of perfomance.

Thanks, Javelin - very interesting links, I knew the 1st, but 2nd is new for me.
javelin 45 ( +1 | -1 )
Swindel I have tried the light version of Chessbase, which is only version 6 (looks like a windows 3.11 application, with the old "progra~1" directory selector). As far as I can see, that version does not show the success rate of specific openings for a player. It only shows the general success rate of all used openings, thus not telling you what opening you are good or bad at.

Maybe the full version does do this, but that version is not free :)
javelin 45 ( +1 | -1 )
Swindel I have tried the light version of Chessbase, which is only version 6 (looks like a windows 3.11 application, with the old "progra~1" directory selector). As far as I can see, that version does not show the success rate of specific openings for a player. It only shows the general success rate of all used openings, thus not telling you what opening you are good or bad at.

Maybe the full version does do this, but that version is not free :)
bibip 25 ( +1 | -1 )
Javelin "Java PGNStats no se reconoce como un comando interno o externo, programa o archivo por lotes ejecutable"

Sorry, my computer don't speak english.

Something like "Java PGNStats is not recognized as a command, program or batch archive".

Is a Dos error. I use Win XP.
javelin 10 ( +1 | -1 )
bibip You have most likely not installed the Java Runtime Edition, see the site for more information.
parrvert 5 ( +1 | -1 )
javelin this is very good, well done!
amleto 18 ( +1 | -1 )
it used to work but now i get

exception in thread "main" java.lang.nullpointerexception
at pgnreader.filtergames(pgnreader.java:99)
atpgnstats.<init>(pgnstats.java:34)
at pgnstats.main(pgnstats.javja:164)
javelin 58 ( +1 | -1 )
amleto Most likely there are comments in your PGN file. The current version of PGNStats does not support commentaries. When I have some time, I will create a version that can also handle them. And I think I'll build a GUI (if you were wondering, in this case that means a "windows" style program) for it ...

Also an interesting idea is to incorporate transpositions. That way you will know your success rate for the current POSITION (no matter how you arrived at that position) instead of the current opening. But that would probably be a lot of work ...
amleto 61 ( +1 | -1 )
javelin i have checked, and there are no comments in the pgn file.

that bit that causes the problem is:

[Event "ICS unrated blitz match"]
[Site "freechess.org"]
[Date "2002.11.11"]
[Round "-"]
[White "GuestIUS"]
[Black "amleto"]
[Result "1/2-1/2"]
[WhiteElo "1200"]
[BlackElo "1193"]
[TimeControl "300"]
[termination "both players ran out of time"]

1. e4 e5 2. Bc4 Nf6 3. f4 exf4 4. d3 d5 5. exd5 Nxd5 6. Nf3 Bc5
7. Bxd5 Qxd5 8. Bxf4 Qe6+ 9. Qe2 O-O 10. Qxe6 Bxe6 11. Bxc7 Nd7 12.Nc3 Bb4 13. Kd2
Nc5 14. a3 Bxc3+ 15. bxc3 Rac8 16. Be5 Nd7 17. Bd4 a6 18. a4 Nc5 19. Rhb1 b5 20. axb5 axb5 21. Rxb5 Nd7 22. h3 Rfe8 23. g4 h5 24. Rg1 hxg4 25. hxg4 Rb8 26. Rh5 Nf6 27. Bxf6 gxf6 28. Rh4 Kf8 29. Rgh1 Ke7 30. Nd4 Bd7 31. Rf1 Rb6 32. Nf5+ Bxf5 33. gxf5 Rg8 34. Rf2 Rb5 35. Re4+ Kd7 36. c4 Rc5 37. Rd4+ Kc6 38. Rd5 Rxd5 39. cxd5+ Kxd5 40. Kc3 Rc8+ 41. Kd2 Kd4 42. Rf4+ Ke5 43. Rf3 Rh8 44. c4 Rh2+ 45. Ke3 Rc2 46. d4+ Kd6 47. Kd3 Rxc4 48. Kxc4 Kc7 49. d5 Kd7 50. Kc5 Kc7 51. Rc3 Kd7 52. Kd4 Kd6 53. Rc6+ Kd7 1/2-1/2
javelin 6 ( +1 | -1 )
Yep I see the problem amleto. It will be fixed in the next version ...
amleto 4 ( +1 | -1 )
please keep me up-to-date as i like the program :)
javelin 41 ( +1 | -1 )
NEW VERSION! A new version (1.31) is available on the site. This one has a simple GUI, but should already be a lot easier to use than the older version.

I am curious about how the "install" goes, which should also be really easy, but has only been tested on my own system. Please let me know about it, and anything else you might encounter ...

Next on my TODO list is updating the PGN parser so that all PGN files (with commentaries) can be read.
javelin 8 ( +1 | -1 )
So Amleto, it is not fixed in this version yet, but is my next item on the TODO list ...
amleto 0 ( +1 | -1 )
thanks :)
javelin 7 ( +1 | -1 )
So? How did it go?

What I am most interested in, is: does it start by double clicking?