10 years of Computer Chess

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

Moderators: hgm, Rebel, chrisw

Vinvin
Posts: 5228
Joined: Thu Mar 09, 2006 9:40 am
Full name: Vincent Lejeune

Re: 10 years of Computer Chess

Post by Vinvin »

Don wrote:...
Ok, when I get back from my business trip we will play a game on-line (let's use the openchess forum because they have a chessboard widget) and see if you can force me to mate you.

Don
Sure, it will be fun ;-)
User avatar
Don
Posts: 5106
Joined: Tue Apr 29, 2008 4:27 pm

Re: 10 years of Computer Chess

Post by Don »

Uri Blass wrote:I can add that not to capture is not always a good idea if you want to force the opponent to mate you.
I agree. I think you want to give the random player a lot of mobility and you also have to guard against stalemate. You don't want the position to become too closed, or the random player may not be able to get to you.

Another problem could be that the random player gives checks where the only answer is to capture him - I don't know how often that would happen but you don't want him to run out of ammunition.

[D]k7/P7/KP6/8/8/2q5/8/8 b - - 0 1

black can force white to make a mate only because black has material advantage.

[D]k1n5/P7/K5b1/2r4q/8/1P6/8/4b3 b - - 0 1

again black can force white to mate because black has material advantage

for example
Rg5 b4 Bb1 b5 Rg6+ b6 Rg5 b7 mate.

It may be interesting to have a chess competition between computers when the target is to force the opponent to mate you.

Most games are going to be draws but not all of them and you need a good evaluation function that means that it is good to capture the opponent pieces so you can force him to mate you but it is not good to capture too many pieces because in this case the opponent is not going to have enough material to mate.
Capital punishment would be more effective as a preventive measure if it were administered prior to the crime.
Vinvin
Posts: 5228
Joined: Thu Mar 09, 2006 9:40 am
Full name: Vincent Lejeune

Re: 10 years of Computer Chess

Post by Vinvin »

I added the main question :
Vinvin wrote:The question is : "which game (winning chess or losing chess) have the biggest winning probability (with random moves) ?"
Vinvin
Posts: 5228
Joined: Thu Mar 09, 2006 9:40 am
Full name: Vincent Lejeune

Re: 10 years of Computer Chess

Post by Vinvin »

Vinvin wrote:I added the main question :
Vinvin wrote:The question is : "which game (winning chess or losing chess) have the biggest winning probability (with random moves) ?"
Ok, I already found the reply : as there's a lot of moves to lose pieces, the random player will be forced to win a lot more games ... as we will probably see on our game.
Vinvin
Posts: 5228
Joined: Thu Mar 09, 2006 9:40 am
Full name: Vincent Lejeune

Re: 10 years of Computer Chess

Post by Vinvin »

Don wrote:...
Ok, when I get back from my business trip we will play a game on-line (let's use the openchess forum because they have a chessboard widget) and see if you can force me to mate you.

Don
1) when will it be approx ?
2) what will be the time control ?
3) can we use engines to help to play ?
I just subscribed to the forum. Please drop a link to the thread here.
User avatar
Don
Posts: 5106
Joined: Tue Apr 29, 2008 4:27 pm

Re: 10 years of Computer Chess

Post by Don »

Vinvin wrote:
Don wrote:...
Ok, when I get back from my business trip we will play a game on-line (let's use the openchess forum because they have a chessboard widget) and see if you can force me to mate you.

Don
1) when will it be approx ?
2) what will be the time control ?
3) can we use engines to help to play ?
I just subscribed to the forum. Please drop a link to the thread here.
I'll probably modify Komodo to play so yes, you can use an engine if you wish. The time control should be informal, I will try to make at least 1 move per day but we can probably make several if necessary.

I get back Friday but I will need some time to recover and I get tired easily. How about the middle of next week, say starting on Wednesday?

Don
Capital punishment would be more effective as a preventive measure if it were administered prior to the crime.
Vinvin
Posts: 5228
Joined: Thu Mar 09, 2006 9:40 am
Full name: Vincent Lejeune

Re: 10 years of Computer Chess

Post by Vinvin »

Don wrote:
Vinvin wrote:
Don wrote:...
Ok, when I get back from my business trip we will play a game on-line (let's use the openchess forum because they have a chessboard widget) and see if you can force me to mate you.

Don
1) when will it be approx ?
2) what will be the time control ?
3) can we use engines to help to play ?
I just subscribed to the forum. Please drop a link to the thread here.
I'll probably modify Komodo to play so yes, you can use an engine if you wish. The time control should be informal, I will try to make at least 1 move per day but we can probably make several if necessary.

I get back Friday but I will need some time to recover and I get tired easily. How about the middle of next week, say starting on Wednesday?

Don
But, optimize a program to understand what a random program will do, isn't it counterproductive ? :-)
User avatar
Don
Posts: 5106
Joined: Tue Apr 29, 2008 4:27 pm

Re: 10 years of Computer Chess

Post by Don »

Vinvin wrote:
Don wrote:
Vinvin wrote:
Don wrote:...
Ok, when I get back from my business trip we will play a game on-line (let's use the openchess forum because they have a chessboard widget) and see if you can force me to mate you.

Don
1) when will it be approx ?
2) what will be the time control ?
3) can we use engines to help to play ?
I just subscribed to the forum. Please drop a link to the thread here.
I'll probably modify Komodo to play so yes, you can use an engine if you wish. The time control should be informal, I will try to make at least 1 move per day but we can probably make several if necessary.

I get back Friday but I will need some time to recover and I get tired easily. How about the middle of next week, say starting on Wednesday?

Don
But, optimize a program to understand what a random program will do, isn't it counterproductive ? :-)
To make a program play horrible you have to assume the opponent is going to resist. The issue with a perfect program occaionsally drawing a random program is an example, the perfect program doesn't know it's playing a random program. If it did, it could probably be improved significantly. For example a perfect program would want to give the random program as many opportunities to falter as possible and that would decrease the draws enormously.

Same with making a program play really badly - the strategy against a player you know is random would be different of course.

Don
Capital punishment would be more effective as a preventive measure if it were administered prior to the crime.
BubbaTough
Posts: 1154
Joined: Fri Jun 23, 2006 5:18 am

Re: 10 years of Computer Chess

Post by BubbaTough »

It sounds like not all perfect programs (defined as programs that, in any given position, always select one of the moves that preserves the best possible forceable outcome) will have the same rating, as there are different mechanisms for choosing between theoretically tied moves that will do better or worse at encouraging imperfect play by an adversary depending on their type of imperfect play.

It all kind of reminds me of when people talk about strategies for maximizing cheapo chances in known tablebase positions.

-Sam
User avatar
Don
Posts: 5106
Joined: Tue Apr 29, 2008 4:27 pm

Re: 10 years of Computer Chess

Post by Don »

BubbaTough wrote:It sounds like not all perfect programs (defined as programs that, in any given position, always select one of the moves that preserves the best possible forceable outcome) will have the same rating, as there are different mechanisms for choosing between theoretically tied moves that will do better or worse at encouraging imperfect play by an adversary depending on their type of imperfect play.

It all kind of reminds me of when people talk about strategies for maximizing cheapo chances in known tablebase positions.

-Sam
That's clearly the case, getting the best possible results relies on opponent modeling, which is based on playing the opponent and not the board.

Imagine having a 32 man database. It could conceivably go immediately into a draw by repetition believing that it can do no better than a draw anyway. That would be a correct assumption if you were playing another database, but not if you were playing a weak player. A 32 man database might immediately simplify making it much more likely its opponent could draw too.

If you had a 32 man database a good strategy for selecting your moves would be to attach a conventional program to it - and at the root level prune away all the moves that do not give the best game theoretic results. Such a program would play pretty much like current programs do except that they would never make any mistake that would cost them 1/2 a point.

It's also possible that the best strategy would be to make a losing move against a particular opponent. Imagine the game ending for a sure draw but being able to complicate things by playing a sub-optimal move that leads to a loss against best play. Since you are playing the odds with opponent modeling you would want to play the move that was most likely to give you a win given what you know about your opponent. That may not always be the best move in the absolute sense although I doubt that playing a losing move would be a good choice very often.

I saw a strong player do this once to avoid a draw - he played a move that he actually estimated would lose the game against a good player but he was playing a much weaker player and a draw was almost certain and he could not afford a draw. The move created a much more complicated position that required a lot of technique to win and provided plenty of opportunities to go wrong.

I did something like that once myself, but I was probably going to lose anyway regardless of what I did, so in my case it was desperation. Instead of losing slow and sure I found an unsound sacrifice against a much weaker opponent who was beating me. The sacrifice had an "obvious" response which didn't work so it was a true swindle. I didn't expect my opponent to even fall for it because it smelled right from the start but after spending a really long time looking at it he played the bogus move and said, "you are just gonna have to show me." I won that game but felt guilty about winning it - like I had somehow cheated him. He was a super nice guy and after the game we laughed about it, but he made me admit that I was busted up until this point.

But that is opponent modeling. I have to wonder if that makes a difference in the strength of chess programs too. Chess program do not worry about their opponents (except in the case of contempt factors) but some are clearly more aggressive and other are more careful. Like humans they each have different styles which may work better or not as well against specific opponents or styles.
Capital punishment would be more effective as a preventive measure if it were administered prior to the crime.