Loading tablebase…
<% @status == :blocked -> %>Tablebase unavailable
{@blocked_reason}
<% @status == :solved -> %>{if @endgame.result == :draw, do: "Draw held!", else: "Solved!"}
<% @status == :failed -> %>Failed
{if @endgame.result == :draw, do: "That move loses the draw.", else: "That move throws away the win."}
<%= if @best_move do %>Best was: {@best_move}
<% end %> <% @awaiting_reply -> %>Opponent is replying…
<% @last_grade == :optimal -> %>Optimal move
<% @last_grade == :winning -> %>{if @endgame.result == :draw, do: "Keeps the draw — but not the sharpest", else: "Winning — but not the sharpest"}
<% @last_grade == :losing -> %>{if @endgame.result == :draw, do: "Losing move — this loses the draw", else: "Losing move — this throws away the win"}
<% @last_grade == :unknown -> %>Could not grade that move
<% true -> %>Make a move to have it graded.
<% end %>Moves:
No Moves
<% else %> <%= for {[white_ply, black_ply], move_no} <- move_rows(@plies, @endgame.color) do %>