Skip to content

Latest commit

 

History

History
37 lines (23 loc) · 1.08 KB

README.md

File metadata and controls

37 lines (23 loc) · 1.08 KB

KNIGHTS MIN MOVES

Description

A program that, based on the entered starting and ending coordinates of the knight, determines the minimum number of steps needed to get from the starting field to the ending field and prints each field over which the knight crossed (the path).

Running

To run the program, follow these commands:

  1. Open the terminal in the where src files are.
  2. Run command: g++ main.cpp minMoves.cpp minMoves.h -o main
  3. Run: main.exe

Demonstration of functionalities

INPUT (valid):

12

OUTPUT:

13

INPUT (invalid):

14

Author