From c8122e8b70b8bc2befc195ca945c752ed12fb302 Mon Sep 17 00:00:00 2001 From: HansRobo Date: Sun, 4 Aug 2024 15:40:46 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=84=20synced=20local=20'docs/ai'=20wit?= =?UTF-8?q?h=20remote=20'docs'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/ai/attacker.md | 58 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 docs/ai/attacker.md diff --git a/docs/ai/attacker.md b/docs/ai/attacker.md new file mode 100644 index 0000000..8323f7d --- /dev/null +++ b/docs/ai/attacker.md @@ -0,0 +1,58 @@ +# Attackerスキル + +- ENTRY_POINT +- FORCED_PASS +- CUT_THEIR_PASS +- STEAL_BALL +- REDIRECT_GOAL_KICK +- GOAL_KICK +- CLEARING_KICK +- STANDARD_PASS +- LOW_CHANCE_GOAL_KICK +- MOVE_BALL_TO_OPPONENT_HALF +- RECEIVE_BALL + +```mermaid +graph TD + ENTRY_POINT(ENTRY_POINT) -.-> FORCED_PASS_C{味方セットプレー?} +subgraph セットプレー + FORCED_PASS_C -- YES --> FORCED_PASS +end + +%%subgraph 敵ボール対処 +%% STEAL_BALL_C +%%end + +subgraph シュートチャンスは逃さない + +end + +subgraph 敵ボール対処 + FORCED_PASS_C -- NO --> CUT_THEIR_PASS_C{動いている敵ボール?} + CUT_THEIR_PASS_C -- NO --> STEAL_BALL_C{止まっている敵ボール & ボールに敵が近い?} + CUT_THEIR_PASS_C -- YES --> CUT_THEIR_PASS +end + +subgraph シュートチャンスは逃さない + STEAL_BALL_C -- NO --> REDIRECT_GOAL_KICK_C{ボールが遠い&ゴールが見えている} + REDIRECT_GOAL_KICK_C -- NO --> GOAL_KICK_C{ボールが近い&ゴールが見えている} + REDIRECT_GOAL_KICK_C -- YES --> REDIRECT_GOAL_KICK + GOAL_KICK_C -- YES --> GOAL_KICK +end + +subgraph 敵ボール対処 + STEAL_BALL_C -- YES --> STEAL_BALL +end + +subgraph 状況改善 + GOAL_KICK_C -- NO --> CLEARING_KICK_C{やばい状況?(未実装)} + CLEARING_KICK_C -- NO --> STANDARD_PASS_C{パスできそうな相手がいる?} + CLEARING_KICK_C -- YES --> CLEARING_KICK + STANDARD_PASS_C -- YES --> STANDARD_PASS + STANDARD_PASS_C -- NO --> LOW_CHANCE_GOAL_KICK_C{低確率でもシュートできそう(相手コート限定)?} + LOW_CHANCE_GOAL_KICK_C -- NO --> MOVE_BALL_TO_OPPONENT_HALF_C{自コートでボールを持っている?} + LOW_CHANCE_GOAL_KICK_C -- YES --> LOW_CHANCE_GOAL_KICK + MOVE_BALL_TO_OPPONENT_HALF_C -- YES --> MOVE_BALL_TO_OPPONENT_HALF + MOVE_BALL_TO_OPPONENT_HALF_C -- NO --> RECEIVE_BALL +end +```