I Challenge You!

Feb 27, 2013 at 1:54am
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 Feb 27, 2013 at 1:55am
Feb 27, 2013 at 3:01am
Who writes a program to crash?
Feb 27, 2013 at 6:47pm
No one... what kind of question is that?
Mar 6, 2013 at 9:54pm
bump
Mar 6, 2013 at 10:12pm
I think I could make this game, but with graphic.
Mar 6, 2013 at 10:33pm
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 Mar 6, 2013 at 10:33pm
Mar 7, 2013 at 6:31pm
It's a prompt, even I am working on it....
Topic archived. No new replies allowed.