Check out Glinski's Hexagonal Chess, our featured variant for May, 2024.


[ Help | Earliest Comments | Latest Comments ]
[ List All Subjects of Discussion | Create New Subject of Discussion ]
[ List Latest Comments Only For Pages | Games | Rated Pages | Rated Games | Subjects of Discussion ]

Comments by j_carrillo_vii

LatestLater Reverse Order EarlierEarliest
Game Courier Logs. View the logs of games played on Game Courier.[All Comments] [Add Comment or Rating]
Jose Carrillo wrote on Tue, Jan 16, 2018 01:39 PM UTC:

Fergus,

Here is another game with a problem:

http://play.chessvariants.com/pbm/play.php?game=Latrunculi+XXI&log=j_carrillo_vii-cvgameroom-2017-345-008

I was White, and I won the game. (I used the "won" command to end the game).

Somehow the colors were switched between the players, and I ended up being Black and losing the game.

Please correct it. Thanks.


Modern Shatranj. A bridge between modern chess and the historic game of Shatranj. (8x8, Cells: 64) [All Comments] [Add Comment or Rating]
Jose Carrillo wrote on Sun, Dec 31, 2017 07:17 PM UTC:

The additional move for the lone King will still be required for this preset, but the Bare King rule precedence over Stalemate will assign the win to the correct player.

I would expect the White player in the center position to resign, rather than to play, but if he plays the preset logic will now award the win to Black (no matter what White plays), and formally end the game.


Jose Carrillo wrote on Sun, Dec 31, 2017 07:06 PM UTC:

I fixed the preset. Now it will correctly give preference to a win by Bare King over Stalemate, and will correctly give the win to Player B in the position that Kevin had sugested below.


Jose Carrillo wrote on Fri, Dec 29, 2017 03:12 AM UTC:

>>Kevin Pacey wrote on 2017-01-25 EST
>> My own suggestion would be that for the diagrammed example, for Modern Shatranj, let the stalemate=win rule
>> override the bare king consideration - the 'logic' being that the stalemated king will perish if the stalemated side
>> attempts to move, whereas the bare king has freedom still.
>> In any case, I don't know how Jose's rules enforcing preset for Modern Shatranj currently would handle the
>> diagrammed example, after the final move is made. [edit: the preset's rules say a lone bare king is an Automatic
>> Loss (if the other side's king isn't immediately bared), so I think I ought to take that at face value, even for the
>> example situation I gave.]

Forgive me for my late response... Better late than never! At least I'm still responding in the same year as the question! :-)

As currently programmed, for the given (unlikely) position, the result of my preset would be a win for the bare King.

I need to check the logic to account for this strange position.

I agree with Joe, it should be an automatic win for Player B, as Player A was bared prior to the stalemate, and the rules only allow for the disadvantaged bared King to play, if he would bare the other king in the next move. Nothing is provided for the case where the bare King could stalemate the opponent on his next move.

I guess this position must have had a lot to do with both stalemate and bare kings (by insuficient material) being draws in modern Chess, to avoid this dilema.


Help me correct some Game Courier logs[Subject Thread] [Add Response]
Jose Carrillo wrote on Wed, Dec 27, 2017 04:50 PM UTC:

Interesting, I'm not the only one with this problem.

Did your game finished with the "won" command (instead of the resign command)?

 


Game Courier Logs. View the logs of games played on Game Courier.[All Comments] [Add Comment or Rating]
Jose Carrillo wrote on Wed, Dec 27, 2017 04:47 PM UTC:

Thanks Nick.

I never noticed before.

Fergus, there is definitely something wrong with the "won" command and how it assigns the winner in the finished games log.

Here is another example:

http://play.chessvariants.com/pbm/play.php?game=Latrunculi+XXI&log=j_carrillo_vii-wolff-2016-339-951

I won the game as Black, but in the finished games log it shows Nick (White) as the winner.


Jose Carrillo wrote on Thu, Dec 21, 2017 01:17 PM UTC:

Fergus,

When I search all the Latrunculi XXI games played in Game Courier with this lynk:

http://play.chessvariants.com/pbm/logs.php?game=Latrunculi+XXI&age=0&stat=any

it shows that for game: erik-cvgameroom-2017-340-466 that erik won, which is incorrect.

If you go to the game itself, it shows that Black (me!) won the game. (erik was playing white).

A difference between this game and many other Latrunculi XXI games is that this game was finished with the "won" command, instead of the "resign" command.

Maybe you need to tweak the "won" command so that it shows the correct winner in the Game Logs page.


Latrunculi XXI. A 21st century variant on an ancient Chess-like game of the Roman empire. (10x8, Cells: 80) [All Comments] [Add Comment or Rating]
💡📝Jose Carrillo wrote on Thu, Dec 21, 2017 12:08 PM UTC:

Thanks Erik for the very interesting question. I do understand the question.

Rule 1c states that "it's illegal for a player to immobilize his own Dux".

Since the move you speak of opens a new path for the Dux to move, the Dux would not be immobilized, and therefore it would be a legal move; just like the Go rule where capture has priority over suicide that you refer to.

Thanks for the question. I will update the rules with a few illustration diagrams to clarify this specific situation.

 

 

 

 


Game Courier Logs. View the logs of games played on Game Courier.[All Comments] [Add Comment or Rating]
Jose Carrillo wrote on Sat, Sep 16, 2017 08:00 PM UTC:

Fergus,

You set the checkmated player as the winner.

White won, not black.

http://play.chessvariants.com/pbm/play.php?game=Fischer+Random+Chess&log=j_carrillo_vii-josesanfer-2004-151-422

Please correct and thank you!

 


Jose Carrillo wrote on Sat, Sep 16, 2017 04:55 PM UTC:

Thanks Fergus.

Here is another one of my games that ended in checkmate, but the status of the game was never change to "finished":

http://play.chessvariants.com/pbm/play.php?game=Fischer+Random+Chess&log=j_carrillo_vii-josesanfer-2004-151-422

Can you please change the status to a win for white? Thanks in advance.


Petteia XXI. A 21st century variant on an ancient Draughts-like game of the Roman empire. (8x8, Cells: 64) [All Comments] [Add Comment or Rating]
💡📝Jose Carrillo wrote on Fri, Sep 15, 2017 11:12 PM UTC:

Thanks louisxii for your kind comments, and the rating!

I also picure the competing hoplites rolling onto each other, everytime I play!

Cheers!


Game Courier Logs. View the logs of games played on Game Courier.[All Comments] [Add Comment or Rating]
Jose Carrillo wrote on Thu, Aug 24, 2017 02:22 PM UTC:

But Fergus, it's not my turn in that game.

The game timed out and should be finished.

It is still showing as an active game and this is incorrect.

http://play.chessvariants.com/pbm/play.php?game=Modern+Shatranj&log=j_carrillo_vii-louisxii-2017-127-802

 


Jose Carrillo wrote on Wed, Aug 16, 2017 11:00 AM UTC:

Hi Fergus. My game below timed out, but it still shows as an active game.Can you please change the status of the game to completed? Thanks.

http://play.chessvariants.com/pbm/play.php?game=Modern+Shatranj&log=j_carrillo_vii-louisxii-2017-127-802

 


Jose Carrillo wrote on Sun, Jun 25, 2017 04:30 PM UTC:

Fergus,

I just issued two personal invitations to ramalan, and they went public.

It's still not working.

 


Jose Carrillo wrote on Sun, Jun 4, 2017 03:38 PM UTC:

Fergus,

I'm trying to issue a personal invite in Game Courier for Makruk to ramalan, but it keeps being issued as a public invite.

There seems to be a bug with the invite routine.

Jose

 


Jose Carrillo wrote on Thu, Jan 12, 2017 01:16 AM UTC:

Is anyone else having problems making moves in Game Courier?

I get a blank screen in both my iPhone and my laptop when I try to make a move in any of my games.


Jose Carrillo wrote on Thu, Jan 12, 2017 01:14 AM UTC:

Thanks Fergus.

I never run into this problem before (with the $status) and a stalemate. (I guess none of my games ever ran into a stalemate before).

Is there something I need to do to the other presets I have programmed for this particular condition?

Or your fix will take care of it for the rules in the other presets?


Jose Carrillo wrote on Tue, Jan 10, 2017 02:28 AM UTC:

Hi Fergus,

This Makruk game with Gary ended in a stalemate draw:

http://play.chessvariants.com/pbm/play.php?game=Makruk+%28Thai+chess%29&log=j_carrillo_vii-penswift-2016-335-570

However, even though the rules for the preset correctly identified the stalemate, and correctly called that this position is a draw; the game hasn't completely "finished" and the clocks are still running.

Can you please help me identified what is wrong?


How to Display Legal Moves in Game Courier - A Tutorial. A Game Courier Tutorial.[All Comments] [Add Comment or Rating]
Jose Carrillo wrote on Sat, Jan 7, 2017 11:18 PM UTC:

OK Fergus.

I'll create a new Alfaerie-Makruk piece set.


Jose Carrillo wrote on Sat, Jan 7, 2017 07:39 PM UTC:

OK, Thanks.

Having said that, not being able to do what I was trying to do for Makruk takes away the ability for players to develop automated presets for variants that may use these non-totally-alpha pieces. (P180, b180, etc.)

Right now the curent set of functions just do not easily support writing rules for presets that mix pieces that have non alpha chracters, with others that don't.

If I had a new variant that used regular pieces and a silver general (S! and s!), I would have the same problem, or be forced to use a diferent piece.

The four functions that I have been suggesting would make a vast amount of code already written totally reusable for a wide variety of applications.


Jose Carrillo wrote on Sat, Jan 7, 2017 04:59 PM UTC:

OK, thanks for the clarification.

But I give up. I'm following your suggestions, but the results are still not as expected.

Let me know when you entertain to create new onlyupper, onlylower, isupper and islower functions that only consider the first character; and I will try to update the presets again.


Jose Carrillo wrote on Sat, Jan 7, 2017 02:35 PM UTC:

Thanks Fergus.

How about samecase?

I was just updating my previous comment.


Jose Carrillo wrote on Sat, Jan 7, 2017 02:00 PM UTC:
Fergus,
 
I'm also going to need new definitions for the noupper and nolower functions that only look at the first character.
 
Also for the samecase function found in the new "checked" subroutine.
 
Thanks
 
===
From chess3.txt:
 
sub stalemated kingpos:
  store;
  local from piece to;
  if isupper space #kingpos:
    def friends filter lambda (regmatch "/[A-Z]/" #1) pieces;
    def nofriends noupper;
    def friend isupper #0;
  else:
    def friends filter lambda (regmatch "/[a-z]/" #1) pieces;
    def nofriends nolower;
    def friend islower #0;
  endif;
// This subroutine checks whether a King is in check.

def checked any lambda . . . . "fn space #0 #0 " #0 " unless samecase space #0 space " #0 spaces;

sub checked king:
my from piece;
if isupper cond empty #king moved space #king:
def enemies filter lambda (regmatch "/[a-z]/" #1) pieces;
else:
def enemies filter lambda (regmatch "/[A-Z]/" #1) pieces;
endif;
for (from piece) fn enemies:
if fn #piece #from #king:
return #from;
endif;
next;
return false;
endsub;

Jose Carrillo wrote on Sat, Jan 7, 2017 11:44 AM UTC:

Thanks for your response and the new functions Fergus.

To keep things simple (I'm an old programmer, not too familiar with the lambda terminology), I just want four replacement functions (that I can use as black boxes) for the existing ones, so that I can do minimal changes to the presets.

Can I use this definition for the new functions I'm looking for?

def onlyupper2 filter lambda (regmatch "/[A-Z]/" #1) pieces
def onlylower2 filter lambda (regmatch "/[a-z]/" #1) pieces

def isupper2 regmatch "/[A-Z]/" #0
def islower2 regmatch "/[a-z]/" #0

Thanks for your help.


Jose Carrillo wrote on Fri, Jan 6, 2017 11:01 PM UTC:

I will try to decipher your recomendation later.

Is there any chance that you can add 4 new functions (onlyupper2, onlylower2, isupper2 and islower2) that work identical to their current counterparts, but that only tests the 1st character?

This way the current code for any of the presets can be very easily updated to use new piece-sets, without any major modifications.

Thanks.


Jose Carrillo wrote on Fri, Jan 6, 2017 04:10 PM UTC:

Still not working.

I'm going to use the following definition for new onlyupper and onlylower functions:

def onlyupper2 aggregate lambda (#0 onlyif isupper char #0 0) pieces;
def onlylower2 aggregate lambda (#0 onlyif islower char #0 0) pieces;
 
Can you give me the lambda functions for new isupper and islower that only look at the first character?
 
def isupper2 ???
def islower2 ???
 
Thanks.

Home page of The Chess Variant Pages. Homepage of The Chess Variant Pages.[All Comments] [Add Comment or Rating]
Jose Carrillo wrote on Fri, Jan 6, 2017 03:20 PM UTC:

Fergus,

I had the same identical password login problem as HG Muller back in December. I sent you a few emails about it.

Joe Joyce force reset my password, and then I was able to sign in.

I haven't tried to reset my password since Joe changed it for me.


How to Display Legal Moves in Game Courier - A Tutorial. A Game Courier Tutorial.[All Comments] [Add Comment or Rating]
Jose Carrillo wrote on Fri, Jan 6, 2017 03:00 PM UTC:

Hi Fergus,

Thanks for the suggestion. I tried, but now nothing works. The moves are not calculated for any of the pieces, but the Kings, and now the Kings are allowed to capture their own pieces.

http://play.chessvariants.com/pbm/play.php?game%3DMakruk+%28Thai+chess%29%26settings%3DAlfaerie4r

Can you please check the preset and tell me where I went wrong?

Thanks.


Makruk (Thai chess). Play the traditional Chess variant of Thailand on Game Courier.[All Comments] [Add Comment or Rating]
📝Jose Carrillo wrote on Thu, Dec 29, 2016 05:56 PM UTC:
Huge belated thanks Sittipon!!!

It took me 5 years to understand the hidden message in your 2011 posting: "In makruk pursue and escape very important..." [sic]

... but I got it!

= = =

Fast forward to 2016....

Just out of curiosity, very recently I started to play the Viking game Hnefatafl, a pursuit and escape game that more closely resembles Latrunculi (because of the custodial capturing method) than Chess.

What can be initially striking to chess players is that in Hnetafal, players have different size armies and goals to end the game. One side (the attacker with the superior army) aims to pursue and capture the opponent's King, while the other side (the defender) aims for his/her King to escape capture by reaching to the edge of the board or a to corner square to win and end the pursuit.

Then I read Sittipon's (who seems to be Thai) posting again, and again: "In Makruk, pursuit and escape is very important..."

and (thanks to the different goals feature of Hnefatafl) I got an aha moment as it regards to the Thai Draw Counting Rules.

Some chess players, who are more used to a simpler 50-move draw rule, think: "Why complicate ourselves with the nuissances of the complicated Thai draw counting rules? They don't make sense anyway."

While other chess players (including myself) just don't question the rules and take them for granted: "These rules are there for a reason and they are part of the game, period."

But what is the reason?

Sittipon's hidden message gives us a clue to theorize the reason to be of the Thai Draw Counting Rules.

Makruk is a war game, in which during the opening and the midgame, both players have similar or equal armies, and their objective is clear: to destroy their opponent's army and checkmate the enemy King.

However later on (in the end game), the game morphs from a war game to a pursuit and escape game, in which one player (thanks to his/her superior material advantage) becomes the attacker and still aims to pursue and capture (checkmate) the opponent's King; while the other player (the defender) now aims to escape capture and (thanks to the draw counting rules) earn a draw to end the pursuit.

Hnetafal helped me to connect the dots potentially explaining the transformation of Makruk from a war game to a pursuit and escape game.

= = =

Thanks again Sittipon! The reason of the Thai Draw Counting Rules is now perfectly clear (at least to me)!

How to Display Legal Moves in Game Courier - A Tutorial. A Game Courier Tutorial.[All Comments] [Add Comment or Rating]
Jose Carrillo wrote on Tue, Dec 27, 2016 10:59 PM UTC:

Fergus,

I created a rules enforcing preset for Makruk, which is working well:

http://play.chessvariants.com/pbm/play.php?game%253DMakruk+%2528Thai+chess%2529%2526settings%253DAlfaerie2r

Now I'm trying to copy the rules in this preset onto another Makruk preset that uses a different set of pieces:

http://play.chessvariants.com/pbm/play.php?game%3DMakruk+%28Thai+chess%29%26settings%3DAlfaerie4r

Unfortunately the latter is not working as expected. I have been doing some troubleshooting, and I think I have identified the issue.

For this preset, instead of a Ferz and Elephant, I'm using upside down pieces Q180 and B180, as well as upside down pawns to represent the promoted pawns (P180).

After making the neccesary changes, I cannot get the preset to calculate the legal moves for these upside down pieces.

I changed the upside down pawn (P180) for a Banner (BA), and the rules worked for the Banner.

My guess is that the logic for the stalemated function does not recognize numbers as part of the code for the piece, which would explain why it would work for a promoted pawn with the shape of a Banner (BA) but not for an upside down pawn (P180) which has numbers as part of the name code of the piece.

This will be a problem if I use Silver generals which have a non-letter code: S! and s!.

I believe the problem is with the onlyupper and onlylower nullary operators. These operators should ignore non-alpha characters.

Can you review the definition of these operators and the stalemate function to make it more generic?

Thanks

Jose


Shatar, Old 1 Hia. Old Shatar with one Hia. (8x8, Cells: 64) [All Comments] [Add Comment or Rating]
Jose Carrillo wrote on Sat, Dec 3, 2016 11:38 PM UTC:

Gary,

Why dropping the Hia after moving the King?

Why not just leave it there in front of the King protecting the King from the begining?

Just an idea.


Jose Carrillo wrote on Sat, Dec 3, 2016 11:23 PM UTC:

As reference, here are my pages on: Hiashatar and Hia Chess


Game Courier Developer's Guide. Learn how to design and program Chess variants for Game Courier.[All Comments] [Add Comment or Rating]
Jose Carrillo wrote on Sat, Dec 3, 2016 05:33 PM UTC:

Thanks again Fergus.

>> When you use an image that is larger than the area needed for the playing area, it uses the whole image and centers your playing area within the image.

I did not know that.

It offers opportunities to create some decoration around the boards.


Jose Carrillo wrote on Sat, Dec 3, 2016 02:07 PM UTC:

Thanks Fergus.

The new 8x12 Plain Ashtapada board solved my 8x12 needs, but had an expected result on my 8x10 presets:

http://play.chessvariants.com/pbm/play.php?game%3DPetteia+XXI%26settings%3DSet7

Somehow I thought the 8x12 board would have been cut down to 8x10.

Can you please also upload the 8x10 board to the list of boards?

http://www.chessvariants.com/membergraphics/MSpetteia-latrunculi-xxi/Plain-Ashtapada-8x10.jpg

Thanks.

Jose


Jose Carrillo wrote on Sat, Oct 22, 2016 02:00 AM UTC:

Hi Fergus,

I'm trying to get an unchequered board 8x10 and 8x12, but don't seem to find one.

I attempted to use the 8x8 plain ashtapada in the preset below, but that didn't work well:

http://play.chessvariants.com/pbm/play.php?game%3DSingle+Stone+Latrunculi+XXI%26settings%3DSet9

I made a new board copying and pasting the plain astapada board:

http://www.chessvariants.com/membergraphics/MSpetteia-latrunculi-xxi/Plain-Ashtapada-8x12.jpg

Can you please upload this board to the list of boards?

Thanks.

Jose


Game Courier Logs. View the logs of games played on Game Courier.[All Comments] [Add Comment or Rating]
Jose Carrillo wrote on Fri, Sep 9, 2016 04:23 PM UTC:

Thanks Fergus for fixing the Fischer Random issue.

As for the Janggi game, understood. I'll use the drawn command then.

Thanks.

 

 


Jose Carrillo wrote on Fri, Sep 9, 2016 12:36 PM UTC:

Fergus,

My opponent vik just resigned this game:

http://play.chessvariants.com/pbm/play.php?game=Fischer+Random+Chess&log=vik-cvgameroom-2016-241-067

But when I open the link to see the final position or his comments (which BTW were not included in the email advising me of his resignation), I get the following error:

Hang in there. I am working on improving GAME Code, and this may intermittently disrupt the execution of GAME Code until I get things working right.

I am updating this to salvage the positions from games whose positions were lost

This is not finished yet, but I may be taking a break

Syntax Error on line 69

The function n has not been defined.


Jose Carrillo wrote on Fri, Sep 9, 2016 01:05 AM UTC:

Fergus,

In my Janggi with Darren game below:

http://play.chessvariants.com/pbm/play.php?game=Janggi&log=j_carrillo_vii-cvgameroom-2016-213-106

my next move R c3-d3 is checkmate, and the preset identifies the move as checkmate.

However, on my 15th move, my General faced my opponent's General face-to-face without any intervening pieces, therefore by the Janggi rules, the most that I should be able to get is a draw even if I checkmate my opponent.

Would you like to review and correct the logic of the preset to account for this very specific Janggi situation?

Otherwise, instead of playing R c3-d3 I'll just type "drawn" to end the game.

I just believe this is a very good opportunity to update this draw logic.


Jose Carrillo wrote on Mon, Sep 5, 2016 05:19 PM UTC:

Great! Thanks for the quick solution Fergus.


Jose Carrillo wrote on Mon, Sep 5, 2016 03:25 PM UTC:

Fergus,

In my Prime Ministers Chess game (9x8 board) against Vitya:

http://play.chessvariants.com/pbm/play.php?game=Prime+Ministers+Chess&log=makov333-cvgameroom-2016-241-725

when it's my turn to play, my Bishop is on the dark color squares. But after I've moved, my Bishop becomes a light squares Bishop.

While the coordinates for the board change from my perspective (before I move), to my opponent's perspective (after I move); the board itself doesn't rotate along with the coordinates.

Is there a way to rotate the board as well?


Jose Carrillo wrote on Sun, Sep 4, 2016 07:51 PM UTC:

Thanks Fergus. All is back to normal.

Cheers.


Modern Shatranj. A bridge between modern chess and the historic game of Shatranj. (8x8, Cells: 64) [All Comments] [Add Comment or Rating]
Jose Carrillo wrote on Sun, Sep 4, 2016 07:49 PM UTC:Excellent ★★★★★

Joe,

I find this Shatranj variant very interesting.

I created  preset which enforces the rules:

http://play.chessvariants.com/pbm/play.php?game%3DModern+Shatranj%26settings%3Dcarrillo

The only difference in my implementation of the rules is that Pawns can only promote to Generals (to keep more of a 'shatranj-ness' flavour).


Game Courier Logs. View the logs of games played on Game Courier.[All Comments] [Add Comment or Rating]
Jose Carrillo wrote on Sun, Sep 4, 2016 03:47 PM UTC:

Fergus,

Where would we have put the description you are refering to when we created the presets? Would it be the "What's New Text" field?

Please use the following sentences:

for Latrunculi XXI: The ancient game of Chess played in the Roman Empire

for Petteia XXI: The ancient game of Draughts played in the Greek Empire

for Makruk: The traditional Chess Variant played in Thailand

Thanks

 


Jose Carrillo wrote on Sun, Sep 4, 2016 01:58 PM UTC:

Fergus,

I can't reach my Makruk page either:

http://play.chessvariants.com/makruk-thai-chess
The IndexEntry for MPmakruk-thai-chess could not be found.

Jose Carrillo wrote on Sun, Sep 4, 2016 02:17 AM UTC:

Yes I have been editing, simplifying the instructions and updating the pages since you unhid them. But I haven't deleted anything. Pure rules maintenance.

This page desciptions are:

Latrunculi XXI

Petteia XXI


Jose Carrillo wrote on Sat, Sep 3, 2016 10:06 PM UTC:

Editors,

Is there a problem with the site? I can't reach some of my games rule pages:

http://www.chessvariants.com/invention/latrunculi-petteia-xxi
The IndexEntry for MSlatrunculi-petteia-xxi could not be found.

http://www.chessvariants.com/invention/petteia-latrunculi-xxi
The IndexEntry for MSpetteia-latrunculi-xxi could not be found.

http://www.chessvariants.com/invention/prime-ministers-chess
The IndexEntry for MSprime-ministers-chess could not be found.


Jose Carrillo wrote on Wed, Aug 31, 2016 06:40 PM UTC:

Thanks Fergus.

Question, would this improvement that you made apply to all the presets that use the "chess" include file?


Jose Carrillo wrote on Wed, Aug 31, 2016 01:08 PM UTC:

Hi Fergus.

There is a bug in the logic in the Chess preset as it regards to stalemate draws.

In my game below with Carlos:

http://play.chessvariants.com/pbm/play.php?game=Chess&log=sissa-cvgameroom-2016-224-612

the preset correctly identified that the game is a stalemate and a draw (it shows the correct message).

However it failed to end the game formally in a draw.

Right now the preset is expecting Carlos to play, and his only play would be to type the command "drawn".

But shouldn't the preset automatically just end the game, since it does recognize that the position is a stalemate?


Jose Carrillo wrote on Sun, Aug 21, 2016 11:11 PM UTC:

Thanks Fergus.

That sounds like a rather complicated way of counting for captured pieces, but if it works, c'est la vie! ;-)

Out of curiosity, something more simple like just counting how many pieces were there in the original setup, and then substracting those still on the board, couldn't this have done the trick?


Jose Carrillo wrote on Sun, Aug 21, 2016 01:56 AM UTC:

Kevin,

What you were seeing was the log for the invitation. I deleted it.

Cheers

Jose


Jose Carrillo wrote on Sat, Aug 20, 2016 12:01 PM UTC:

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. 

http://play.chessvariants.com/pbm/play.php?game=Gothic+Checkers&log=j_carrillo_vii-cvgameroom-2016-213-548


New Latrunculi Variant[Subject Thread] [Add Response]
Jose Carrillo wrote on Sat, Aug 20, 2016 01:02 AM UTC:

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


Latrunculi XXI. A 21st century variant on an ancient Chess-like game of the Roman empire. (10x8, Cells: 80) [All Comments] [Add Comment or Rating]
💡📝Jose Carrillo wrote on Sat, Aug 20, 2016 12:36 AM UTC:

Thanks for the feedback Fergus.

I have done some cleanup and reorganization as requested.

Let me know if further changes are required.

Thanks.

 


Game Courier Logs. View the logs of games played on Game Courier.[All Comments] [Add Comment or Rating]
Jose Carrillo wrote on Tue, Aug 9, 2016 03:03 PM UTC:

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.


How to Display Legal Moves in Game Courier - A Tutorial. A Game Courier Tutorial.[All Comments] [Add Comment or Rating]
Jose Carrillo wrote on Fri, Aug 5, 2016 08:58 PM UTC:

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.


Game Courier Logs. View the logs of games played on Game Courier.[All Comments] [Add Comment or Rating]
Jose Carrillo wrote on Thu, Aug 4, 2016 03:14 AM UTC:

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.


Jose Carrillo wrote on Thu, Aug 4, 2016 02:21 AM UTC:

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):

http://play.chessvariants.com/pbm/play.php?game%3DChaturanga+-+Davidson+Variation%26settings%3DAlfaerie

What is the trigger to display the legal moves?

Thanks.

 


Jose Carrillo wrote on Wed, Aug 3, 2016 01:06 PM UTC:

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;

 


Jose Carrillo wrote on Tue, Aug 2, 2016 07:52 PM UTC:

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!

 


Jose Carrillo wrote on Tue, Aug 2, 2016 06:41 PM UTC:

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).


Jose Carrillo wrote on Tue, Aug 2, 2016 06:14 PM UTC:

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.

 


Jose Carrillo wrote on Tue, Aug 2, 2016 05:46 PM UTC:

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.

 

 


Jose Carrillo wrote on Tue, Aug 2, 2016 04:01 AM UTC:

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.


Jose Carrillo wrote on Tue, Aug 2, 2016 03:25 AM UTC:

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.


10x10 Boards[Subject Thread] [Add Response]
Jose Carrillo wrote on Tue, Aug 2, 2016 01:02 AM UTC:

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


Game Courier Logs. View the logs of games played on Game Courier.[All Comments] [Add Comment or Rating]
Jose Carrillo wrote on Tue, Aug 2, 2016 12:48 AM UTC:

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


New Latrunculi Variant[Subject Thread] [Add Response]
Jose Carrillo wrote on Mon, Aug 1, 2016 11:58 AM UTC:

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.


Hasami Shogi. Popular Japanese game, playable with Shogi set. (9x9, Cells: 81) [All Comments] [Add Comment or Rating]
Jose Carrillo wrote on Sun, Jul 31, 2016 06:33 PM UTC:

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


Latrunculi XXI. A 21st century variant on an ancient Chess-like game of the Roman empire. (10x8, Cells: 80) [All Comments] [Add Comment or Rating]
💡📝Jose Carrillo wrote on Sun, Jul 31, 2016 05:53 PM UTC:

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.


Korean Chess. Play Korea's regional Chess variant on Game Courier.[All Comments] [Add Comment or Rating]
Jose Carrillo wrote on Sun, Jul 31, 2016 05:04 PM UTC:Excellent ★★★★★

Thanks Fergus.


Jose Carrillo wrote on Sun, Jul 31, 2016 01:59 PM UTC:

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.

Game Courier Logs. View the logs of games played on Game Courier.[All Comments] [Add Comment or Rating]
Jose Carrillo wrote on Sat, Jul 30, 2016 03:31 PM UTC:

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

 


Jose Carrillo wrote on Sat, Jul 30, 2016 02:18 AM UTC:

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


Jose Carrillo wrote on Fri, Jul 29, 2016 11:21 PM UTC:

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.

http://play.chessvariants.com/pbm/play.php?game=Ajax+Orthodox+Chess&log=j_carrillo_vii-tamandua-2016-207-067
 
http://play.chessvariants.com/pbm/play.php?game=Janggi&log=j_carrillo_vii-cvgameroom-2016-199-446

http://play.chessvariants.com/pbm/play.php?game=Chaturanga+-+Davidson+Variation&log=j_carrillo_vii-makov333-2016-206-997

= = =

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


Jose Carrillo wrote on Tue, Jul 26, 2016 03:44 PM UTC:

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.


Jose Carrillo wrote on Tue, Jul 26, 2016 03:04 PM UTC:

Fergus,

Update. I forwarded you the mail I received, and copied my gmail account.

I was able to open the attachment in the forwarded message (but not the original). Below are the contents of the attached text file:

I don't understand why am I getting the text as an attachement intead of just plain text.

= = =

darren paull has accepted your invitation to play Chaturanga - Davidson Variation and has chosen to move first as White. Please wait for your opponent's move before you make your own. If you wish to move as soon as you can after your opponent moves, you can go here and wait for your opponent's move:
 
http://play.chessvariants.com/pbm/play.php?game%3DChaturanga+-+Davidson+Variation%26log%3Dj_carrillo_vii-ramalam-2016-206-499%26userid%3Dj_carrillo_vii
 
 

 

 


Jose Carrillo wrote on Tue, Jul 26, 2016 02:55 PM UTC:

Fergus,

I use yahoo mail.

I can see that there is a text attachment to the emailcalled: TEXT.txt, but I can't open it or download it.

Cheers,

Jose

 


Jose Carrillo wrote on Tue, Jul 26, 2016 12:08 AM UTC:

Fergus

My opponent just accepted a personal invitation to play the game below,

http://play.chessvariants.com/pbm/play.php?game=Chaturanga+-+Davidson+Variation&log=j_carrillo_vii-ramalam-2016-206-499

and this is the email I received from Game Courier.

No mention as to who is playing white or black, and no link to the game. Just an email with a subject line.

I found out when I searched the my games: the link to the game and that he chose to be white.

I don't know whether he received an email with instructions stating that it was his turn.

 

----- Forwarded Message -----
From: sundowner62
To: j_carrillo_vii
Sent: Monday, July 25, 2016 7:35 PM
Subject: darren paull accepts your invitation to play Chaturanga - Davidson Variation


Chaturanga. Oldest known form of chess. (Recognized!)[All Comments] [Add Comment or Rating]
Jose Carrillo wrote on Mon, Jul 25, 2016 10:53 AM UTC:

Hi Fergus,

Can you please add a link to this page to my preset for Davidson's Variation of Chaturanga?

http://play.chessvariants.com/pbm/play.php?game%3DChaturanga+-+Davidson+Variation%26settings%3DAlfaerie

Thanks

 


Chaturanga. The first known variant of chess. (8x8, Cells: 64) [All Comments] [Add Comment or Rating]
Jose Carrillo wrote on Mon, Jul 25, 2016 09:54 AM UTC:
Here is a Game Courier preset that enforces the rules for Henry A. Davidson's 1949 version of Chaturanga.
 

Game Courier Logs. View the logs of games played on Game Courier.[All Comments] [Add Comment or Rating]
Jose Carrillo wrote on Sun, Jul 24, 2016 01:33 PM UTC:

Thanks Fergus.

Cheers!

 


Jose Carrillo wrote on Thu, Jul 21, 2016 11:19 PM UTC:

Thanks Fergus.

Yes, I was able to play my first move. Thanks.

How about the email that we receive when a challenge is accepted? Can it include the link to the game?

 

 

 

 


Jose Carrillo wrote on Thu, Jul 21, 2016 06:54 PM UTC:

Hi Fergus.

I just started this game with Carlos Cetina:

http://play.chessvariants.com/pbm/play.php?game=Modern+Capablanca+Random+Chess&log=j_carrillo_vii-cvgameroom-2016-201-107

He chose to be black, but on the email that I received there was no text or a link to the game to indicate that he had chosen black and that it was my turn to play.

I went to my CV games and found the link to the game there, showing that it was my turn.

When I tried to play my first move: P e2-e4 I got the error below:

lastmovenum = ; movenum = 0

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.

Can you please check the code, it appears to have a couple of bugs?

Thanks.

Jose


Jose Carrillo wrote on Thu, Jul 7, 2016 09:17 AM UTC:

Fergus, another opportunity for improvement.

When one of my opponents accepts an open invitation and chooses to be black, the I receive an email only with a subject but without any text or link to the game.

The subject alone doesn't even tell me that I'm white or that is my turn to play.

To play my first move, I have to go to my games to then find the game in question.

I forwarded you a sample email.

 

 


Jose Carrillo wrote on Sat, Jul 2, 2016 08:36 PM UTC:Excellent ★★★★★

Thanks Fergus for fixing the captured pieces logic.


Jose Carrillo wrote on Fri, Jul 1, 2016 08:14 PM UTC:

Hi Fergus,

In my Petteia XXI game with erik below, there has been two captures (one for each side):

http://play.chessvariants.com/pbm/play.php?game=Petteia+XXI&log=j_carrillo_vii-erik-2016-178-557

However in the Game Couries box of Captured Pieces it is only showing one piece captured.

Can you please review the logic for captured pieces? Thanks.

 


Jose Carrillo wrote on Thu, Jun 30, 2016 12:58 AM UTC:

Fergus,

Below is a sample email from Game Courier when a player resigns.

One cannot tell who resigned (difficult to tell, when one is playing many games of the same type), see the comments of one's opponent when he/she resigned, nor there is a link to the game just finished so that one can review it.

Is this an oversight?

Thanks.

= = =

From: "play@chessvariants.com" <play@chessvariants.com>
To: xxxxxxxxxx
Sent: Wednesday, June 29, 2016 8:30 AM
Subject: Turkish Checkers: 22... resign


This game has finished. Come back to Game Courier to start or join another game.


The play@chessvariants.com address is used by Game Courier to send email without revealing the email addresses of players. Do not reply to this address. It does not receive email.

Jose Carrillo wrote on Sat, Jun 25, 2016 05:45 PM UTC:

OK. Thanks Fergus for confirming that Darren ran out of time, and that's why the game ended.

In this case then, shouldn't I receive an email saying that my opponent has run out of time?

Thanks.

 

 


Jose Carrillo wrote on Fri, Jun 24, 2016 10:44 PM UTC:

http://play.chessvariants.com/pbm/play.php?game=Makruk+%28Thai+chess%29&log=j_carrillo_vii-cvgameroom-2016-109-074

Fergus,

There is something wrong with the clock on this game. It's not over yet, but because the clock has a negative number for the time left, Game Courier is thinking it's over.

 

 


Game ending before starting[Subject Thread] [Add Response]
Jose Carrillo wrote on Fri, Apr 8, 2016 01:49 AM UTC:
Thanks Fergus.

Jose Carrillo wrote on Thu, Apr 7, 2016 11:20 AM UTC:
Fergus,

Another one. I accepted Carlos Cetina's invitation to the Fischer Random
Chess game below, and as soon as the random position was set, I lost the
game, without even playing my first move.

http://play.chessvariants.com/pbm/play.php?game=Fischer+Random+Chess&log=sissa-cvgameroom-2016-89-680

Problems with Makruk[Subject Thread] [Add Response]
Jose Carrillo wrote on Thu, Apr 7, 2016 08:42 AM UTC:
Thanks Fergus.

I'll try again.

Jose

Jose Carrillo wrote on Wed, Apr 6, 2016 03:23 PM UTC:
Just as an additional piece of information Fergus...

This problem happened to me when I sent my opponent directly the invitation
(versus a public invitation for anyone to accept).

I don't know if this has anything to do with the bug.

Makruk (Thai chess). Play the traditional Chess variant of Thailand on Game Courier.[All Comments] [Add Comment or Rating]
📝Jose Carrillo wrote on Wed, Apr 6, 2016 03:21 PM UTC:
Ah! Thanks Fergus.

Problems with Makruk[Subject Thread] [Add Response]
Jose Carrillo wrote on Wed, Apr 6, 2016 02:25 AM UTC:
Fergus,

I started the game below today, and the game ended immediately after my
opponent make his first move.

http://play.chessvariants.com/pbm/play.php?game=Makruk+%28Thai+chess%29&log=j_carrillo_vii-sundowner62-2016-94-504

Additionally, the page I had created on Makruk is gone:

http://play.chessvariants.com/makruk-thai-chess

Seems something is wrong with Makruk... ;-(

How to see all the pieces in a piece set?[Subject Thread] [Add Response]
Jose Carrillo wrote on Mon, Mar 21, 2016 01:21 PM UTC:
I used a different computer and Internet Explorer (IE11), and I was able to
see them. Thanks.

Jose Carrillo wrote on Sun, Mar 20, 2016 12:16 AM UTC:
I don't have that box checked.

I'm starting from scratch from the chess preset:

http://play.chessvariants.com/pbm/play.php?submit=Edit

Jose Carrillo wrote on Sat, Mar 19, 2016 10:43 PM UTC:
I'm trying to edit the settings for a game in Game Courier.

I can no longer see all the pieces available in an entire piece set within
the Game Courier edit screen.

How can I see the pieces available (and their mnemonics) now? 

Where do I have to go to see all the pieces available in the Alfaerie set?

Is the CV Gameroom mailing list working?[Subject Thread] [Add Response]
Jose Carrillo wrote on Tue, Mar 15, 2016 09:49 PM UTC:
Fergus,

I sent a test email to the Mailing List and it responded well (you should
have got the test email as well).

My test message is now the first email showing in the 2016 message history
for the Mailing list.

Perhaps you have an emailing issue with Chess Courier in the routines that
do the invite portion.

Is the email address you use to send emails from Chess Courier to the Yahoo
Mailing List a member of the mailing list?

Jose Carrillo wrote on Tue, Mar 15, 2016 07:02 PM UTC:
Hello fellow Chess Variants lovers!

I'm interested in playing a few games, after a few years absence from
online play.

I submitted a few open public Game Courier invitations, but have not
received any email from the CV Gameroom mailing list about my games, or
about any other of the games currently waiting for opponents.

When I check the CV Gameroom mailing list yahoo site (below), it appears
that the last message was in 2015.

https://groups.yahoo.com/neo/groups/cvgameroom/info

Is the CV Gameroom mailing list working?

100 comments displayed

LatestLater Reverse Order EarlierEarliest

Permalink to the exact comments currently displayed.