| Author |
Message |
Andreas Speiger (Andique)
New member Username: Andique
Post Number: 1 Registered: 11-2007
| | Posted on Friday, June 19, 2009 - 6:56 am: | |
Hello i am creating a new chess called "Astralschach".Please excuse my bad english . i am from Germany. In Astralschach you can put pieces on other pieces , but not on a second board with 64 squares.Really on other pieces except King and Queen . That are maximum 28 squares. I don't have any Knowledge about Program ,but i am nearly ready . This shows that Zillions can be done by everyone . I have solved complicated Problems, but now i have a problem i can't solve. It is possible to capture both pieces at once.I have done this with this code (define upcapture ( (freehead)$1(if empty? down)(while empty? add $1) $2 (verify not-empty? ) (verify not-friend?) capture $3 (verify not-friend?) add )) freehead means: (define freehead (verify (empty? up)) ) and then for example (in the moves) (upcapture n up down) This works , but now i have in a pop-up Menue two Kinds of capture ; this one and the normal, in which the piece on bottom were captured . This is nice and every one would choose to capture both pieces :-) But i don't want this . I only want upcapture. How can i do this? Thank you and regards from Germany Andreas |
Andreas Speiger (Andique)
New member Username: Andique
Post Number: 2 Registered: 11-2007
| | Posted on Friday, June 19, 2009 - 7:07 am: | |
i saw the code i have given is ,when a piece capture both pieces from the second plane. The code from the first plane is (define xslide ( (downcheck) (freehead) $1 (while empty? add $1) $2 (verify not-empty?) (verify not-friend?) capture $3 (verify not-friend?) add )) (define downcheck (verify (in-zone? board1))) Thanks |
Andreas Speiger (Andique)
New member Username: Andique
Post Number: 8 Registered: 11-2007
| | Posted on Monday, July 06, 2009 - 3:21 am: | |
Thanks for your Feedback |
|