Difference between revisions of "Origin Square"

From Chessprogramming wiki
Jump to: navigation, search
(Created page with "'''Home * Chess * Squares * Origin Square''' The '''Origin Square''' of a move, also called initial square, source square, from- or departure...")
 
 
Line 1: Line 1:
 
'''[[Main Page|Home]] * [[Chess]] * [[Squares]] * Origin Square'''
 
'''[[Main Page|Home]] * [[Chess]] * [[Squares]] * Origin Square'''
  
The '''Origin Square''' of a [[Moves|move]], also called initial square, source square, from- or departure square, is the square occupied by a [[Pieces|piece]] about to move. The from-square is usually part of the [[Encoding Moves|move code]], while it is derived from giving the moving piece and [[Target Square|target square]] in [[Algebraic chess notation#SAN|Standard Algebraic Notation]], where the origin square is (partly) omitted except to resolve ambiguity.   
+
The '''Origin Square''' of a [[Moves|move]], also called initial square, source square, from- or departure square, is the square occupied by a [[Pieces|piece]] about to move. The from-square is usually part of the [[Encoding Moves|move code]], while it is derived from giving the moving piece and [[Target Square|target square]] in [[Algebraic Chess Notation#SAN|Standard Algebraic Notation]], where the origin square is (partly) omitted except to resolve ambiguity.   
  
 
In [[Pieces versus Directions#PieceByPiece|piece wise]] [[Move Generation|move generation]], the origin squares are subject of an outer loop over all pieces, while the target squares are subject of an inner loop. [[Pieces versus Directions#DirectionWise|Direction-wise]] move generation traverses target squares per direction and generally requires more effort to determine the from-squares.
 
In [[Pieces versus Directions#PieceByPiece|piece wise]] [[Move Generation|move generation]], the origin squares are subject of an outer loop over all pieces, while the target squares are subject of an inner loop. [[Pieces versus Directions#DirectionWise|Direction-wise]] move generation traverses target squares per direction and generally requires more effort to determine the from-squares.

Latest revision as of 16:20, 10 May 2018

Home * Chess * Squares * Origin Square

The Origin Square of a move, also called initial square, source square, from- or departure square, is the square occupied by a piece about to move. The from-square is usually part of the move code, while it is derived from giving the moving piece and target square in Standard Algebraic Notation, where the origin square is (partly) omitted except to resolve ambiguity.

In piece wise move generation, the origin squares are subject of an outer loop over all pieces, while the target squares are subject of an inner loop. Direction-wise move generation traverses target squares per direction and generally requires more effort to determine the from-squares.

See also

Forum Posts

Up one Level