It's gone from 'triple letter' to '3x' and is '2x' now double letter or double word, confusing, but thanks for sharing, great fun, at least until NYT buyout ;) Suggestion: dark mode?
Show HN: Can you beat my dad at Scrabble?
141–144 of 144 posts
Re: Show HN: Can you beat my dad at Scrabble?
#142Cheeky! using the Scrabble trademark in the submission title but keeping it off
the site.
Re: Show HN: Can you beat my dad at Scrabble?
#143Great! But what's the difference between "play with dad" and "play with ai"? Is your dad really sitting all the time and playing Scrabble on this site?! :D
Re: Show HN: Can you beat my dad at Scrabble?
#144Well... I'm kinda a jerk for this, but it's also a free lesson on why global variables are baaaaad. Also, I wrote this in seconds and I know it could be more efficient / cleaner. don't @ me. Toss this in your browser's dev console to get the best word available for each puzzle instantly function solvePuzzle(puzzle, words) { const letters = {}; puzzle.forEach(l => { if (!letters[l]) { letters[l] = 0; } letters[l]++; }…
> don't @ me I'm @ing you :) This code only checks for the longest word, not the highest scoring word. It neglects the x3 and x2 tile spaces.
Fair point.