Mix.install([
{:kino, "~> 0.7.0"}
])
Shared code
defmodule RPS do
@moves [:rock, :paper, :scissors]
@size Enum.count(@moves)
def result(move, move) when move in @moves, do: :tie
def result(move1, move2) do
index1 = Enum.find_index(@moves, &(&1 == move1))
index2 = Enum.find_index(