#include "../include/DigDeepBot.h" #include "../include/World.h" DigDeepBot::DigDeepBot ( const int startX, const int startY ) : BaseRobot ( "DigDeepBot", startX, startY ) {} int DigDeepBot::mine ( World &world ) { /* Mine up to three positive blocks from the current column, scanning from top depth to bottom depth. Complexity: O(z) where z = column depth */ int total = 0; for ( int i = 0; i < 3; ++i ) { int mined = world.mine( x_, y_ ); if ( mined <= 0 ) break; total += mined; } score_ += total; return total; }