feat: implement safe state presentation and bounded serialization

This commit is contained in:
2026-08-28 23:04:04 +03:00
parent a691783f58
commit 97bebfd8fb
6 changed files with 205 additions and 5 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 test_bot_player test_game_lifecycle
all: test_command_queue test_game_domain test_bot_player test_game_lifecycle test_state_presenter
test_command_queue: test_command_queue.c ../../src/command_queue.c ../../src/application.c
$(CC) $(CFLAGS) $^ -o $@
@@ -11,6 +11,7 @@ run: all
./test_game_domain
./test_bot_player
./test_game_lifecycle
./test_state_presenter
test_game_domain: test_game_domain.c ../../src/fleet_generator.c ../../src/game_engine.c
$(CC) $(CFLAGS) $^ -o $@
@@ -21,5 +22,8 @@ test_bot_player: test_bot_player.c ../../src/bot_player.c ../../src/fleet_genera
test_game_lifecycle: test_game_lifecycle.c ../../src/session_manager.c ../../src/game_lifecycle.c ../../src/fleet_generator.c ../../src/game_engine.c
$(CC) $(CFLAGS) $^ -o $@
test_state_presenter: test_state_presenter.c ../../src/state_presenter.c
$(CC) $(CFLAGS) $^ -o $@
clean:
rm -f test_command_queue test_game_domain test_bot_player test_game_lifecycle
rm -f test_command_queue test_game_domain test_bot_player test_game_lifecycle test_state_presenter