![]() We’ll do this processing with tidyverse functions. Based on the above rules, these will have at least four letters, have no more than 7 unique letters, and never contain the letter S. Our first step is to process the word list for words that could appear in a honeycomb puzzle. So in the same spirit as my Tidy Tuesday screencasts, I recorded myself solving this puzzle (though not the process of turning it into a blog post). I don’t show all the dead ends and bugs, or explain why I ended up choosing a particular path. I’ve done a lot of puzzles recently, and I realized that showing the end result isn’t a representation of my thought process. As much as I love the tidyverse, this, like the “lost boarding pass” puzzle and Emily Robinson’s evaluation of the best Pokémon team, serves as a great example of using R’s matrix operations to work efficiently with data. Solving this puzzle in R is interesting enough, but it’s particularly challenging to do so in a computationally efficient way. Which seven-letter honeycomb results in the highest possible game score? To be a valid choice of seven letters, no letter can be repeated, it must not contain the letter S (that would be too easy) and there must be at least one pangram. So in the above example, MEGAPLEX is worth 15 points. Words that use all of the seven letters in the honeycomb are known as “pangrams” and earn 7 bonus points (in addition to the points for the length of the word). Four-letter words are worth 1 point each, while five-letter words are worth 5 points, six-letter words are worth 6 points, seven-letter words are worth 7 points, etc. For example, the words GAME and AMALGAM are both acceptable words. The word cannot include any letter beyond the seven given letters.The word must include the central letter.The word must be at least four letters long.The goal is to identify as many words that meet the following criteria: Here’s the lattice from December 24, 2019: In this game, seven letters are arranged in a honeycomb lattice, with one letter in the center. The New York Times recently launched some new word puzzles, one of which is Spelling Bee. I love 538’s Riddler column, and the January 3 puzzle is a fun one. The “largest stock profit or loss” puzzle.The “knight on an infinite chessboard” puzzle.
1 Comment
|
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |