feat: implement the ESP32 opponent

This commit is contained in:
2026-08-28 22:46:34 +03:00
parent 65eca822c0
commit ec1ff20ddd
7 changed files with 385 additions and 7 deletions
+6 -2
View File
@@ -1,7 +1,7 @@
CC ?= cc
CFLAGS ?= -std=c11 -Wall -Wextra -Werror -I../../include
all: test_command_queue test_game_domain
all: test_command_queue test_game_domain test_bot_player
test_command_queue: test_command_queue.c ../../src/command_queue.c ../../src/application.c
$(CC) $(CFLAGS) $^ -o $@
@@ -9,9 +9,13 @@ test_command_queue: test_command_queue.c ../../src/command_queue.c ../../src/app
run: all
./test_command_queue
./test_game_domain
./test_bot_player
test_game_domain: test_game_domain.c ../../src/fleet_generator.c ../../src/game_engine.c
$(CC) $(CFLAGS) $^ -o $@
test_bot_player: test_bot_player.c ../../src/bot_player.c ../../src/fleet_generator.c ../../src/game_engine.c
$(CC) $(CFLAGS) $^ -o $@
clean:
rm -f test_command_queue test_game_domain
rm -f test_command_queue test_game_domain test_bot_player