2780697235
Make World::checkEffects non-const and provide its implementation. Add RandomBot implementation and declare a private randomNumber helper. Add a simple main() entrypoint.
15 lines
289 B
C++
15 lines
289 B
C++
#pragma once
|
|
|
|
#include "BaseRobot.h"
|
|
|
|
class World;
|
|
|
|
class RandomBot : public BaseRobot {
|
|
/* A robot that digs at a random depth */
|
|
public:
|
|
RandomBot ( const int startX, const int startY );
|
|
int mine ( World& world ) override;
|
|
private:
|
|
int randomNumber();
|
|
};
|