Skip to content

Latest commit

 

History

History
28 lines (16 loc) · 986 Bytes

challenge.md

File metadata and controls

28 lines (16 loc) · 986 Bytes

Day 20: A game of dice.

Today, you are hitting the storm and it's much bigger than anticipated.

You have to navigate carefully in order to avoid the worst of it. A simple mistake can be costly.

Today's exercise is about insuring safe states in your main logic.

You now know how to remove exception but ensuring a safe state is another thing.

It's all about protection of your code

Challenge of day 20: No more exceptions in our domain.

You are not allowed to extend the output of the methods (by returning a monadic container) as yesterday... You need to find another way to solve it 🤔

May your crafting journey be safe!

  • 💡HINT: What triggers the unsafe state here?

To better understand the game rules we invite you to take a look them here.

snippet of the day

Proposed Solution

Proposed Solution Guide