Hanabi-Live / hanabi-live

A web server that allows people to play Hanab, a cooperative card game of logic and reasoning.
https://hanab.live
GNU General Public License v3.0
179 stars 118 forks source link

card-reducer branch: make throw it in a hole work #1385

Closed Zamiell closed 4 years ago

Zamiell commented 4 years ago

i did some work on this, i think that all that is left is for rob to fix the onHoleChanged() function

robertos commented 4 years ago

done?

Zamiell commented 4 years ago

i tested it and experienced the following bug:

Zamiell commented 4 years ago

furthermore:

the empathy in "throw it in a hole" is wrong. we assume that other players know the cards they played. (one small issue is the call to "revealCard" using the information we know, but the main problem is cards that will be drawn later)

Zamiell commented 4 years ago

actually i guess this isn't a very safe assumption, because it could be wrong

Zamiell commented 4 years ago

looks like it is fixed now thanks to rob

Zamiell commented 4 years ago

not fixed, still bugs out after refreshing and then terminating the game

Zamiell commented 4 years ago

any misplay animations also happen, which is buggy

Zamiell commented 4 years ago

i guess misplay animations to the discard pile are expected? not sure how it should work

robertos commented 4 years ago

There's two consistent options:

  1. no animations for anything, animate fast
  2. misplays and playstacks animate (current) and one less consistent option
  3. playstacks animate, misplays don't (add a fade/teleport)
robertos commented 4 years ago

There's also a funky, more complete change which is to make the reveal slower and more tense, by revealing the cards one by one and animating to the playstack or misplay. It would take much longer, but it would be a suspense reveal :) -- definitely not for this issue, but can be added as another issue if desired (P3)

robertos commented 4 years ago

I might go with option 1. (no anims) since that's what's currently on H.L

Zamiell commented 4 years ago

im fine with option 1

Zamiell commented 4 years ago

looks fixed, thanks