Comments by j_carrillo_vii
No Fergus.
It didn't make a difference.
I got three emails for acepted invitations for the 3 games below, and for all of them had no body in the email, just an attachment called ATT001.
= = =
on a 2nd note... I got again the error below for the last of the three games above (the one against makov).
lastmovenum = 0; movenum =
WARNING: As a safety precaution, you cannot move and take back a move at the same time.
If you mean to take back a move, do that before you move. This will let you see the board accurately when you do move.
If you did not mean to take back a move, set the drop-down box with the history of your moves to the last move made.
=
This is a new preset I created for Chaturanga - Davidson Variation, which enforces the rules.
Have I done something wrong in the preset instructions to cause this error?
I tested the preset extensively (PLAY mode), and I never got this error.
I checked the last time I got this error (on July 21st, Carlos Cetina had reported it too), and that time the values of the variables was different:
lastmovenum = ; movenum = 0
Thanks Fergus,
Yes, the original error seems to be gone.
But now when I try the move, the board background changes from the original (astapada-marble2.jpg), and the astapada-marble2.jpg is not among the available options on the move Preview screen.
If I move, by default the board will change to: chess-greenbeige.png
Excellent!!! Thanks Fergus.
Problems solved. Thanks for the "remind" hint.
I'll learn to live with the email issue. It only happens for the accepting of an invitation anyway.
Cheers, Jose
I just benefited from what I believe is a bug in the implementation of the Game Courier preset for Janggi, as Game Courier gave me a win in a position which I believe is not checkmate.
http://play.chessvariants.com/pbm/play.php?game=Janggi&log=vik-cvgameroom-2016-211-785
Game Courier credited me with a checkmate, however Red still had the Cannon move b8-d8 which would have blocked the check. Can the owner of the preset review the rules and correct this situation? Thanks.Hello CVP Editors,
Can I please get one of you to review this variant? The page has been posted for over a month, and it hasn't been reviewed yet. Thanks in advance.
This game is similar to the classical Greek game Petteia or the Roman game Latrunculi (without Duxes).
Below is my new variation for the ancient games:
http://www.chessvariants.com/invention/latrunculi-petteia-xxi
Hello CVP Editors,
Can I please get one of you to review this variant?
http://www.chessvariants.com/invention/latrunculi-petteia-xxi
The page has been posted for over a month, and it hasn't been reviewed yet. Thanks in advance.
Hi Fergus,
I'm trying to review the following game with Erik: (which supposedly I just won)
http://play.chessvariants.com/pbm/play.php?game=Janggi&log=erik-cvgameroom-2016-157-768
but I get the error:
You may not move your General into check
I sell 10x10 vinyl boards. If anyone is interested below is my website.
http://www.modern.chess.variants.tripod.com/international_chess_variants_board.html
Thanks Fergus.
= = =
On a different note, I'm trying to borrow the Bare King code from your Shatranj preset for my Chaturanga - Davidson Variation preset, and I think I found a copy and paste problem on the Shatranj preset.
In the very first first section of the Post-Game 2 (for the Black player), it says "Bare King! White Wins!"
if == 1 count onlyupper:
set enemies onlylower;
if > count #enemies 2:
say Bare King! White Wins!;
won;
else:
It should say Black wins not white.
Fergus,
On a secondary note, the Bare King code logic for two Bare Kings being a draw, doesn't seem to be working.
I tested it in your Shatranj preset and when the first king was bared, it gave the win to one side, and still allowed me to play and bare the other king, giving a win to the 2nd side.
No Fergus, I tried it, and didn't work.
I just setup a random position where one King would bare the other, and the other lone King could bare the first on his next move. Based on a quick view of your new code in Shatranj, I expected it to end the game saying that: "Both Kings Bared on Next Move! Game Drawn!", but this didn't happen. The game carried on.
I used a different approach in my Chaturanga Davidson's Variation: (Below is the code for Post-Game 1, for white)
if == 1 count onlylower:
set enemies onlyupper;
if > count #enemies 2:
say Bare King! White Wins!;
won;
elseif == count #enemies 1:
say Both Kings Bared! Game Drawn!;
drawn;
endif;
endif;
if == 1 count onlyupper:
set enemies onlylower;
if >= count #enemies 2:
say Bare King! Black Wins!;
lost;
endif;
endif;
I'm actually allowing the Lone King to play one more move. If he can bare the opponent's King, the game is a draw. If the lone King cannot bare the opponent on the next move, then he automatically losses the game.
Fergus, here is the link:
http://play.chessvariants.com/pbm/play.php?game%3DShatranj%26settings%3DAlfaerie-CSS-test
I just tested it again, and it worked for when White bared Black without giving check: 1.Rxe4 draw.
But it didn't work when I tried a "check" scenario (which happened to be the one I first tried last time): 1.Kf3 Rxf4+ and the game continues.
Now I believe the issue is more related to the "check" than the Bare code.
I see now how is it working.
If after the check: 1.Kf3 Rxf4+
white takes the checking piece: 2.Kxf4 the game is automatically a draw. (this makes sense)
But if white didn't take, say he played 2.Ke2 then Black wins after his next move 2... Kd4 0-1 (Bare King Rule)
The question now is, whether the game should have been an automatic draw right from the begining, after 1... Rxf4+, without white having to play (like it is the case now, when a player bares the other but without check).
Thanks Fergus for updating the code, and for the hint on passing positions to existing presets.
You can delete the preset I created for Shatranj during this excersize.
Cheers!
Hi Fergus,
In reviewing your solution for the Bare King rule problem, I see a variable called "status" which I can't find where in the Shatranj code is previous set. Is this a global variable? How does it work?
Thanks.
= = =
set checks sub checks #k;
if sub checkmated #k #checks and var checks:
say Checkmate! White has won!;
won;
elseif var checks:
say Check!;
elseif sub stalemated #k:
say Stalemate! White has won!;
won;
endif;
if == 1 count onlylower and == status Ongoing:
set mypieces onlyupper;
switch count #mypieces:
case 1:
say Both Kings Bared! Game Drawn!;
drawn;
break;
case 2:
foreach (from piece) #mypieces:
if == #piece K:
continue;
elseif not fn k #k #from or fn K #K #from:
say Bare King!! White Wins!!;
won;
break;
else:
say Both Kings Bared on Next Move! Game Drawn!;
drawn;
break;
endif;
next;
break;
default:
say Bare King! White Wins!;
won;
break;
endswitch;
endif;
Thanks Fergus.
= = =
Another question... What triggers a preset to display the legal moves when one clicks on a piece?
I created two presets enforcing the rules of the game, and based on the Shatranj include file.
However onedisplays legal moves, and the other doesn't.
The Makruk one below, shows the legal moves:
http://play.chessvariants.com/pbm/play.php?game%3DMakruk+%28Thai+chess%29%26settings%3DAlfaerie2r
The Chaturanga - Davidson Variation doesn't display the legal moves (even though it's enforcing them right):
What is the trigger to display the legal moves?
Thanks.
Thanks Fergus.
Now that makes sense (that my preset is not displaying legal moves), because that varitation (Charturanga - Davidson's Variation) doesn't have neither checkmate nor stalemate. A win is determined by capturing the enemy King.
I'll read the tutorial to see how to emulate that effect in my code. Thanks.
Fergus,
This might be an unusual request, but is it possible to clear the moves previously set as legal?
I'm trying to leverage code you have already written in the chess include file to determine that a position is a stalemate, so that I can display a message that even though the position is a stalemate, the King still needs to move (as Kings are allowed to move into check in this variant).
The setlegal is useful to determine the stalemate, but complicates other situations for me, so I rather not see the legal moves when a player clicks on a piece on the board (but I still want to benefit from the setlegal moves functionality to determine stalemate (and checkmate) )
Is there an easy way to wipe out the legal moves array as a command to be used in the Pre-Move sections of a preset?
Thanks.
Fergus,
I'm playing the chess game below with Carlos Cetina, and I'm trying to do a long castle, but the preset is giving me this error:
You may not move a K from e1 to c1
http://play.chessvariants.com/pbm/play.php?game=Chess&log=sissa-cvgameroom-2016-216-017
Can you please review the logic? Thanks.
Thanks for the feedback Fergus.
I have done some cleanup and reorganization as requested.
Let me know if further changes are required.
Thanks.
Fergus can you please review my Latrunculi page again?
I did updates to the page as per your recommendation.
http://www.chessvariants.com/invention/latrunculi-petteia-xxi
Thanks
Fergus,
Another captured pieces counting bug. In the game below, brown has two promoted kings, and the count between the captured pieces for brown and his pieces on the board add up to 18, which is two more pieces than when the game started.
25 comments displayed
Permalink to the exact comments currently displayed.
Fergus, the other emails for regular moves (after the game has already started) look fine.
Right now the issue is only with the first email to confirm that the challenge has been acepted and that the game has started.