shanedbutler / whats-for-dinner-poker

A web-based game inspired by video poker to assist with weekly meal plan creation.
GNU General Public License v3.0
2 stars 1 forks source link

Fix positionId bug #11

Closed shanedbutler closed 2 years ago

shanedbutler commented 2 years ago

Position sometimes get shifted when drawing new cards to held hand.

shanedbutler commented 2 years ago

Final result from a single game shows a positionId that is NOT from 0 - 4 across each object, as it should be.

{ "cardId": 21, "positionId": 0, "timestamp": 1661364514006, "userId": 1, "id": 1 }, { "cardId": 35, "positionId": 1, "timestamp": 1661364514006, "userId": 1, "id": 2 }, { "cardId": 18, "positionId": 2, "timestamp": 1661364514006, "userId": 1, "id": 3 }, { "cardId": 30, "positionId": 3, "timestamp": 1661364514006, "userId": 1, "id": 4 }, { "cardId": 9, "positionId": 0, "timestamp": 1661364514006, "userId": 1, "id": 5 },