I used a methol to generate random maze but there is a problem with rand() so it can generate only 1 maze ! Help!
Use 2,4,6,8 or cursor key to move. You must try to find some where look like to win.
Jump to content
Posted 05 November 2006 - 11:31 PM
Posted 06 November 2006 - 01:25 AM
Posted 06 November 2006 - 05:28 PM
Posted 06 November 2006 - 11:17 PM
A simple and efficient way to set a random seed is by using the internal clock. I'm not a C/C++ expert, but Orwell is probably talking about something like this:
No... How to initialize it??? Orwell, are you talking about gbr_read_byte(IO_RANDMEM))?
#include <ctime> ... srand(time(NULL)) ... < call rand() as needed >
Posted 06 November 2006 - 11:27 PM
0 members, 0 guests, 0 anonymous users