Check out Smess, our featured variant for February, 2025.


[ 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

EarliestEarlier Reverse Order Later
Game Courier Developer's Guide. Learn how to design and program Chess variants for Game Courier.[All Comments] [Add Comment or Rating]
Lev Grigoriev wrote on Tue, Aug 13, 2024 03:12 PM EDT:

Is it possible to program games on unusually shaped boards if these can be translated into square ones, and movements can be coded with alternating through morph, so technically it’s a square variant with different visual representation? The best examples are Pentagonal Chess, Rocket Chess, Stair Chess, many Koval’s variants and more.


Bn Em wrote on Wed, Aug 14, 2024 07:43 AM EDT in reply to Lev Grigoriev from Tue Aug 13 03:12 PM:

I imagine so; Haru and H.G. have both done a handful of examples. Of course some are easier than others (some of David Cannon's designs might be…tricky)


🕸📝Fergus Duniho wrote on Wed, Aug 14, 2024 11:48 AM EDT in reply to Lev Grigoriev from Tue Aug 13 03:12 PM:

Is it possible to program games on unusually shaped boards if these can be translated into square ones

Game Courier will let you program games on unusually shaped boards with either the Custom Grid or the Custom shape. Custom Grid is designed for games that can fit onto a grid-like structure whereby each space is at the intersection of two axes even if the spaces do not have even sides or right angles.

and movements can be coded with alternating through morph,

The morph feature you mention is part of Interactive Diagrams, not part of Game Courier. But since GAME Code is Turing-complete, I expect the same feature could be programmed for Game Courier. However, Game Courier can also more easily handle location-dependent powers of movement if that is what you actually need.


Daniel Zacharias wrote on Mon, Dec 9, 2024 03:57 AM EST:

it seems that accessing array items like this $pieces.a no longer works.


🕸📝Fergus Duniho wrote on Mon, Dec 9, 2024 08:24 PM EST in reply to Daniel Zacharias from 03:57 AM:

Here is some test code:

print $pieces.a;
print elem a $pieces;
set pieces $pieces;
print #pieces.a;
print elem a #pieces;

And here is its output:

Array
(
)

BKnightBishop.gif

BKnightBishop.gif

BKnightBishop.gif

So, only the first one is not working. I'll look into this more tomorrow.


🕸📝Fergus Duniho wrote on Tue, Dec 10, 2024 12:47 PM EST in reply to Daniel Zacharias from Mon Dec 9 03:57 AM:

I have now got it working. I think the issue was that PHP has put some restrictions on the use of the $GLOBALS variable. I had to rewrite the code so that I was not passing $GLOBALS to a function. For example, something like array_key_exists($key, $GLOBALS) was no longer working to tell whether a variable name existed, and I had to use something like isset($GLOBALS[$key]) instead.


6 comments displayed

EarliestEarlier Reverse Order Later

Permalink to the exact comments currently displayed.