summaryrefslogtreecommitdiff
path: root/lib/chessh/utils.ex
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chessh/utils.ex')
-rw-r--r--lib/chessh/utils.ex9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/chessh/utils.ex b/lib/chessh/utils.ex
new file mode 100644
index 0000000..1a7f8cf
--- /dev/null
+++ b/lib/chessh/utils.ex
@@ -0,0 +1,9 @@
+defmodule Chessh.Utils do
+ def pid_to_str(pid) do
+ pid
+ |> :erlang.pid_to_list()
+ |> List.delete_at(0)
+ |> List.delete_at(-1)
+ |> to_string()
+ end
+end