WardMaes / hive

The Hive Pocket game
https://hive.wardmaes.vercel.app/
2 stars 0 forks source link

Feature/insect selec improv #46

Closed bestrandomnameever closed 3 years ago

bestrandomnameever commented 3 years ago

Main contribution: enforce placing queen by 4th turn in UI. Some other small fixes and improvements.

vercel[bot] commented 3 years ago

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/wardmaes/hive/lflae6mpw
✅ Preview: https://hive-git-feature-insectselecimprov.wardmaes.vercel.app

WardMaes commented 3 years ago

@bestrandomnameever To recreate the bug: start game with 2 players, when both players have done 3 moves, the first player is unable to select anything other than his queen, but the second player is still able to click other insects in the InsectSelector and can thus place another insect, even if the queen hasn't been placed yet. The cursor shows the player is not able to click other insects (which is correct), but they are still clickable

bestrandomnameever commented 3 years ago

@WardMaes Everything besides the fixed width insects in the insectPicker should now have been fixed.

bestrandomnameever commented 3 years ago

@bestrandomnameever To recreate the bug: start game with 2 players, when both players have done 3 moves, the first player is unable to select anything other than his queen, but the second player is still able to click other insects in the InsectSelector and can thus place another insect, even if the queen hasn't been placed yet. The cursor shows the player is not able to click other insects (which is correct), but they are still clickable

This bug now fixed as well.