Ray Ryan & Zach Klippenstein: Workflow: Fix Test (5 of 5)

Опубликовано: 28 Февраль 2026
на канале: Android Dialogs
536
6

In this episode we fix the logic in the state machine so that our test case for having a draw in tic-tac-toc passes.

Workflow is a library from Square for making composable state machines, and UIs driven by those state machines.

Since this is recorded before the 1.0 release, please be aware that the classes and interfaces are very likely to change. However, the concepts will stay the same.

-----

Ray Ryan
  / rjrjr  

Zach Klippenstein
  / zachklipp  

Workflow
https://github.com/square/workflow
https://github.com/square/workflow/co...

(0:36) Kotlin with
https://kotlinlang.org/api/latest/jvm...

(2:10) Kotlin asSequence
https://kotlinlang.org/api/latest/jvm...

(2:14) Kotlin firstOrNull
https://kotlinlang.org/api/latest/jvm...

(2:57) Kotlin all
https://kotlinlang.org/api/latest/jvm...

(2:57) Kotlin any
https://kotlinlang.org/api/latest/jvm...

(4:18) Kotlin flatten
https://kotlinlang.org/api/latest/jvm...