| View previous topic :: View next topic |
| Author |
Message |
jeep
Daedalian Member
|
Posted: Sun Feb 06, 2005 1:47 am Post subject: 121 |
|
|
That last was interesting because it was handled correctly on mafiascum (with the exact same code.) It's because that server has PEAR. But good coding style would have avoided that. I believe all invalid moves are now caught EXCEPT it might let you move while in check. Without PEAR, I need to rewrite that code.
-JEEP |
|
| Back to top |
|
 |
CrystyB
Misunderstood Guy
|
Posted: Sun Feb 06, 2005 9:15 am Post subject: 122 |
|
|
Testing...
Hmm, yes it still lets illegal moves through... (chess]g4 g6 e3 f5 g5 Bg7 a4 Bf6 gxf6 b5 b3 b4 d4 d6 f7 Kd7 f8=N Kc6 Ne6 g4 Nc5 dxc5[/chess]
Note: 10 ... g4==trouble!!!
Even (chess]e5 e4[/chess] would be posted as is...
[update]So basically just because the GL lacks that PEAR the chess players will have to watch their moves. They'll have to look at the board to catch illegal moves. (i'm okay with it, it's just that i want to have this mentioned somewhere. Now it is ) |
|
| Back to top |
|
 |
CrystyB
Misunderstood Guy
|
Posted: Mon Feb 07, 2005 8:44 pm Post subject: 123 |
|
|
| Not really a bug (since i think i remember you mentioning about it), but why aren't we allowed to use CRs inside the aliases? See reply 86: "-1: In move number: 1, c3=b1{c3 [lower <CR>left]...} is not valid and has been skipped". |
|
| Back to top |
|
 |
jeep
Daedalian Member
|
Posted: Tue Feb 08, 2005 7:05 am Post subject: 124 |
|
|
Carriage returned has to be handled specially. I don't. I suppose I could look into it.
-JEEP |
|
| Back to top |
|
 |
CrystyB
Misunderstood Guy
|
Posted: Fri Feb 17, 2006 10:20 am Post subject: 125 |
|
|
I don't know if this is just a glitch or a full bug, but the "chessboard" tags handle white spaces a little inconsistently: spaces break the whole thing, tabs insert a blank square (and change the starting colour of the next line - WTH ), and carriage returns insert two blank squares (i chance on guessing that this is equivalent to two tabs! )... |
|
| Back to top |
|
 |
Antrax
ESL Student
|
Posted: Fri Feb 17, 2006 1:49 pm Post subject: 126 |
|
|
This is not a bug. Erroneous input causes an ill-defined behaviour, this is how things work. You might as well complain that it doesn't parse illegal moves. _________________ After years of disappointment with get rich quick schemes, I know I'm gonna get rich with this scheme. And quick! |
|
| Back to top |
|
 |
groza528
No Place Like Home
|
Posted: Fri Feb 17, 2006 3:13 pm Post subject: 127 |
|
|
| CrystyB wrote: |
(and change the starting colour of the next line - WTH ) |
That one's pretty easy to explain. The chess tags are set up so that every row begins with the same colour the last row ended with. MAking an odd number of squares in a row would mean the next row would match the one above it. |
|
| Back to top |
|
 |
|