Skip to content

Instantly share code, notes, and snippets.

View chrishyle's full-sized avatar

Chris Hyle chrishyle

View GitHub Profile
@chrishyle
chrishyle / machine.js
Created March 20, 2020 10:21
Generated by XState Viz: https://xstate.js.org/viz
const gameMachine = Machine(
{
id: "game",
initial: "nogame",
context: {
players: [],
roles: [
{
name: "1",
isActive: true