Coder Social home page Coder Social logo

Always give three clues about triviabot HOT 3 CLOSED

za3k avatar za3k commented on August 12, 2024
Always give three clues

from triviabot.

Comments (3)

rawsonj avatar rawsonj commented on August 12, 2024

Well, that's not really the algorithm.

From trivia.py:

22 def give_clue(self):
23 '''
24 Returns the masked string after revealing a letter and saving the mask.
25
26 If an answer has only 1-2 characters in it, no clues are given.
27
28 If an answer has 3-4, 1 clue is given.
29
30 If an answer has 5-6, 2 clues are given.
31 '''

I should have also stated "6 or more, 3 clues are given." This was decided upon basically from user feedback and testing. It's not perfect, but it works. My personal view is when you get a bad clue, such as in your example, you just got unlucky since the masking algorithm randomly chooses a position to unmask. Luck-of-the-draw is part of the game, so I'm not really inclined to change that part of the game.

It's also modelled after a BBS trivia program from the late 90's that had a very similar algorithm.

from triviabot.

za3k avatar za3k commented on August 12, 2024

from triviabot.

rawsonj avatar rawsonj commented on August 12, 2024

Well, I've been running this game for the last 8 years and this was explicitly requested by the users of the server I run it on.

Feel free to fork it and do whatever you want to do, but this isn't a bug.

from triviabot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.