8 ms·
Play Wordle from Your Terminal
- dowakin 5y agoIf you wonder why in the demo author uses `crane` as first guess - check out recent video from 3Blue1Brown https://www.youtube.com/watch?v=v68zYyaEmEA https://www.youtube.com/watch?v=v68zYyaEmEA
- conradludgate 5y agoIt was a funny coincidence that I started working on this, and then an hour later he released that video :)
- menjaprunes 5y agoI like this cli wordle more: https://github.com/ShivamPandya/wordle https://github.com/ShivamPandya/wordle
- shmerl 5y agoDoes it use two dictionaries (one more complete for guesses and smaller one with more common words for the secret?). That seems to be the the case with the original one.
- errcorrectcode 5y agohttps://www.cnn.com/videos/media/2022/02/05/wordle-new-york-times-monica-lewinsky-anderson-cooper-sot-vpx.cnn https://www.cnn.com/videos/media/2022/02/05/wordle-new-york-... Once it makes it to the MSM, that makes it officially uncool.
- conradludgate 5y agoThis was a quick project I put together this Sunday. I've been needing a project that I can "finish" as I've been a bit ambitious with my other projects recently. 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
- throwthere 5y agoMad respect for not mentioning Rust in the title.
- conradludgate 5y agoI figured everyone who knew and cared enough about rust would recognise the "crates.io" url ;)
- petee 5y agoI appreciate your sentiment, although I do like to see the language, personally, if it's something I need to compile - not everyone has x-toolchain. That said, being not unfamiliar with Rust, i did indeed notice crates.io :)
- maxbond 5y agoCongrats on shipping your project! 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`.
- ylyn 5y agoLooking at the source, this doesn't handle ambering of repeated letters correctly: 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.
- conradludgate 5y agoOh interesting. Fair enough. I didn't bother (or care enough) how it handled multiple of the same letter. I might patch it later
- Biganon 5y agoThis is a key behavior, without it the game is basically useless
- conradludgate 5y agoI'd disagree with this. Sampling bias but I do have a 100% win streak average of 4 and I've never needed this information to win
- Jtsummers 5y agoYou may not have needed that information, but if the game marks both instances of the same letter as amber (correct letter, wrong place), but there is only one instance then it has misled the player. That's incorrect behavior. The player should be able to discern from their guess which letters and how many of them there are in the solution. They shouldn't be led towards a wrong answer. 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.
- Fnoord 5y agoThere's a couple of other Rust versions of this game: wordle [1] and wordlet [2]. Yours is lacking showing (qwerty) overview of which letters were used. Although now that I think of it, its not optimal to show it as qwerty for non-qwerty users. [1] https://crates.io/crates/wordle https://crates.io/crates/wordle [2] https://crates.io/crates/wordlet https://crates.io/crates/wordlet
- conradludgate 5y agoYeah, I explicitly left out the keyboard view. It's technically redundant information so I didn't want to deal with the extra complexity
- Fnoord 5y agoRedundant it is, yes, but I use it to determine which common letter I have not yet used. Although dvorak or colemak are more representative for such (because you can relate it to the middle row) I have this legacy and defacto standard issue with qwerty.
- conradludgate 5y agoOne thing I could do, also avoiding any specific keyboard layout, is to render a 5x5 letter grid with these colours, and give a shuffle ability. It being QWERTY or any other keyboard layout does not offer any advantage over a random layout
- Fnoord 5y agoYep, or abc, or vowels first, then consonants, or different layouts and let user decide, with sane default.
- jwandborg 5y agoThe original wordle draws its own keyboard, which shows as qwerty regardless.
- BlanketLogic 5y agothis looks neat. Thanks for sharing. 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 https://crates.io/crates/wordlers [1] https://en.wikipedia.org/wiki/Bulls_and_Cows https://en.wikipedia.org/wiki/Bulls_and_Cows
- js2 5y agoThis is missing one thing I find helpful in the web-based game. The on-screen keyboard which colors the letters according to your guesses which makes it a lot easier to plan your next guess.
- lights0123 5y agoJust needs integration with e.g. OpenRGB to change the colors of the physical keys on supported keyboards :)
- secret-noun 5y agoTry this one: https://github.com/t-mart/wordle https://github.com/t-mart/wordle
- dTal 5y agoUse your shell! 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...
- conradludgate 5y agoThere's now a keyboard that is shown to the side. I hope this satisfies your needs
- tasha0663 5y ago> cl-wordle Was terdle already being used?
- conradludgate 5y agoI default to publishing my crates under the prefix `cl-` (my initials) if I don't intend them to be serious
- davidkuhta 5y agoTotally thought that was cl for command line...
- 0F 5y agoI was so shocked when my family member told me wordle is a website and not an app. I never thought that the masses would go for something like that in the package of a website. It really gives me hope for the future.
- rockostrich 5y agoWhy? Publishing an app costs money even if the app is free (which is why free apps usually have ads or some kind in-app purchases). Publishing a website with static content can be free depending on where you host it.
- 0F 5y agoBecause the model of apps needs to die. If you have something you want to put out into the world you currently need to write an android app, an iOS app and then any other native formats you want to target. But it’s much better to make it browser based because it’s one and done and it also side-steps all the nonsense with app stores which has been well known lately. If it’s easier and better for the developers then we will have more and better software. 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.
- nojito 5y agowebapps are a privacy nightmare. No thanks.
- piaste 5y agoWebapps are much better sandboxed, but harder to keep offline. 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.
- satysin 5y agoI know it's totally pointless but it would have been cute if the word in the demo gif was cargo :D When I saw the first letter was C I totally thought that was what the author had done.
- conradludgate 5y agoAww, I wish I had thought of that! I just went for the day 0 word, to try and avoid any trouble with spoilers
- jug 5y agoAwaiting a server listening to Telnet now, like the classic at blinkenlights.nl
- thefreeman 5y agotry out `ssh sshwordle.daveroda.com`
- otobrglez 5y agoI wrote this blog-post about cracking of the Wordle game. If you are interested into its mechanics and implementation… https://epic.blog/hacking/2022/01/26/cracking-the-wordle-game.html https://epic.blog/hacking/2022/01/26/cracking-the-wordle-gam...
- deleted 5y ago[deleted]