Amazing to see (for the thousandth time) how a garbage post on SF is able to spark haters....amazing how actors involved are always the same that repeat this pity comedy again and again.....but guys...are you not bored of this endless deja-vu? Time to find something new? Perhaps even something original?hgm wrote:Well, being user friendly does not bring any Elo, I guess. We should not forget that the purpose of the Stockfish project is to inflict maximal hurt on its users. That needs high Elo to make sure there will be any users, and then mess up anything else as long as it doesn't cost any Elo.
Invalid fen
Moderators: hgm, Rebel, chrisw
-
- Posts: 2684
- Joined: Sat Jun 14, 2008 9:17 pm
Re: Invalid fen
-
- Posts: 91
- Joined: Wed Mar 26, 2014 4:29 pm
- Location: Buettelborn/Hessen/Germany
Re: Invalid fen
SMIRF has tried to avoid misinterpretations by visualizing castling rights using black spots near castling enabled pieces:
-
- Posts: 7220
- Joined: Mon May 27, 2013 10:31 am
Re: Invalid fen
I don't have a GUI that allows me to set up an aribitrary legal chess position. Creating such a GUI is time consuming.
[When there is a bug in my engine when computing perft I have to compare results with other engines using perft divide. That means I have to create fens for positions at lower depth. Debugging these errors is not that easy and worse if the fens are not valid ]
[When there is a bug in my engine when computing perft I have to compare results with other engines using perft divide. That means I have to create fens for positions at lower depth. Debugging these errors is not that easy and worse if the fens are not valid ]
-
- Posts: 7220
- Joined: Mon May 27, 2013 10:31 am
Re: Invalid fen
Wait a minute. I have Arena. Did not use it for more than a year for they told me that Arena had many bugs.Henk wrote:I don't have a GUI that allows me to set up an aribitrary legal chess position. Creating such a GUI is time consuming.
[When there is a bug in my engine when computing perft I have to compare results with other engines using perft divide. That means I have to create fens for positions at lower depth. Debugging these errors is not that easy and worse if the fens are not valid ]
-
- Posts: 27808
- Joined: Fri Mar 10, 2006 10:06 am
- Location: Amsterdam
- Full name: H G Muller
Re: Invalid fen
When developing software designed to cooperate with other software, assuming the other party will always behave correctly is a rather unrealistic assumption, and a sign of low quality. High-quality software is not only doing what it is designed for, but is also robust to errors and non-ideal conditions.lucasart wrote:UCI is made for engine <-> GUI communication, so the engine can assume correct input, and any invalid input is a GUI bug. "Inflicting pain" to some smart ass user who knowingly inputs wrong FEN to fuel his trolling posts on talkchess… maybe that's a good thing ?
There really is no reason to assume GUIs are less bug prone than engines. In particular when you advertize a funtion like 'perft', which is not supported in UCI, and for which there is no GUI support. This function can only be used from the command line, by fallible humans.
So if you don't want to do any reasonable form of error checking, it would be fair to warn the user: "the perft feature of Stockfish is only for use by the developers, and should not be used for other purposes, as it utterly sucks".
Last edited by hgm on Wed Apr 01, 2015 9:58 am, edited 1 time in total.
-
- Posts: 27808
- Joined: Fri Mar 10, 2006 10:06 am
- Location: Amsterdam
- Full name: H G Muller
Re: Invalid fen
I thought you also had WinBoard. It should be easy enough to set up positions there.Henk wrote:Wait a minute. I have Arena. Did not use it for more than a year for they told me that Arena had many bugs.
-
- Posts: 7220
- Joined: Mon May 27, 2013 10:31 am
Re: Invalid fen
Arena also wants me to type a fen. So there is no difference with Winboard. Actually I would like a GUI where I can select and drag pieces when creating a position. Otherwise there is not much difference with using the command line, except for a validity test.hgm wrote:I thought you also had WinBoard. It should be easy enough to set up positions there.Henk wrote:Wait a minute. I have Arena. Did not use it for more than a year for they told me that Arena had many bugs.
-
- Posts: 7220
- Joined: Mon May 27, 2013 10:31 am
Re: Invalid fen
O yes I see now Winboard has an edit position.hgm wrote:I thought you also had WinBoard. It should be easy enough to set up positions there.Henk wrote:Wait a minute. I have Arena. Did not use it for more than a year for they told me that Arena had many bugs.
-
- Posts: 389
- Joined: Wed Sep 26, 2012 1:29 pm
- Location: Hungary
Re: Invalid fen
I don't think he "knowingly inputs wrong FEN". He just faced with a problem and posted it here. Nothing wrong with this.lucasart wrote:UCI is made for engine <-> GUI communication, so the engine can assume correct input, and any invalid input is a GUI bug. "Inflicting pain" to some smart ass user who knowingly inputs wrong FEN to fuel his trolling posts on talkchess… maybe that's a good thing ?hgm wrote:Well, being user friendly does not bring any Elo, I guess. We should not forget that the purpose of the Stockfish project is to inflict maximal hurt on its users. That needs high Elo to make sure there will be any users, and then mess up anything else as long as it doesn't cost any Elo.
-
- Posts: 3232
- Joined: Mon May 31, 2010 1:29 pm
- Full name: lucasart
Re: Invalid fen
I don't know if the UCI protocol specifies this explicitly, but if it doesn't it's because it assumes the reader isn't retarded. So I will re-explain it for you:hgm wrote:When developing software designed to cooperate with other software, assuming the other party will always behave correctly is a rather unrealistic assumption, and a sign of low quality. High-quality software is not only doing what it is designed for, but is also robust to errors and non-ideal conditions.lucasart wrote:UCI is made for engine <-> GUI communication, so the engine can assume correct input, and any invalid input is a GUI bug. "Inflicting pain" to some smart ass user who knowingly inputs wrong FEN to fuel his trolling posts on talkchess… maybe that's a good thing ?
There really is no reason to assume GUIs are less bug prone than engines. In particular when you advertize a funtion like 'perft', which is not supported in UCI, and for which there is no GUI support. This function can only be used from the command line, by fallible humans.
So if you don't want to do any reasonable form of error checking, it would be fair to warn the user: "the perft feature of Stockfish is only for use by the developers, and should not be used for other purposes, as it utterly sucks".
Code: Select all
Incorrect input => Undefined behaviour
Theory and practice sometimes clash. And when that happens, theory loses. Every single time.