Comments (3)
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.
from triviabot.
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)
- Limit the number of standings so we don't wait 10 minutes for them to be printed out. HOT 2
- logging reported questions HOT 3
- using a database for questions and answers HOT 4
- Official #triviabot-dev channel on QuakeNet HOT 5
- clues give away answers that are 3 characters or less HOT 7
- using os.path for portability HOT 1
- add version information
- add option to config so "nameless's trivia bot" string will show admin name HOT 6
- add config option for different WAIT_INTERVAL HOT 3
- a more graceful death
- What python need to run? HOT 1
- Fix the stupid lambda some day. HOT 7
- HI HOT 1
- Make the bot say "nick, you got it!"
- Port the bot to python3.
- Answers must be given in the game channel HOT 6
- Improve skip vote system HOT 2
- Question: Multiple data files? HOT 5
- Wrong answer
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from triviabot.