Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add examples/comeinspinner.aussie #10

Merged
merged 3 commits into from Oct 29, 2021
Merged

Add examples/comeinspinner.aussie #10

merged 3 commits into from Oct 29, 2021

Conversation

jwfxpr
Copy link
Contributor

@jwfxpr jwfxpr commented Oct 29, 2021

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.

An example that uses pattern matching as well as nested `YA RECKON ... WHATABOUT` statements to call a two-up coin toss (where `true` == `heads`)
@vercel
Copy link

vercel bot commented Oct 29, 2021

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

'Cause tossACoin is much more strayan.
@zackradisic
Copy link
Owner

Lmao this is great, tested and it works!

@zackradisic zackradisic merged commit 9c8fdc0 into zackradisic:master Oct 29, 2021
@jwfxpr jwfxpr deleted the comeinspinner branch October 29, 2021 15:29
@jwfxpr
Copy link
Contributor Author

jwfxpr commented Oct 31, 2021

@all-contributors please add @jwfxpr for examples

@allcontributors
Copy link
Contributor

@jwfxpr

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants