Open oloar opened 7 years ago
Si l'IA est saboteur, la priorité est donnée :
Selon les cartes des autres joueurs il faut valoriser les cartes sabotages (ex : Si un joueur peut, en placant une carte, rejoindre un but, il faut le saboter)
Si l'IA est mineur, la priorité est donnée :
"choosePosition" works with 'getPossiblePositions" which contains cells where Nodes can be added to the Mine.
With IA as Miner, "getPossiblePositions" will help "choosePosition" decide where best to play a tunnel card that leads towards the Goal Card(s).
With IA as Saboteur, "getPossiblePositions" should help "choosePosition" decide where best to play a cul-de-sac card (if the current Card the IA has is a cul-de-sac card).
"choosePosition" works with 'getPossiblePositions" which contains cells where Nodes can be added to the Mine.
getPossiblePosition
do not add anything to the mine. It creates a copy of all accessible positions and remove those not compatible with the given card.
No, getPossiblePosition
should have the same behaviour for both roles. Its purpose is only to return where a card fits.
The choice between the card to place itself should be done in the IA using values assigned to each possible choice.
This value shall use wether the IA is playing :
Donner une valeur à un coup pour permettre d'effectuer un MiniMax. Prendre en compte :