Skip to content
A sample phoenix application showing hangman using liveview
Elixir JavaScript CSS HTML
Branch: main
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
assets
config
lib
priv
test
.formatter.exs
.gitignore
LICENSE
README.md
mix.exs
mix.lock

README.md

Hangman

To start your Phoenix server:

  • Install dependencies with mix deps.get
  • Install Node.js dependencies with cd assets && npm install
  • Start Phoenix endpoint with mix phx.server

Now you can visit localhost:4000 from your browser.

Ready to run in production? Please check our deployment guides.

alias Diet.Stepper
s = Stepper.new Hangman, "wombat"; :ok
{r, s} = Stepper.run s, {:make_move, "a"}; r
{r, s} = Stepper.run s, {:make_move, "w"}; r
{r, s} = Stepper.run s, {:make_move, "o"}; r
{r, s} = Stepper.run s, {:make_move, "x"}; r
Hangman.Model.word_so_far(s.model)
{r, s} = Stepper.run s, {:make_move, "m"}; r
{r, s} = Stepper.run s, {:make_move, "t"}; r
{r, s} = Stepper.run s, {:make_move, "b"}; r

Learn more

You can’t perform that action at this time.