37 lines
1.1 KiB
Plaintext
37 lines
1.1 KiB
Plaintext
---
|
|
title: Bot - Diagramme de classes (complet)
|
|
---
|
|
classDiagram
|
|
|
|
class AlphaBetaBot{
|
|
-me: Player
|
|
-maxDepth: int
|
|
-rng: Random
|
|
|
|
+AlphaBetaBot(Player p, int maxDepth)
|
|
+giveYourMove(IBoard board): AbstractPly
|
|
-alphaBeta(IBoard board, int depth, int alpha, int beta): int
|
|
-terminalValue(IBoard board): int
|
|
-evaluate(IBoard board): int
|
|
-listMoves(IBoard board): List<AbstractPly>
|
|
}
|
|
|
|
class DivineBot {
|
|
-me : Player
|
|
-maxDepth : int
|
|
-rng : Random
|
|
|
|
+DivineBot(Player p, int maxDepth)
|
|
+giveYourMove(IBoard board) : AbstractPly
|
|
-alphaBeta(IBoard board, int depth, int alpha, int beta) : int
|
|
-evaluate(IBoard board) : int
|
|
-isIsolated(AvalamBoard b, int r, int c) : boolean
|
|
-isVulnerable(AvalamBoard b, int r, int c, Color enemyColor) : boolean
|
|
-listMoves(IBoard board) : List~AbstractPly~
|
|
}
|
|
|
|
class IdiotBot{
|
|
-rng: Random
|
|
+IdiotBot(Player p)
|
|
+giveYourMove(IBoard board): AbstractPly
|
|
} |