Code covered by the BSD License  

Highlights from
Chess with "Greedy Edi"

image thumbnail

Chess with "Greedy Edi"

by

 

07 Nov 2009 (Updated )

Play chess against "Greedy Edi".

matrix2xy

matrix2xy

matrix2xy matrix position to chess xy position

Contents

Syntax

xy_pos = matrix2xy(m_pos)

Description

A position is given in matrix notation and the chess xy position is required.

Inputs:

  • m_pos ... position in matrix notation (i.e. [2 4] row two, column four)

Outputs:

  • xy_pos ... position in chess xy notation ([2 4]-> [4 7])

Example

Transform a position from matrix notation into chess xy position

 xy_pos = matrix2xy([2 4])
xy_pos =

     4     7

See also

matrix2chess, xy2matrix

Signature

  • Copyright 2006 W.Garn

Contact us