Check out Symmetric Chess, our featured variant for March, 2024.


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

Comments/Ratings for a Single Item

Earlier Reverse Order Later
Did something change in the Code syntax?[Subject Thread] [Add Response]
wdtr2 wrote on Sun, Oct 23, 2022 10:19 PM UTC:

A few months ago (perhaps a year or more), the code for shogi was modified. We now seem to have special variables like pawn-range etc.

The code I copied and modified many years ago does not seem to be working. Below is an error message below that I got using my old code where b is a black bishop, when I attempt to do a drop I seem to get the error message The move MOVE: b*9h ain't well-formed.

Any suggestions on how I should correct this?

Array ( [0] => MOVE: [1] => b [2] => * [3] => 9h )

ILLEGAL: b*9h on turn 8:

The move MOVE: b9h ain't well-formed. b is a coordinate. So should be a hyphen.

Go back with your browser's BACK button, reload the page, and try again.

For diagnostic purposes, here is the full movelist:

  1. p 8g-8f 1... P 8c-8d
  2. n 9i-8g 2... N 9a-8c
  3. n 8g-7e 3... N 8c-9e
  4. n 7e-8c; +n-dest 4... N 9e-8g; +N-dest
  5. +n 8c-9b 5... +N 8g-9h // - bCapture- -
  6. s 8i-9h 6... B*8g // - Check! -
  7. s 9h-8g 7... P 4c-4d
  8. b*9h

🕸Fergus Duniho wrote on Wed, Oct 26, 2022 05:29 PM UTC in reply to wdtr2 from Sun Oct 23 10:19 PM:

Please provide a link to the code that isn't working.


2 comments displayed

Earlier Reverse Order Later

Permalink to the exact comments currently displayed.