Chess Knight's recursive movement on the board.

Completado Publicado Apr 21, 2004 Pagado a la entrega
Completado Pagado a la entrega

In not more than 175 lines of code and using functions readInput, moveKnight,and printcoord among others. code the knight's recursive L- shaped movement from start coordinates to end coordinates and print all such coordinates pairs it passes through in this manner: (x,y) -> (c,d) etc. No coordinate pairs should be explored more than ONCE in a single tour. The knight must first try each of all eight possible moves from its starting point :{(x+2, y+1) or (x+2,y-1)or(x-2, y+1) or (x-2,y-1) or(x+1, y+2) or (x-1,y+2) or (x+1, y-2) or (x-1,y-2)} and ask if it can get to the end from such a point. If yes, it moves and the tour ends. Else, it tries another of the eight possible moves say(x-2, y+1) and asks if it can get to the end point from there. If yes, it moves and the tour end. ELse, the process continues RECURSIVELY. When it gets to its destination, function "printCoord" prints all such paths as coordinate pairs as shown [url removed, login to view] function "main," the user is asked to enter the start and end coordinates. The knight can not make a move outside to the 8 by 8 board. Function "readInput" only reads in the start and end coordinates one after the other and returns them. Function "moveKnight" must be recursive in nature and function. The program must end after a single tour. It should NOT ask the user if he wants to take another tour.

## Deliverables

1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.

2) Deliverables must be in ready-to-run condition, as follows (depending on the nature of the deliverables):

a) For web sites or other server-side deliverables intended to only ever exist in one place in the Buyer's environment--Deliverables must be installed by the Seller in ready-to-run condition in the Buyer's environment.

b) For all others including desktop software or software the buyer intends to distribute: A software installation package that will install the software in ready-to-run condition on the platform(s) specified in this bid request.

3) All deliverables will be considered "work made for hire" under U.S. Copyright law. Buyer will receive exclusive and complete copyrights to all work purchased. (No GPL, GNU, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site per the coder's Seller Legal Agreement).

## Platform

The program needs to run on a UNIX and XWIN32 version 6.0 environments. The language is c. prefer " scanf() and printf() " overr getchar() and putschar().

Ingeniería Consolas de juegos Diseño de juegos MySQL PHP Arquitectura de software Verificación de software

Nº del proyecto: #3182568

Sobre el proyecto

4 propuestas Proyecto remoto Activo Apr 22, 2004

Adjudicado a:

directsoftvw

See private message.

$25.5 USD en 4 días
(73 comentarios)
5.8

4 freelancers están ofertando un promedio de $22 por este trabajo

utopiaprogr

See private message.

$21.25 USD en 4 días
(62 comentarios)
5.4
baazilvw

See private message.

$17 USD en 4 días
(11 comentarios)
5.1
melgoto

See private message.

$25.5 USD en 4 días
(0 comentarios)
0.0