Spin-Off n. 2:

Chess Pieces' Moves

The Subject

We have already had a close look at the Knight’s move in our project, but what would an ontology based on the chess pieces’ moves look like?

Classes:

  • Pieces
  • Cells
  • Directions
  • Types of moves
  • Stages of moves

Individuals:

  • Knight
  • Horizontal direction
  • Vertical direction
  • Diagonal

Elements

Generic Use Cases

Level 1

We now identify a generic pattern to represent the moves of chess pieces. Every move is determined by:

  • A trajectory (horizontal, vertical, diagonal);
  • A direction (forward, bacward, left, right);
  • The number of squares (1 to 7 based on the piece and on the free space availability);
  • If it’s composed by a single stage or multiple stages (see: the Knight is the only piece moving in two stages: first horizontal then vertical or vice versa).

This model doesn’t take in account the pawn moves, being it the only piece that moves forward only. Every other piece moves forward, backward, left or right.

The Knight moves two squares vertically and one square horizontally (L2) or two squares horizontally and one square vertically (L1). This is a possible ontology for his move:

Knight's move ontology
  • Where L1 and L2 are the disjointed L-moves that can be applied;
  • H2C is the stage of a move and stands for “Horizontal 2 cells”;
  • V1C is the other stage and stands for “Vertical 1 cell” and so on.

It is clear from the graph that the diagonal direction has nothing to do with the knight move.

Knight's move ontology visualized on OWLGrEd

Same ontology, visualized on OWLGrEd:

2022, Diego Chillo & Laura Travaglini