web analytics

Computer Programming Difficulties

computer programming difficulties
computer programming difficulties
Help with a computer program written in Java?

I have a little trouble writing a program in java for my computer Science AP class. He called "Java Joe and the Temple of Doom." For the program, I need to use a 2D array (10 columns, lines 10) and "Java Joe's got to be able to move into the temple and can not get out of bounds. Temple consists of 100 rooms (hence 10 columns, 10 lines) and each chamber may contain an element and there are 8 items, items placed randomly in the halls of the temple. what I want is not the program itself, but the logic of running, a few lines of code with some explanations behind him and I know how to add a later date. ideas or explanations to make a success of these guidelines are welcome.

Assuming you know how to make a 2D array, all you have to do is different characters of the matrix can mean different things. (For example, J = "java Joe", 0 = empty, etc.) to The move, just know where to move and change characters. (Eg Suppose you move to a 0. Making a new space and the space J a child from 0) If you add additional information on how exactly it will be in motion that could provide a clearer picture.

Leave a Reply