But I thought he was running on Linux (using XBoard).Michel wrote:Actually I thought puts was suspicious.
According to MSDN puts adds \n to the string.
However on windows the line terminator is \r\n
Polyglot (and presumable cutechess-cli) do line input (fgets).
So they never get to see a string terminated with only \n.
UCI code
Moderator: Ras
-
hgm
- Posts: 28438
- Joined: Fri Mar 10, 2006 10:06 am
- Location: Amsterdam
- Full name: H G Muller
Re: UCI code
-
Michel
- Posts: 2292
- Joined: Mon Sep 29, 2008 1:50 am
Re: UCI code
It seems you are right. Oh well then it remains a mystery.But I thought he was running on Linux (using XBoard).
My "explanation" was suspect anyway since in "text mode" windows
will automagically translate \n into \r\n.
-
lucasart
- Posts: 3243
- Joined: Mon May 31, 2010 1:29 pm
- Full name: lucasart
Re: UCI code
it is strange indeed. anyway i managed to play a first game. here's the PGN if you want to have a good laughMichel wrote:It seems you are right. Oh well then it remains a mystery.But I thought he was running on Linux (using XBoard).
My "explanation" was suspect anyway since in "text mode" windows
will automagically translate \n into \r\n.
i am very intruiged that black chose to draw this position... must be a bug in my 3 move draw code. i'll have a look!1. Nc3 {0.00/8 2.5s} Nc6 {0.00/8 2.5s} 2. d4 {0.00/8 2.5s} d5 {0.00/8 2.5s}
3. e3 {0.00/7 2.4s} e6 {0.00/7 2.4s} 4. Bb5 {0.00/7 2.4s} Bd7 {0.00/7 2.4s}
5. Bd2 {0.00/7 2.4s} Nf6 {0.00/7 2.4s} 6. Nf3 {0.00/7 2.3s} Bb4 {0.00/7 2.3s}
7. O-O {0.00/7 2.3s} O-O {0.00/7 2.3s} 8. Qe2 {0.00/7 2.3s} Qe7 {0.00/7 2.3s}
9. Rfe1 {0.00/6 2.2s} Rad8 {0.00/6 2.2s} 10. Bd3 {0.00/7 2.2s} e5 {0.00/7 2.2s}
11. dxe5 {0.00/6 2.2s} Nxe5 {0.00/6 2.2s} 12. e4 {0.00/6 2.1s}
Nxd3 {0.00/6 2.1s} 13. cxd3 {0.00/6 2.1s} Rfe8 {0.00/6 2.1s}
14. e5 {0.00/6 2.1s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