Capture-only move Log Out | Topics | Search
Moderators | Register | Edit Profile

Zillions of Games Discussion Forum » Designing Games for Zillions » Capture-only move « Previous Next »

Author Message
Roger J Cooper (Rogercooper)
New member
Username: Rogercooper

Post Number: 42
Registered: 7-2000
Posted on Wednesday, July 04, 2018 - 3:25 pm:   

I am trying to define a capture-only move. I am writing:

(define capture-move ($1 (verify empty?) add) )

When I run it I received the error:

Missing "(" at capture-move

What I am doing wrong?
Sean Duggan (Dream)
New member
Username: Dream

Post Number: 127
Registered: 9-2000
Posted on Wednesday, July 04, 2018 - 3:36 pm:   

If you are using the default chess.zrf file, "capture-move" is already defined as a move type and you will get that error message. Rename your move (or that move type) and you should have no issue.
Malcolm James Webb (Mjw)
New member
Username: Mjw

Post Number: 33
Registered: 5-2008
Posted on Saturday, February 23, 2019 - 2:54 am:   

Missing parentheses can be one of the more annoying errors to fix. You seem to have the right number of parentheses in the line you wrote, but there may be other missing parentheses in the lines above or below which are generating this message.

Incidentally if you want a capture-only move it should be (verify enemy?), not (verify empty?).

Add Your Message Here
Post:
Username: Posting Information:
This is a private posting area. Only registered users and moderators may post messages here.
Password:
Options: Enable HTML code in message
Automatically activate URLs in message
Action: