Play Wordle from Your Terminal
crates.io
crates.io
let mut diff = [Match::Black; 5];
for (i, &b) in input.iter().enumerate() {
if solution[i] == b {
diff[i] = Match::Green;
} else if solution.contains(&b) {
diff[i] = Match::Amber;
}
}
If the solution is "crest", for example, guessing "class" should give green for the first s and black/grey for the second s, but your implementation will give amber for the second s. And if you guess "stars", then only the first s should be amber, and the second should be black.It's not a stellar plan, but if someone starts off with a guess like "abyss" and there is only one 's', they shouldn't be tricked by the game.
This is what I am disagreeing with. It's not useless. I have and can play it just fine without that information.
I already have a fix implemented, but it was an extreme statement that I was saying is wrong
And then on top of that you're being defensive when you receive very valid feedback instead of gladly accepting it. What's the point of even posting to HN if you're not welcoming feedback?
The "didn't care" part was referring to my initial research, and not the fix. In my top level comment, I mentioned this was a quick couple hour project.
I didn't mind the initial criticism. Like I said before, I found it interesting.
I tend to agree for myself, but at least one publisher (Paradox) has built a very successful business on the opposite assumption!
https://old.reddit.com/r/chess/comments/lz0w9w/the_puzzle_wh...
Question: Did people not use to play chess before 1972? If every tiny incompatibility with the specs make the game different, then surely people before 1972 were playing a different game? And that's just chess, pretty much every major games see changes in their ruleset practically every year.
You are obviously going to say chess is whatever the rule is in _current year_, sidestepping that philosophical examination. I don't want to get into that either when the bigger problem is in the claim that any deviation makes it "not fit for purpose". If the purpose of a game is to conform perfectly to a spec defined by someone else, then everyone playing football for fun with makeshift goal posts everyday in the field near my house mustn't have gotten the memo.
Exactly how jaded must programmers be from having to follow client's specification all the time to have this outlook?
https://github.com/cwackerfuss/word-guessing-game/blob/49279...
Sigh... this game has ruined 5 letter words for me. Saw it and immediately thought "how's that for an opener?"
IMO, this is something that ought to be called out in a hypothetical formal specification of Wordle, but I kind of like that it isn't mentioned in the instructions for the game, from a gameplay/learning perspective. It encourages people to reason through what the correct behavior ought to be on their own, and to experiment to see how the implementation marks guesses; the assumption that letters can't be repeated is one that a lot of people don't realize that they're making.
https://news.ycombinator.com/item?id=30174386
https://news.ycombinator.com/item?id=30086083
https://news.ycombinator.com/item?id=29964725
https://news.ycombinator.com/item?id=29947881
https://news.ycombinator.com/item?id=29828652
It's probably not flawless and doesn't have any leaderboard/statistics saving yes, but it does the job.
It uses the official word list and order, so every day should match the website. It prints the emoji share upon finish too, so you can share as you would normally
That said, being not unfamiliar with Rust, i did indeed notice crates.io :)
I know you cut out lots of features for simplicity, which makes total sense to me if your goal was to finish & ship it, but if you wanted to add the wordle keyboard &c, you might look into using `tui`.
Web assembly and WGPU are coming and when they do it will be the next paradigm after mobile apps. But in order to get to this new glorious paradigm it is necessary for people to be capable of recognizing the value of software even if it’s in the browser and of using it on the scale seen with wordle. It’s just as likely that people would turn their nose up to a browser based software and everything would remain stagnate. So I am glad.
No thanks.
No thanks.
Thanks to Hacker News¹, I recently came across Learn systemd by example². The site itself is hosted by Hetzner, a German hosting provider that take user privacy seriously³ and uses Cloudflare as a privacy-conscious CDN⁴. The only third-party resources it uses are Google fonts. Users of uMatrix⁵ or uBlock Origin⁶ can easily block these resources and the web app works perfectly fine without them.
I’d also use Wordle itself as an example of a reasonably user-privacy friendly web application. The only third-party resources it uses is Google Tag Manager (which is blocked by default by uMatrix).
I use Firefox with a number of web extensions (Firefox Multi-Account Containers⁷, Decentraleyes⁸, uMatrix, uBlock Origin, Privacy Redirect⁹). These all provide me, an end-user, much greater control over my online privacy than I’d have with a mobile app. I’ve also recommended Decentraleyes and uBlock Origin to non-technical friends as extensions they can install and not worry about configuration.
1. https://news.ycombinator.com/item?id=30071240
2. https://systemd-by-example.com/
3. https://www.hetzner.com/legal/privacy-policy
4. https://www.cloudflare.com/privacypolicy/
5. https://github.com/gorhill/uMatrix
6. https://github.com/gorhill/uBlock#ublock-origin
7. https://github.com/mozilla/multi-account-containers#readme
Configure your browser to block 3rd party cookies and you'll be fine.
It's nice to have the private window privacy feature. That's a standard feature of web browsers, but I don't know of any consumer operating system that makes this easy for native apps.
Native apps can be easily denied internet access, but the sandboxing is not as strong.
For this reason, I prefer webapps when the application needs to operate online to work, and native apps when they don't.
echo abcdefghijklmnopqrstuvwxyz | tr -d 'adieu'
I do this anyway, because instead of the normal order I put the alphabet in frequency order, so I get the list of letters in the order I should be considering them.
It's possible to "cheat" quite a bit using the shell. Exactly what does and doesn't count as "cheating" is up to your personal comfort level. For example, the frequency analysis of the official wordle word list is rather different than English at large...
When I saw the first letter was C I totally thought that was what the author had done.
I published one too[0] which is much clumsier - it needs to be interacted via wordlers. Of course mine is more for trying out an algorithm or two for solving. But it also allows one to play cows and bulls[1].
[0] https://crates.io/crates/wordlers [1] https://en.wikipedia.org/wiki/Bulls_and_Cows
Once it makes it to the MSM, that makes it officially uncool.
https://epic.blog/hacking/2022/01/26/cracking-the-wordle-gam...
Was terdle already being used?