Comments by catugo
Maybe it is better if I explain what I want to do.
So there are these two pieces (in position 12 and 13):
lightcannon:X:mRcpR:cannon:a4,n4,,a11,n11
heavycannon:Y:pRpafcpR:warmachine:a2,n2,,a13,n13
The rule I want to implement is that heavy cannons cannot jump, be jumped, captured or be captured by other cannons. My captureMatrix looks like this:
captureMatrix=////////////11$$./11$$./
but probably I got it wrong.
Note the heavy cannon is a bit more than a korean cannon is as it can jump two platforms in order capture, but not move.
Oh, a silly trivial mistake on my part. Thanks!
![UPDATED! A game information page](/index/ms.gif)
![(Updated!)](/index/updated.gif)
Actually the name was chosen by HG!
![A game information page](/index/ms.gif)
@HG My preset for this game is giving an error about fast castling. It used to work. Any idea why?
![A reference work](/index/reference.gif)
Actually I think we still have a problem. The heavy cannon can jump (but it cannot capture) the light cannon. This can't be an capture matrix thing because $ should do them both!
This is funny!
No, it is because it looks like a heart!
![A reference work](/index/reference.gif)
Oh, yes!
I'm sorry!
In a moment!
files=14 ranks=14 promoZone=4 maxPromote=2 graphicsDir=https://www.chessvariants.com/cgi-bin/fen2.php?s=33&l=FFFF44&d=0000AA&w=FFFF44&b=0000AA&p= whitePrefix=w blackPrefix=b graphicsType=gif squareSize=38 lightShade=#FFFFFF darkShade=#660000 oddShade=#008800 whitePrefix=w blackPrefix=b graphicsType= symmetry=mirror useMarkers=1 borders=0 captureMatrix=///////////12$$./12$$./ hussar:H:fafsWraflWlafrWsbW:wideknight:c5,e5,g5,h5,j5,l5,f3,i3,,c10,e10,g10,h10,j10,l10,f12,i12 lancer:L:fafsWraflWlafrWbF:narrowknight:b5,d5,f5,i5,k5,m5,d3,k3,,b10,d10,f10,i10,k10,m10,d12,k12 equesrex:K:KN:king--knight:h1,,h14 queen:Q:ZQ:zebra--queen:g1,,g14 manticore:M:WyasfWC:lion:i1,,i14 gryphon:G:NB2afyasfF:gryphon:f1,,f14 paladin:A:BN2:cardinal:e1,j1,,e14,j14 nightrider:N:NNC:camel--nightrider:d1,k1,,d14,,k14 marshall:C:RN2:chancellor:c1,l1,,c14,l14 assasin:S:ZFX:diplomat:g3,h3,,g12,h12 ninja:J:HWXNY:cardinal1:e3,j3,,e12,j12 lightcannon:X:mRcpR:cannon--warmachine:a4,n4,,a11,n11 heavycannon:Y:pRpafcpR:cannon--greatwarmachineferz:a2,n2,,a13,n13 mammoth:T:KADmHmG:mammoth:c3,l3,,c12,l12
I have made the modifications you have suggested, and now it works as expected.
I have noticed that both my megalomachy and frog chess with gryphon and falcon give an error related to fast castle. Probably it is not a coincidence!
![A reference work](/index/reference.gif)
Why this instruction: setsystem legalmoves ((e5 a1) (e5 b1) (e5 c1) (e5 d1) (e5 e1) (e5 g1) (e5 h1) (e5 i1) (e5 j1)); gives the error: e5-b1, which is listed as a legal move, is not a well-formed move.
Here is the preset in question.
I agree with all your points here, Jean-Louis! But I have two comments. I remember you did not like compound leapers. Also I thought about those pieces in an 8 stones chess environment!
P.S. By the way 8 stones chess is really good but not programmed!
![A game information page](/index/ms.gif)
I'm glad that you will continue the C project for the Interactive diagram. Good luck with that!
![A play-by-email page](/index/pbm.gif)
@HG,
I get this error:
you can only continue with same piece
here:
Ok, I must sound quite silly. Thanks For the advice. Back to work!
Now I get this error after black's play:
You cannot promote on this move
I get a blank screen after this instruction.
I have forgotten the fact that the two moves should for now be entered manually. Later I'll implement what you say!
If the two moves are written manually it works. This was my first goal. Thanks for your aid. Now I have to use continuemove. That seems to me the most difficult part.
In what I'm doing now continuemove does nothing. Any idea why? I don't know what sort of monster I have made this time. I'm aware that withouht a condition it goes infinite loop, but even this would be a first step.
It always swtiches players, and in the programmers guide I have found nothing about it.
Per HG's suggestion!
25 comments displayed
Permalink to the exact comments currently displayed.
I think you have Missed my previous comment here, HG!