12 lines
823 B
Plaintext
12 lines
823 B
Plaintext
# Task ID: 14
|
|
# Title: Simple AI Implementation (Random + Basic Exclusion)
|
|
# Status: pending
|
|
# Dependencies: 13
|
|
# Priority: high
|
|
# Description: Implement the 'Simple AI' difficulty level. This AI will make random attacks, but with basic exclusion of already attacked cells. It serves as a training partner for new players.
|
|
# Details:
|
|
Create an `AIService` module. For 'Simple AI', implement a strategy that: 1. Generates a list of all untargeted cells on the opponent's board. 2. Randomly selects one cell from this list. 3. Calls the `processAttack` function with the chosen coordinate. Ensure AI decision-making time is <500ms.
|
|
|
|
# Test Strategy:
|
|
Play multiple games against the Simple AI. Verify AI consistently makes moves, does not attack the same spot twice, and adheres to the turn-based system. Check response time.
|