Check out Janggi (Korean Chess), our featured variant for December, 2024.

Enter Your Reply

The Comment You're Replying To
🕸Fergus Duniho wrote on Sat, Jan 21, 2006 04:26 PM UTC:
Shortly after waking up this morning, I realized how to program this game
for Game Courier. If it represents each piece by a number, it can XOR the
numbers together to determine what a piece changes to when it captures
another piece.  Also, instead of writing separate movement functions for
each piece, I can write a single subroutine, or maybe a function, that
handles all non-royal piece movement by checking the bits in the numbers
representing the pieces. Given this, the first thing to start with is to
identify the basic types of movement in this game. Each basic type of
movement is the largest group of possible moves that will always be found
together. More succinctly, what are the largest indivisible sets of moves
in this game? Here's what I identify.

Forward Vertical Leap

Horizontal or Backward Vertical Leaps
Forward Diagonal Leaps
Backward Diagonal Leaps

Forward Vertical Ride of 2+ spaces
Horizontal or Backward Vertical Rides of 2+ spaces
Diagonal Rides of 2+ spaces

Forward Knight Leaps

Since every piece can leap one space vertically forward, the forward
vertical leap doesn't have to be identified by a bit. Seven sets remain,
giving a total of 128 possible pieces. I have separated these into three
groups. There is a group for one space leaps, a group for riding moves,
and a group for Knight leaps. This is to accomodate octal representation
of the piece numbers. Base 8 has the advantage over base 10 of every digit
always having the same meaning in the same place. It shares this advantage
with base 2 and base 16, but it strikes a better balance than either of
these between being easy to decode (as base 2 is) and being easy to
identify (as base 16 is). The computer doesn't care what base the pieces
are represented in, but using octal numbers will better enable humans to
use the numbers as mnemonics for remembering how pieces move. Accordingly,
each piece would get an octal number, ranging from 0 for a Pawn to 177 for
a piece that can move as a Queen or a Shogi Knight. The usual Shogi pieces
would be Pawn 0, Lance 10, Knight 100, Silver General 6, Gold General 3,
Bishop 46, and Rook 33.

Edit Form

Comment on the page Xorix Shogi

Conduct Guidelines
This is a Chess variants website, not a general forum.
Please limit your comments to Chess variants or the operation of this site.
Keep this website a safe space for Chess variant hobbyists of all stripes.
Because we want people to feel comfortable here no matter what their political or religious beliefs might be, we ask you to avoid discussing politics, religion, or other controversial subjects here. No matter how passionately you feel about any of these subjects, just take it someplace else.
Avoid Inflammatory Comments
If you are feeling anger, keep it to yourself until you calm down. Avoid insulting, blaming, or attacking someone you are angry with. Focus criticisms on ideas rather than people, and understand that criticisms of your ideas are not personal attacks and do not justify an inflammatory response.
Quick Markdown Guide

By default, new comments may be entered as Markdown, simple markup syntax designed to be readable and not look like markup. Comments stored as Markdown will be converted to HTML by Parsedown before displaying them. This follows the Github Flavored Markdown Spec with support for Markdown Extra. For a good overview of Markdown in general, check out the Markdown Guide. Here is a quick comparison of some commonly used Markdown with the rendered result:

Top level header: <H1>

Block quote

Second paragraph in block quote

First Paragraph of response. Italics, bold, and bold italics.

Second Paragraph after blank line. Here is some HTML code mixed in with the Markdown, and here is the same <U>HTML code</U> enclosed by backticks.

Secondary Header: <H2>

  • Unordered list item
  • Second unordered list item
  • New unordered list
    • Nested list item

Third Level header <H3>

  1. An ordered list item.
  2. A second ordered list item with the same number.
  3. A third ordered list item.
Here is some preformatted text.
  This line begins with some indentation.
    This begins with even more indentation.
And this line has no indentation.

Alt text for a graphic image

A definition list
A list of terms, each with one or more definitions following it.
An HTML construct using the tags <DL>, <DT> and <DD>.
A term
Its definition after a colon.
A second definition.
A third definition.
Another term following a blank line
The definition of that term.