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 && @plies != [] do %>You played {List.last(@plies).san}; 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 %>Best move unavailable here
{@review_blocked}
<% @review_tablebase -> %>Best move:
{best_move_text(@review_tablebase) || "—"}
<%= if played_ply = played_ply_at(@line, @review_index) do %>Played: {played_ply.san}
<% end %> <% true -> %>No best move.
<% end %>Moves:
No Moves
<% else %> <%= for {[white_ply, black_ply], move_no} <- move_rows(plies, @endgame.color) do %>