CalvinMT / ProjetS6-Saboteur

Planning du projet --->
https://docs.google.com/spreadsheets/d/16b8M3hPNzg6T-YhttESJdBX1u5s_hPK-_SLj5QUbDxE/edit#gid=1854144357
1 stars 0 forks source link

Evaluation d'un coup #35

Open oloar opened 7 years ago

oloar commented 7 years ago

Donner une valeur à un coup pour permettre d'effectuer un MiniMax. Prendre en compte :

oloar commented 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 :

e-mez commented 7 years ago

"choosePosition" works with 'getPossiblePositions" which contains cells where Nodes can be added to the Mine.

oloar commented 7 years ago

"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 :