42876c1a93
Introduce health (hp) and damage handling to Robot/BaseRobot interfaces. Add SmartBot implementation. Refactor bot mining and movement to use new World APIs (mine, mineAllPositive, sortPositiveValues). Simplify RandomBot, DigDeepBot, and SortBot logic, rename/overhaul World rearrange/display, and fix several indexing/logic bugs and minor cleanups.
13 lines
267 B
C++
13 lines
267 B
C++
#pragma once
|
|
|
|
#include "BaseRobot.h"
|
|
|
|
class World;
|
|
|
|
/* Robot that mines a random number of positive blocks from its current column. */
|
|
class RandomBot : public BaseRobot {
|
|
public:
|
|
RandomBot ( int startX, int startY );
|
|
int mine ( World &world ) override;
|
|
};
|