Skip to content

Latest commit

 

History

History
33 lines (22 loc) · 1.16 KB

Iteration1.md

File metadata and controls

33 lines (22 loc) · 1.16 KB

Iteration 1

In this iteration, your task is to implement the logic that translates orders from customers to the drink maker. Your code will use the drink maker protocol (see below) to send commands to the drink maker. The coffee machine can serve 3 type of drinks: tea, coffee, chocolate.

Use cases

  • The drink maker should receive the correct instructions for my coffee/tea/chocolate order
  • I want to be able to send instructions to the drink maker to add one or two sugars
  • When my order contains sugar the drink maker should add a stick (touillette) with it

Drink maker protocol

The drink maker receives string commands from your code to make the drinks. It can also deliver info messages to the customer if ordered so. The instructions it receives follow this format:

"T:1:0" (Drink maker makes 1 tea with 1 sugar and a stick)
"H::" (Drink maker makes 1 chocolate with no sugar - and therefore no stick)
"C:2:0" (Drink maker makes 1 coffee with 2 sugars and a stick)
"M:message-content" (Drink maker forwards any message received onto the coffee machine interface for the customer to see)

Next

Iteration 2