|
|
|
|
|
by jzer0cool
1957 days ago
|
|
This looks pretty neat. How does this work, do you code and specify a target output? Curious if there is a link somewhere that shows the output files ... I like learned on the front-page example a multi-state (?) switch statement. What is this called and any other languages support this? switch [playerA.move, playerB.move] {
case [Rock, Scissors] |
[Paper, Rock] |
[Scissors, Paper]: Winner(playerA); ... |
|
> How does this work, do you code and specify a target output?
Indeed. You can specify multiple targets on multiple builds if your code is compatible with all of them (which happens without too much work when working with libs that do the abstraction for you, like openfl or heaps -- and yeah, that's mostly for games).