summaryrefslogtreecommitdiff
path: root/lib/chessh/ssh/client/board/server.ex
diff options
context:
space:
mode:
authorLogan Hunt <loganhunt@simponic.xyz>2023-01-13 17:02:31 -0700
committerGitHub <noreply@github.com>2023-01-13 17:02:31 -0700
commitb1b62f154ab5f74a9217dbf5a6422640ac929df3 (patch)
tree6fa3b6e8d7e9219decda28948bf3f02c3cf2dab2 /lib/chessh/ssh/client/board/server.ex
parentfdc22875284b78f9fb98993cbe44ce893c0de413 (diff)
parent3a6c603b0b12964d8a04ae4f78fb61bc094adf12 (diff)
downloadchessh-b1b62f154ab5f74a9217dbf5a6422640ac929df3.tar.gz
chessh-b1b62f154ab5f74a9217dbf5a6422640ac929df3.zip
Merge pull request #3 from Simponic/draw_board
Draw board
Diffstat (limited to 'lib/chessh/ssh/client/board/server.ex')
-rw-r--r--lib/chessh/ssh/client/board/server.ex19
1 files changed, 19 insertions, 0 deletions
diff --git a/lib/chessh/ssh/client/board/server.ex b/lib/chessh/ssh/client/board/server.ex
new file mode 100644
index 0000000..2e480e7
--- /dev/null
+++ b/lib/chessh/ssh/client/board/server.ex
@@ -0,0 +1,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