Skip to content

Instantly share code, notes, and snippets.

@Maximusya
Maximusya / SmartDollV1.cs
Last active June 10, 2016 12:05
State machine representing a smart doll reacting to Lull, and noise commands. Uses https://github.com/dotnet-state-machine/stateless
using System;
using Stateless;
/// <summary>
/// https://dotnetfiddle.net/Udzhcs
/// </summary>
public class Program
{
enum State { Awake, Sleep, LightSleep, DeadSleep }
enum Trigger { Lull, Whisper, Scream }