Chess Knight's recursive movement on the board.

Đã hoàn thành Đã đăng vào Apr 21, 2004 Thanh toán khi bàn giao
Đã hoàn thành Thanh toán khi bàn giao

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().

Kĩ thuật Game Consoles Thiết kế trò chơi MySQL PHP Kiến trúc phần mềm Kiểm tra phần mềm

ID dự án: #3182568

Về dự án

4 đề xuất Dự án từ xa Apr 22, 2004 đang mở

Được trao cho:

directsoftvw

See private message.

$25.5 USD trong 4 ngày
(73 Đánh Giá)
5.8

4 freelancer chào giá trung bình$22 cho công việc này

utopiaprogr

See private message.

$21.25 USD trong 4 ngày
(62 Nhận xét)
5.4
baazilvw

See private message.

$17 USD trong 4 ngày
(11 Nhận xét)
5.1
melgoto

See private message.

$25.5 USD trong 4 ngày
(0 Nhận xét)
0.0