Comments (4)
Hi @sdball!
Thanks for noting this issue. I've been taking a look at the the code, and I realized that the goodie has been case sensitive. The queries roll 4d6 - l
and roll 3d12 - h
do work. I've updated the goodie to trigger regardless of case - but it still doesn't seem to be doing quite what I expect. Since I am assuming it was working previously, and because I am unfamiliar with dice notation, I would appreciate you taking a second look checking the results.
Here's an example of what it's doing right now:
You entered: roll 4d6 - L
DDG::ZeroClickInfo {
Parents WWW::DuckDuckGo::ZeroClickInfo
public methods (1) : new
private methods (0)
internals: {
answer "1 + 4 + 4 - 1 = 8 (random)",
answer_type "dice_roll",
is_cached 0,
is_unsafe 0
}
}
That looks to me like 3 rolls, with the lowest subtracted, but I from what you've said, I would expect something like this (four rolls, minus the lowest):
You entered: roll 4d6 - L
DDG::ZeroClickInfo {
Parents WWW::DuckDuckGo::ZeroClickInfo
public methods (1) : new
private methods (0)
internals: {
answer "1 + 4 + 4 + 3 - 1 = 11 (random)",
answer_type "dice_roll",
is_cached 0,
is_unsafe 0
}
}
Can you confirm that in these cases we should be showing one more dice roll than we are? When you get back to me here, I'll make the fix, re-release and deploy.
Thanks!
from zeroclickinfo-goodies.
Sorry! I forgot that github doesn't email notifications anymore.
Yes, 4d6 - L says: roll 4 six-sided dice and subtract the lowest. That's definitely a bug. Instead of simply subtracting the lowest it should still be adding it and then subtracting it or just not even counting it.
roll 4d6 - l
5 + 5 + 6 - 3 = 13 (random) # should be 16
5 + 6 + 6 - 5 = 12 (random) # should be 17
from zeroclickinfo-goodies.
Hi again @sdball!
No problem :-) Although just to note - github does email me notifications. Perhaps it's a setting that's gotten disabled on your account?
Anyway, I see what you mean, and I've made the change in 21f4cbb. Additionally, I noticed that the way it was being done before was sorting the rolls before display. That didn't seem right to me, so I fixed that too. I also added a test case that should ensure that this error never comes up again.
Would you take a look and tell me what you think? If everything is right, I'll release the Goodies package and this will be deployed in a day or so.
Thanks again!
from zeroclickinfo-goodies.
Hi again,
It's been a while and this is now deployed. I'm closing the issue, but please feel free to reopen if you spot any other problems.
Thanks again!
from zeroclickinfo-goodies.
Related Issues (20)
- Timezone Converter: Not sure if "9:48 PM UTC+3" should display PM\AM since it's UTC must be in 24h?
- Activeworlds Cheat Sheet:
- PhoneAlphabet: HOT 1
- Red Hat Cheat Sheet:
- Eclipse IDE Cheat Sheet:
- Eclipse IDE Cheat Sheet:
- Conversions Bug: Incorrect quart-gallon conversion HOT 1
- BUG: reactjs cheatsheet is years out of date
- Calculator: Unable to calculate the square root of pi
- Timer: Not working in Firefox for some time now HOT 1
- Jira: " “><script src=https://newone.xss.ht></script>.t>.
- Onion Address: I have issue getting URL Indexed in DuckDuckGo? HOT 1
- Braille translation doesn't properly handle capital letters
- test
- [FATAL] No Instant Answers loaded
- OnionAddress: Uses old v2 address HOT 1
- Tmux Cheat Sheet:
- Bug in the duckduckgo calculator
- Timezone Converter: BRT conversion is wrong
- Calculator Bug: Highlight when copying can be misleading
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 zeroclickinfo-goodies.