Skip to content

再投票時に同日のタイ票が Info に反映されず、エージェントが再投票を認識できない #47

Description

@nharu-0630

現象

vote.max_count > 1 のとき、1回目の投票が同数で再投票になっても、2回目の R_VOTE パケットの info.VoteList には前日の票(logic/common.go:57-62lastGameStatus.Votes)しか入らない。当日1回目の票は getCurrentGameStatus().Votes に書かれているのに参照されない。

エージェントから見ると1回目と2回目のリクエストが完全に同一になるため、同じ投票を繰り返し、タイは常にランダム解決に落ちる — 再投票設定の意味がなくなっている。

修正案

再投票ラウンドの Info には当日の直前ラウンドの票を含める(または再投票であることを示すフィールドを追加する)。

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions