#ifndef RABBITH #define RABBITH #include //for rand #include //for INT_MIN #include "wabbit.h" using namespace std; class rabbit: public wabbit { int hungry() const {return INT_MIN;} int bitter() const {return INT_MIN;} void decide(int *dx, int *dy) const { *dx = rand() % 3 - 1; *dy = rand() % 3 - 1; } public: rabbit(game *initial_g, unsigned initial_x, unsigned initial_y) : wabbit(initial_g, initial_x, initial_y, 'r') {} }; #endif