Skip to content

A program written in dotty to calculate a piece's tour on a 10*10 chessboard

Notifications You must be signed in to change notification settings

ashwinbhaskar/piece-tour

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Piece Tour

A program to find out a tour path for a chess piece from a starting cell position. The contraints for moving the piece are:

a) The piece can move 3 spaces either North, East, South, or West.

b) The piece can move 2 spaces diagonally: Northeast, Southeast, Southwest, or Northwest.

c) Each space can only be visited once.

Usage

The program takes the starting cell position of the piece, as the command line argument. The cell position is defined as X and Y coordinate. The program has a Makefile

Test

make test

Run

To run the program with starting cell as 3,4 run

make run X=3 Y=4

About

A program written in dotty to calculate a piece's tour on a 10*10 chessboard

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published