#ifndef BROWNIANH #define BROWNIANH #include #include "wabbit.h" using namespace std; class brownian: public virtual wabbit { public: brownian(game *initial_g, unsigned initial_x, unsigned initial_y, char initial_c) : wabbit(initial_g, initial_x, initial_y, initial_c) {} void decide(int *dx, int *dy) const { *dx = rand() % 3 - 1; *dy = rand() % 3 - 1; } }; #endif