boardzilla / boardzilla-core

Boardzilla core library
GNU Affero General Public License v3.0
180 stars 3 forks source link

skipIf should create buttons #37

Open rizen opened 7 months ago

rizen commented 7 months ago

According to Moxy, adding skipIf: 'never' to playerActions should turn options into buttons.

game.defineFlow(
    loop(
      eachPlayer({
        name: 'player',
        do: playerActions({
          actions: ['chooseLetter', 'solve'],
          skipIf: 'never'
        }),
      })
    )
  );

But it doesn't appear to change anything.

Screenshot 2024-03-06 at 10 39 56 PM

Moxy said it may be broken and that the test for it looks suspicious. I'm just creating this ticket as a reminder.

https://discord.com/channels/959788025670414366/971366114753916989/1215154134949302272