mirror of
https://github.com/magefree/mage.git
synced 2025-12-25 04:52:07 -08:00
dev, AI: improved AI logs:
* added object and targets info for possible actions; * added detailed score for each action in possible action chains; * added stack info; * improved output for easy read and analyse;
This commit is contained in:
parent
e3de777bd5
commit
add2d0473e
7 changed files with 281 additions and 163 deletions
|
|
@ -295,6 +295,9 @@ public class GameState implements Serializable, Copyable<GameState> {
|
|||
playerList.add(player.getId());
|
||||
}
|
||||
|
||||
/**
|
||||
* AI related: monitor changes in game state (if it changed then AI must re-calculate current actions chain)
|
||||
*/
|
||||
public String getValue(boolean useHidden) {
|
||||
StringBuilder sb = threadLocalBuilder.get();
|
||||
|
||||
|
|
@ -333,6 +336,9 @@ public class GameState implements Serializable, Copyable<GameState> {
|
|||
return sb.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* AI related: monitor changes in game state (if it changed then AI must re-calculate current actions chain)
|
||||
*/
|
||||
public String getValue(boolean useHidden, Game game) {
|
||||
StringBuilder sb = threadLocalBuilder.get();
|
||||
|
||||
|
|
@ -386,6 +392,9 @@ public class GameState implements Serializable, Copyable<GameState> {
|
|||
return sb.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* AI related: monitor changes in game state (if it changed then AI must re-calculate current actions chain)
|
||||
*/
|
||||
public String getValue(Game game, UUID playerId) {
|
||||
StringBuilder sb = threadLocalBuilder.get();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue