I Challenge You!

Try to make the best version of this! Well, credit goes to Bazzy, I think I could use some of the stuff you could place on here, the results may be interesting.

Bazzy wrote:

________________________________________________________________________________
Dungeon Crawl
Requires:
variables, data types, and numerical operators
basic input/output
logic (if statements, switch statements)
loops (for, while, do-while)
arrays

Make a program that outputs a simple grid based gameboard to the screen using either numbers or characters.
i.e.

. . . . . . . . . .
. G . . . . . . . .
. . . . . . T . . .
. . . . . . . . . .
. . . . T . . . . .
. . . . . . T . . .
. . . . . . . . . X


or

0 0 0 0 0 0 0 0 0 0
0 5 0 0 6 0 0 0 0 0
0 0 0 0 0 0 7 0 0 0
0 0 0 0 0 0 0 0 0 0
0 0 0 7 0 0 0 0 0 0
0 0 0 0 0 0 7 0 0 0
0 0 0 0 0 0 0 0 0 4


Allow the user (marked by G in the example) to move either up, down, left, or right each turn. If the player steps on a trap then they lose. If the make it to the treasure 'X' then they win.

★★ Add enemies that move randomly in any direction once per turn. (enemies just like traps cause the player to lose if touched)

HINT: Don't let the player move off the gameboard! You program will crash if they move off the top or bottom of the board!
(the same holds true for enemies)
Last edited on
Who writes a program to crash?
No one... what kind of question is that?
bump
I think I could make this game, but with graphic.
HINT: Don't let the player move off the gameboard! You program will crash if they move off the top or bottom of the board!


What? Not my program.

Oh, and don't ask questions like that without first providing your own solution.
Last edited on
It's a prompt, even I am working on it....
Topic archived. No new replies allowed.