Sashité for Developers
  1. Sashité for Developers
  2. Documentation
  3. CELL
  4. 1.0.0
  5. Examples
  6. 2D Shōgi

2D Shōgi Board - Size 9x9

CELL Coordinates:

  ┌───┬───┬───┬───┬───┬───┬───┬───┬───┐
9 │   │   │   │   │   │   │   │   │   │
  ├───┼───┼───┼───┼───┼───┼───┼───┼───┤
8 │   │   │   │   │   │   │   │   │   │
  ├───┼───┼───┼───┼───┼───┼───┼───┼───┤
7 │   │   │   │   │   │   │   │   │   │
  ├───┼───┼───┼───┼───┼───┼───┼───┼───┤
6 │   │   │   │   │   │   │   │   │   │
  ├───┼───┼───┼───┼───┼───┼───┼───┼───┤
5 │   │   │   │   │   │   │   │   │   │
  ├───┼───┼───┼───┼───┼───┼───┼───┼───┤
4 │   │   │   │   │   │   │   │   │   │
  ├───┼───┼───┼───┼───┼───┼───┼───┼───┤
3 │   │   │   │   │   │   │   │   │   │
  ├───┼───┼───┼───┼───┼───┼───┼───┼───┤
2 │   │   │   │   │   │   │   │   │   │
  ├───┼───┼───┼───┼───┼───┼───┼───┼───┤
1 │   │   │   │   │   │   │   │   │   │
  └───┴───┴───┴───┴───┴───┴───┴───┴───┘
    a   b   c   d   e   f   g   h   i

Empty squares represented by spaces.


Initial Position

Initial position with two kings facing each other:

  ┌───┬───┬───┬───┬───┬───┬───┬───┬───┐
9 │   │   │   │   │ k │   │   │   │   │
  ├───┼───┼───┼───┼───┼───┼───┼───┼───┤
8 │   │   │   │   │   │   │   │   │   │
  ├───┼───┼───┼───┼───┼───┼───┼───┼───┤
7 │   │   │   │   │   │   │   │   │   │
  ├───┼───┼───┼───┼───┼───┼───┼───┼───┤
6 │   │   │   │   │   │   │   │   │   │
  ├───┼───┼───┼───┼───┼───┼───┼───┼───┤
5 │   │   │   │   │   │   │   │   │   │
  ├───┼───┼───┼───┼───┼───┼───┼───┼───┤
4 │   │   │   │   │   │   │   │   │   │
  ├───┼───┼───┼───┼───┼───┼───┼───┼───┤
3 │   │   │   │   │   │   │   │   │   │
  ├───┼───┼───┼───┼───┼───┼───┼───┼───┤
2 │   │   │   │   │   │   │   │   │   │
  ├───┼───┼───┼───┼───┼───┼───┼───┼───┤
1 │   │   │   │   │ K │   │   │   │   │
  └───┴───┴───┴───┴───┴───┴───┴───┴───┘
    a   b   c   d   e   f   g   h   i

Legend

Locations


Next Position

Position after Sente move:

  ┌───┬───┬───┬───┬───┬───┬───┬───┬───┐
9 │   │   │   │   │ k │   │   │   │   │
  ├───┼───┼───┼───┼───┼───┼───┼───┼───┤
8 │   │   │   │   │   │   │   │   │   │
  ├───┼───┼───┼───┼───┼───┼───┼───┼───┤
7 │   │   │   │   │   │   │   │   │   │
  ├───┼───┼───┼───┼───┼───┼───┼───┼───┤
6 │   │   │   │   │   │   │   │   │   │
  ├───┼───┼───┼───┼───┼───┼───┼───┼───┤
5 │   │   │   │   │   │   │   │   │   │
  ├───┼───┼───┼───┼───┼───┼───┼───┼───┤
4 │   │   │   │   │   │   │   │   │   │
  ├───┼───┼───┼───┼───┼───┼───┼───┼───┤
3 │   │   │   │   │   │   │   │   │   │
  ├───┼───┼───┼───┼───┼───┼───┼───┼───┤
2 │   │   │   │   │ K │   │   │   │   │
  ├───┼───┼───┼───┼───┼───┼───┼───┼───┤
1 │   │   │   │   │   │   │   │   │   │
  └───┴───┴───┴───┴───┴───┴───┴───┴───┘
    a   b   c   d   e   f   g   h   i

Locations


CELL Integration

This example demonstrates CELL’s 2D coordinate system using:

Each position is uniquely identified by combining both dimensions (e.g., e1, e9), demonstrating how CELL’s systematic approach works for 2D board games. Note that this differs from traditional shōgi notation, which uses number-then-letter format (e.g., 5e), while CELL uses letter-then-number format.