Skip to content

fix : reset index at start of each FLAMES round to prevent wrong elimination - #1836

Closed
tmdeveloper007 wants to merge 1 commit into
steam-bell-92:mainfrom
tmdeveloper007:pr1831
Closed

fix : reset index at start of each FLAMES round to prevent wrong elimination#1836
tmdeveloper007 wants to merge 1 commit into
steam-bell-92:mainfrom
tmdeveloper007:pr1831

Conversation

@tmdeveloper007

Copy link
Copy Markdown
Contributor

Summary of What Has Been Done

Fixed a logic bug in games/FLAMES-Game/FLAMES-Game.py where the global index elimination counter was not reset at the start of each round. The index was only reset inside the if valid_game: block, meaning it could retain stale values across rounds.

File changed: games/FLAMES-Game/FLAMES-Game.py

Changes Made

  • Added index = 0 reset at the very start of the outer while True game loop, before any input is collected
  • This ensures the elimination counter always starts from 0 regardless of the previous round's outcome

Impact it Made

  • Players who play multiple rounds get correct relationship predictions on each round
  • Previously only the first round was correct; subsequent rounds silently produced wrong results

Closes #1831

Note

Please assign this PR to the tmdeveloper007 account.

@vercel

vercel Bot commented Jul 29, 2026

Copy link
Copy Markdown

Someone is attempting to deploy a commit to the Anuj's projects Team on Vercel.

A member of the Team first needs to authorize it.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug : FLAMES Game produces wrong results on 2nd+ rounds due to unreset index variable

2 participants