In this episode, we improve the
Flow components of the Engine framework by replacing the previously hardcoded
String type for
As shown in the first episode, we set a goal of being able to play the game with many types of questions and answers, such as text, image, audio and video. To achieve this level of flexibility, we decided to abstract the
Answer types by using Swift's generics.
Finally, we didn't see any failing tests after making the changes, validating that we did not break the Flow's behaviour.