Skip to main content
  1. /classes/
  2. Classes, Fall 2024/
  3. CS 4140 Fall 2024: Course Site/
  4. cs4140 Notes/

cs4140 Notes: 21 Hangman

·52 words·1 min·

Today: Phoenix / React Hangman Game

Steps:

  • Model Hangman by defining a data representation and a module with a set of simple functions (e.g. new, guess, legal_moves, etc)
  • Create a React component for the UI
  • Hook them together with a Phoenix Channel
    • Initially, state goes in the channel

Work went in: https://github.com/NatTuck/party_animal/tree/hangman

Nat Tuck
Author
Nat Tuck