summaryrefslogtreecommitdiff
path: root/lib/chessh/ssh/client/board/server.ex
blob: 2e480e7feb0c72038b2f2e844c71840fb0d5d324 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# defmodule Chessh.SSH.Client.Board.Server do
#  use GenServer
#
#  defmodule State do
#    defstruct game_id: nil,
#              binbo_pid: nil
#  end
#
#  def init([%State{game_id: game_id} = state]) do
#    {:ok, binbo_pid} = GenServer.start_link(:binbo, [])
#
#    :syn.join(:games, {:game, game_id})
#    {:ok, state}
#  end
#
#  def handle_cast({:new_move, attempted_move}, %State{game_id: game_id} = state) do
#    {:no_reply, state}
#  end
# end