



package com.hearthsim;

import com.hearthsim.model.BoardModel;
import com.hearthsim.card.Card;
import com.hearthsim.util.HearthAction;

import com.hearthsim.exception.HSException;

public class BoardLogger {
  private final org.slf4j.Logger log = org.slf4j.LoggerFactory.getLogger(BoardLogger.class);
  public void log(BoardModel board) throws HSException {
    String str = "";
    log.warn("------BOARDSTATE------");
    log.warn(board.toString());
    for (Card card : board.getCurrentPlayer().getHand()) {
      str = str + card.getName();
      str = str + ", ";
    }
    log.warn("P1 Hand : " + str);
    str = "";
    for (Card card : board.getWaitingPlayer().getHand()) {
      str = str + card.getName();
      str = str + ", ";
    }
    log.warn("P2 Hand : " + str);
  }
}

@@ -92,16 +92,57 @@
 d.Card;%0A
+import com.hearthsim.card.minion.Minion;%0A
 import c
@@ -631,9 +631,9 @@
 n(%22P
-1
+0
  Han
@@ -656,24 +656,205 @@
   str = %22%22;%0A
+    for (Minion minion : board.getCurrentPlayer().getMinions()) %7B%0A      str = str + minion.getName();%0A      str = str + %22, %22;%0A    %7D%0A    log.warn(%22P0 Field : %22 + str);%0A    str = %22%22;%0A
     for (Car
@@ -983,9 +983,9 @@
 n(%22P
-2
+1
  Han
@@ -998,14 +998,195 @@
 + str);%0A
+    str = %22%22;%0A    for (Minion minion : board.getWaitingPlayer().getMinions()) %7B%0A      str = str + minion.getName();%0A      str = str + %22, %22;%0A    %7D%0A    log.warn(%22P1 Field : %22 + str);%0A
   %7D%0A%7D%0A

Update BoardLogger