public string toDebugStr() { string debugStr = "piece of player " + (player.id + 1); if (moveCells.Count != 0) { debugStr += " - move cells: "; debugStr += CollectionUtils.CollToString(moveCells, cell => { return(cell.toDebugStr()); }); } else { debugStr += " (no move cell)"; } return(debugStr); }