Skip to content

False hints in snakes antidote game #824

@DanteBM

Description

@DanteBM

Description

Citing the rules of the game

Rules: You have 4 ingredients for each antidote, you only have 10 attempts
Once you synthesize the antidote, you will be presented with 4 markers
Tick: This means you have a CORRECT ingredient in the CORRECT position
Circle: This means you have a CORRECT ingredient in the WRONG position
Cross: This means you have a WRONG ingredient in the WRONG position

Info: The game automatically ends after 5 minutes inactivity.
You should only use each ingredient once.

This is a screenshot of my first three guesses.
Captura de pantalla de 2021-08-27 18-09-37

Description of each guess:

  1. Random guess. It turns out that I got all the correct ingredients, and even the correct position for the last two ingredients. If I switch positions of the first two ingredients I should won the game
  2. Switched the first two ingredients, but it appears that the last ingredient is the only one correct and in the correct position
  3. Testing the fifth available ingredient, that shouldn't be part of the antidote, but it seems it is. Moreover, my last ingredient that was the only one correct and in the correct position is now not even a correct ingredient

Something doesn't add up

Steps to Reproduce

Play the game normally in sir-lancebot-playground channel

Expected Behaviour

Winning the game

Actual Behaviour

Wrong guess

Known Impacted Platforms

  • Web
  • Desktop
  • Android App
  • iOS App

Possible Solutions

I believe the error is sorting the guess_result list because the position info is thrown away

# Now check guess
for i in range(0, len(antidote_answer)):
if antidote_guess_list[i] == antidote_answer[i]:
guess_result.append(TICK_EMOJI)
elif antidote_guess_list[i] in antidote_answer:
guess_result.append(BLANK_EMOJI)
else:
guess_result.append(CROSS_EMOJI)
guess_result.sort()

Would you like to implement a fix?

Note: For high-priority or critical bugs, fixes may be implemented by staff.

  • I'd like to implement the bug fix
  • Anyone can implement the bug fix

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: backendRelated to internal functionality and utilitiescategory: funRelated to fun and gamesstatus: planningDiscussing detailstype: bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions