implement mining functionality in SortBot and add .gitignore

This commit is contained in:
2026-04-15 15:55:26 +02:00
parent 2780697235
commit 6880bd2a41
8 changed files with 180 additions and 41 deletions
+1 -1
View File
@@ -21,7 +21,7 @@ class Game {
void setup ();
void play ( Robot& robot, bool isPlayer );
void checkRearrange ( Robot& robot );
void applyEffects ( Robot& robot, int effect );
void applyEffect ( Robot& robot, int effect );
bool isGameOver() const;
void printScores() const;
void printResult() const;
+1 -1
View File
@@ -14,7 +14,7 @@ class World {
int getSurfaceLevel ( int x, int y ) const;
int mine ( int x, int y );
void display () const;
void display ( int p1x = -1, int p1y = -1, int p2x = -1, int p2y = -1 ) const;
int getSizeX () const { return _sizeX; }
int getSizeY () const { return _sizeY; }