- Sashité for Developers
- Documentation
- CELL
- 1.0.0
- Examples
- 3D Tic-Tac-Toe
3D Tic-Tac-Toe - Size 3x3x3
CELL Coordinates:
- Dimension 1:
a
,b
,c
- Dimension 2:
1
,2
,3
- Dimension 3:
A
,B
,C
Level A (Bottom) Level B (Middle) Level C (Top)
┌───┬───┬───┐ ┌───┬───┬───┐ ┌───┬───┬───┐
│ │ │ │ 3 │ │ │ │ 3 │ │ │ │ 3
├───┼───┼───┤ ├───┼───┼───┤ ├───┼───┼───┤
│ │ │ │ 2 │ │ │ │ 2 │ │ │ │ 2
├───┼───┼───┤ ├───┼───┼───┤ ├───┼───┼───┤
│ │ │ │ 1 │ │ │ │ 1 │ │ │ │ 1
└───┴───┴───┘ └───┴───┴───┘ └───┴───┴───┘
a b c a b c a b c
Empty squares represented by spaces.
Initial Position
Game start with first X move:
Level A (Bottom) Level B (Middle) Level C (Top)
┌───┬───┬───┐ ┌───┬───┬───┐ ┌───┬───┬───┐
│ │ │ │ 3 │ │ │ │ 3 │ │ │ │ 3
├───┼───┼───┤ ├───┼───┼───┤ ├───┼───┼───┤
│ │ │ │ 2 │ │ X │ │ 2 │ │ │ │ 2
├───┼───┼───┤ ├───┼───┼───┤ ├───┼───┼───┤
│ │ │ │ 1 │ │ │ │ 1 │ │ │ │ 1
└───┴───┴───┘ └───┴───┴───┘ └───┴───┴───┘
a b c a b c a b c
Legend
- X = Player X
- O = Player O
Locations
- X:
b2B
Next Position
Position after O move:
Level A (Bottom) Level B (Middle) Level C (Top)
┌───┬───┬───┐ ┌───┬───┬───┐ ┌───┬───┬───┐
│ │ │ │ 3 │ │ │ │ 3 │ │ │ │ 3
├───┼───┼───┤ ├───┼───┼───┤ ├───┼───┼───┤
│ │ │ O │ 2 │ │ X │ │ 2 │ │ │ │ 2
├───┼───┼───┤ ├───┼───┼───┤ ├───┼───┼───┤
│ │ │ │ 1 │ │ │ │ 1 │ │ │ │ 1
└───┴───┴───┘ └───┴───┴───┘ └───┴───┴───┘
a b c a b c a b c
Locations
- X:
b2B
- O:
c2A
Final Position
Position showing a 3D diagonal win:
Level A (Bottom) Level B (Middle) Level C (Top)
┌───┬───┬───┐ ┌───┬───┬───┐ ┌───┬───┬───┐
│ │ │ │ 3 │ │ │ │ 3 │ │ │ X │ 3
├───┼───┼───┤ ├───┼───┼───┤ ├───┼───┼───┤
│ │ │ O │ 2 │ │ X │ O │ 2 │ │ │ │ 2
├───┼───┼───┤ ├───┼───┼───┤ ├───┼───┼───┤
│ X │ │ │ 1 │ │ │ │ 1 │ │ │ │ 1
└───┴───┴───┘ └───┴───┴───┘ └───┴───┴───┘
a b c a b c a b c
Locations
- X:
a1A
,b2B
,c3C
- O:
c2A
,c2B
Winning Line
X wins with 3D diagonal: a1A
→ b2B
→ c3C
CELL Integration
This example demonstrates CELL’s 3D coordinate system using:
- Dimension 1: Latin lowercase letters (
a
throughc
) - Dimension 2: Arabic numerals (
1
through3
) - Dimension 3: Latin uppercase letters (
A
throughC
)
Each position is uniquely identified by combining all three dimensions (e.g., b2A
, c3C
), enabling precise notation for three-dimensional gameplay and complex spatial relationships like diagonal wins across multiple levels.