I need a c programmer

Instead of using a knight, we are going to use a bishop, a piece that moves diagonally. If you are familiar with chess, you've probably already concluded that this is impossible, since a bishop on a white square cannot occupy a black square. But what about a special bishop? A common mistake is to move a bishop diagonally and capture an opponent's piece 1 square off from the diagonal, which is normally an illegal move. But let's suppose that this is allowed a finite number of times. We'll call this piece the super-bishop.

Make a C program to attempt to solve the super-bishop's tour. It should take a board size, given as the first (optional) argument to the command-line program. If unspecified, this should default to 8. We assume that the board is always a square, so 8 means 8x8. The second (optional) argument is the number of times the bishop can jump to a square off the diagonal. If unspecified, this should default to 1. Check that the arguments specified by the user make sense. Zero would be a dull, but valid, value for the second argument. Zero would be an invalid value for the first argument, though.

Store each visit as an integer, using 1 as the starting location. (Hint: use a special value like 0 to mark un-visited squares.) Set the starting row and column such that they can easily be changed. While you may use 1,1 as the starting point, it should be easy to change the starting point to something else. For example, you could have the user specify this as optional 3rd and 4th arguments.

You will need to allocate memory for the board, based on the size the user specifies. Any memory allocated should be freed when you are done with it. Also, the best way to approach a problem like this is to use recursion. Remember that passing by reference means that there is only one copy of the data, and for this problem, you will need to keep redundant copies of the data. That is, if you move the piece now, how do you know you won't want to undo this move later? In a recursive solution, you would keep a copy of the current board (i.e. the computer implicitly keeps it for you on the stack).

Output the solution to standard output. If a solution cannot be found, output the partial solution that comes the closest.

Kemahiran: Pengaturcaraan C, Pengaturcaraan C++, Pengaturcaraan C#, Kejuruteraan Perisian, PHP

Lihat lagi: need boonex programmer developer subscription based job site, i m a designer and i need a programmer for my portfolio website, i need a executive producer uk based, i need a programmer columbus ohio, i need a programmer for linux, i need a programmer for my invention, i need a programmer for video analysis, i need a programmer for xslx, i need a programmer in bhopal, i need a programmer in edinburgh, i need a programmer in hong kong, i need a programmer in ny, i need a programmer that knows c 11, i need a programmer to design a first person maze, i need a programmer to develop a program for me, i need a programmer to develop an app in nz, i need a programmer who can build tv keno games, i need a programmer who can do a sentiment analysis, i need a programmer, i need distributor medicine software (web based)

Tentang Majikan:
( 0 ulasan ) Atlanta, United States

ID Projek: #28194593

7 pekerja bebas membida secara purata $143 untuk pekerjaan ini


I am very proficient in c/c++. I have 17 years c/c++ developing experience now, and have worked for more than 10 years. My work is online game developing, and mainly focus on server side, using c++ under Linux environm Lagi

$80 USD dalam sehari
(198 Ulasan)

Thanks for your project. I have 30 years experience programming in C. I will create a super C program for a tour by super-bishop as described in the attachment. A milestone payment for the full budget for this proje Lagi

$118 USD dalam 3 hari
(199 Ulasan)

Hello. I'm pretty happy to bid on this interesting project. I read your description carefully and I think that I am the developer you are looking for and are suitable for this task. I have rich experience in C/C++ Prog Lagi

$150 USD dalam 3 hari
(15 Ulasan)

Hello. I'm knowledgeable about the C programming language and I can help you with your project. Let's chat for doing business.

$30 USD dalam 2 hari
(14 Ulasan)

Dear Client, Hope you are doing great. I have completely gone through your requirement that you are looking for highly skilled, qualified, and experienced software development team to build “Chess Game" Relevant lin Lagi

$20 USD dalam 7 hari
(1 Ulasan)

How are you? I have read your description carefully. I am 100% confident. this is algorithmic problem, just need bit c tech, I was ICPC contestant, so i used to solved such problems alwasys.I can finish your works few Lagi

$50 USD dalam sehari
(1 Ulasan)

I am software Engineer.I am eagerly waiting to work with this [login to view URL] very much interesting.I complete my work with perfection.

$556 USD dalam 7 hari
(0 Ulasan)