Implement World rearrange and add RandomBot and main

Make World::checkEffects non-const and provide its implementation.
Add RandomBot implementation and declare a private randomNumber helper.
Add a simple main() entrypoint.
This commit is contained in:
2026-04-15 14:08:52 +02:00
parent 22e8ea8d46
commit 2780697235
5 changed files with 83 additions and 4 deletions
+2
View File
@@ -9,4 +9,6 @@ class RandomBot : public BaseRobot {
public:
RandomBot ( const int startX, const int startY );
int mine ( World& world ) override;
private:
int randomNumber();
};
+1 -1
View File
@@ -24,7 +24,7 @@ class World {
void rearrange ();
// stage 3
int checkEffects ( int x, int y ) const;
int checkEffects ( int x, int y );
private:
int _sizeX, _sizeY, _sizeZ;