first bot implementation

bot is now able to automatically move, but for now is too skilled, i need to reduce his skills
This commit is contained in:
andrea
2026-03-19 18:49:58 +01:00
parent eac8c59d96
commit 69a8fb9dc4
4 changed files with 25 additions and 5 deletions

View File

@@ -36,7 +36,8 @@ game_statuses game_status= TIMER;
Ball ball(4, 6);
HumanPaddle p1(1, P1_BTN_UP, P1_BTN_BOTTOM);
HumanPaddle p2(4, P2_BTN_UP, P2_BTN_BOTTOM);
// HumanPaddle p2(4, P2_BTN_UP, P2_BTN_BOTTOM);
BotPaddle p2(4, 1);
Engine engine(p1, p2, ball, INITIAL_BALL_DELAY);
Renderer renderer(p1, p2, ball, frame, matrix);