任务
This commit is contained in:
11
tasks/task_015.txt
Normal file
11
tasks/task_015.txt
Normal file
@@ -0,0 +1,11 @@
|
||||
# Task ID: 15
|
||||
# Title: Game Play Loop Integration (Client & Server)
|
||||
# Status: pending
|
||||
# Dependencies: 8, 10, 12, 13, 14
|
||||
# Priority: high
|
||||
# Description: Integrate all core game components (plane placement, attack phase, turn management) into a complete, playable game loop for both player vs. player and player vs. AI modes. This involves extensive WebSocket communication and UI state updates.
|
||||
# Details:
|
||||
Frontend: Implement `GameScreen` component. Display both player's (hidden planes) and opponent's boards. Handle 'your turn' UI, attack target selection, and attack confirmation. Display hit/miss/destroy feedback. Show opponent's moves. Implement round countdown. Backend: Coordinate plane placement phase, transition to battle phase, manage turn timers, handle timeout for attacks (random attack). Broadcast game state changes via WebSocket to all participants.
|
||||
|
||||
# Test Strategy:
|
||||
Conduct full end-to-end tests for PV P and PVE (AI) matches. Verify plane placement, attack sequence, turn switching, hit feedback, and game conclusion. Test round countdown and timeout auto-attack. Check for any desynchronization issues between clients.
|
||||
Reference in New Issue
Block a user