Sunday, August 7, 2011

HELP NEEDED ON TURBO PASCAL PROGRAM BY JUNE 7TH PLEASE!!?

I am making the game known as battleship for my project. I know that i'm supposed to do my own work, but I am really stuck at these two parts. The first problem I am having is that I made three categories in order to randomize the coordinates of the ships. The grid is 5 x 5 and there are two ships, which take up four boxes each. One category makes both ships vertical, the second category makes them both horizontal and the third category makes one ship horizontal and the other vertical. I have already made these categories, but when I try to randomize it, only category 1 works. Please help me. The second problem I am having is that the grid for battleship has letters going down the first colomn and numbers going across the top row. I do not know how to make the program work so that I can enter both a letter and a number to place the coordinate. All that works right now is putting two numbers, one would stand for a letter. For example, I would put the number 3 in order to stand for the letter "C" because it is the third letter of the alphabet. So if I was going to enter the coordinate C3, I would actually have to type in 3 3. I dont know how to make it so i can type the letter out too. The first problem I had is the most important to me at the moment, the second is important too, but i NEED to know the answer to my first problem. So please, if anyone out there can get the answer to me by Monday June 7th, 2010, I would be extremely grateful to you. You can e-mail me at mystery.zone@hotmail.com. Thank you.

No comments:

Post a Comment