summaryrefslogtreecommitdiff
path: root/lib/chessh/ssh/screens/board.ex
blob: 7b220524962f5be0eb456cf2cc944ff92a38e250 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
defmodule Chessh.SSH.Client.Board do
  use Chessh.SSH.Client.Screen
  alias Chessh.SSH.Client.State

  def render(%State{} = _state) do
    @ascii_chars["pieces"]["white"]["knight"]
  end

  def handle_input(action, state) do
    case action do
      "q" -> state
      _ -> state
    end
  end
end