zackradisic / aussieplusplus

Programming language from down under
aussieplusplus.vercel.app
609 stars 15 forks source link

Add examples/comeinspinner.aussie #10

Closed jwfxpr closed 2 years ago

jwfxpr commented 2 years ago

Inspired by the suggestion in #1 of ComeInSpinner as an alias for ChuckSomeDice, I've written a small example module that demonstrates pattern matching to figure out the result of a two-up coin toss, returning Tails, Heads, or Odds depending upon the values supplied.

With apologies to @timshepherd-academy for mangling his suggestion! 😆

Please double-check and correct my syntax as necessary, this was written in the text editor and I haven't actually tried to compile it.

vercel[bot] commented 2 years ago

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/zackradisic/aussieplusplus/AyxNy7yxHT2pBMLU7iumZgYjHHti
✅ Preview: https://aussieplusplus-git-fork-jwfxpr-comeinspinner-zackradisic.vercel.app

zackradisic commented 2 years ago

Lmao this is great, tested and it works!

jwfxpr commented 2 years ago

@all-contributors please add @jwfxpr for examples

allcontributors[bot] commented 2 years ago

@jwfxpr

I've put up a pull request to add @jwfxpr! :tada: