Knight

Knight The knight objects.

Contents

Syntax

varargout = Knight(method, varargin)

Description

This m-function contains the variables and methods for all knights.

Inputs:

Outputs:

Example

Add a white knight on field c4 [5,3]. Knight('init',[5 3],1,'Bc4')

Move the knight from c4 [5,3] to d5 [4 4]. Knight('move',[5 3],[4 4])

Determine the knights best move from c4 Knight('best_move',[5 3])

See also

Chess, legal_move, show, remove_figure, Value_of_Figure

Signature