can somebody help me with this program??
i have to program a matrix with n column and n row and it should be able to find a path moving like a horse in chess game(L) that touch every point of the matrix once. the program consist in enter the location where i want to start (n,n) n=1,2,3,4,5 and the computer will calculate the path...
ex: starting from (1,1) we have:
1 6 15 10 21
14 9 20 5 16
19 2 7 22 11
8 13 24 17 4
25 18 3 12 23
you can see that the sequence of the numbers is in L. i need at least a start head
nick30266
0
Newbie Poster
Recommended Answers
Jump to PostI like this one a lot.
Here is step 1:namespace MatrixProblem { class CMatrixProblem { static void Main(string[] args) { int[,] arr_arr_int = new int[5,5] { { 1, 6,15,10,21}, {14, 9,20, 5,16}, {19, 2, 7,22,11}, { 8,13,24,17, 4}, {25,18, 3,12,23} }; } } }
Jump to Postcan somebody help me with this program??
i have to program a matrix with n column and n row and it should be able to find a path moving like a horse in chess game(L) that touch every point of the matrix once. the program consist in enter the location …
All 5 Replies
thines01
401
Postaholic
Team Colleague
Featured Poster
Geekitygeek
480
Nearly a Posting Virtuoso
thines01
401
Postaholic
Team Colleague
Featured Poster
Geekitygeek
480
Nearly a Posting Virtuoso
thines01
401
Postaholic
Team Colleague
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.