Questions tagged [scrabble]

Use this tag when referring to the game ‎Scrabble®

Scrabble is a word game where a player creates words on a 15x15 board in a cross word fashion from letters on the board and letters in their selection. Different letters have different values and the goal is to create a word with the most value by adding up the values of the individual letters.

Because of the simplicity of the game and reasoning needed to model solutions to the game in software, it is popular as a learning exercise or homework.

References

Wikipedia
Rules

26 questions
45
votes
5 answers

Scrabble tile checking

For tile checking in scrabble, you make four 5x5 grids of letters totalling 100 tiles. I would like to make one where all 40 horizontal and vertical words are valid. The set of available tiles contains: 12 x E 9 x A, I 8 x O 6 x N, R, T 4 x D, L,…
moinudin
  • 134,091
  • 45
  • 190
  • 216
7
votes
7 answers

Algorithm: What set of tiles of length N can be used to generate the most amount of Scrabble-valid words?

I'm trying to create a function best_tiles which takes in the number of tiles in your hand and returns the set of tiles that allows you to produce the most number of unique English-valid words, assuming that you can only use each tile once. For…
Parseltongue
  • 11,157
  • 30
  • 95
  • 160
2
votes
2 answers

Word unscrambler wildcards using mysql

I'm building a word unscrambler using MySQL, Think about it like the SCRABBLE game, there is a string which is the letter tiles and the query should return all words that can be constructed from these letters, I was able to achieve that using this…
2
votes
1 answer

How can I efficiently search a string for occurrences of words?

Essentially, I have a Set of words, about 250,000 of them and want to be able to return a list of which ones are found in a given string. eg. input string is 'APPLEASEDITION', I want to return [APP,APPLE,PLEA,…
danikitty
  • 31
  • 3
1
vote
1 answer

Academic project - Scrabble - issue trying to convert strong argument into an array of characters

I am working on creating a game of scrabble. I have created a function to iterate through each letter and add it the points for each player. I keep running into an error when as I am trying to convert the word argument (which will be a string) into…
1
vote
2 answers

Using a dictionary to get total points for a scrabble word

I am having a really hard time answering this question for a class that I am taking. In this problem, I have to write a program using a dictionary containing letters with points. So any word that is entered, I have to output the number of points.…
ellie1
  • 33
  • 2
  • 4
1
vote
4 answers

Scrabble array in java

So for a class, I need to make a program that scores a word based off of scrabble values for a letter. So aa should be 2 since 1 a is worth 1 point. But for some reason, my program only shows aa as 1 point. import java.util.Scanner; public class…
Isaiah Mitchell
  • 75
  • 3
  • 11
0
votes
2 answers

My scrabble solution for Week 2 of CS50, struggles with symbols. Cant figure out why

So I wrote this code for the scrabble problem for the lab of week 2 of CS50. The jist of it is that, we need to write code to calculate the score of two words given by two players, and then declare the winner based on the points assigned to each…
King Brain
  • 57
  • 6
0
votes
2 answers

How do i optimize code for generating Scrabble word combinations with blank tiles?

I'm trying to create a code to find the optimal solution for scrabble. And i need help with generating all of the word combinations with a set of letters. (To clarify: i do not need help validating if the words are in a dictionary or not. I just…
0
votes
0 answers

I'm doing a Scrabble challenge but I'm stuck

I have to create this JS scrabble but I'm having problems adding up each values of the word to make a total points, for example if the word is 'hello' it should the sum will be 8.. And also I need my object to return the total value of the word, not…
Shylan
  • 11
  • 3
0
votes
2 answers

How to add a word of letters to the table for a scrabble game

I'm trying to write a simple WPF C# scrabble game. What I was able to do on my own: I created a 10x10 table and randomly put letters in it Here is the code of XAML and Randomizer
Dima
  • 1
  • 2
0
votes
0 answers

Php word find game in Baltic characters problems "ū" is equal to "ī" but why

found some cool code to generate words from given letters in English language it works flawlessly, but to use some special characters it has some glitches it thinks that "ū" is equal to "ī" you can try adding "drūtsjē" and it somehow finds…
0
votes
0 answers

cs50 / scrabble check50 error Did not find "Player 1 wins

When I run my code, I get proper results including the printf's for Player 1 wins!, Player 2 wins! or Tie! But check50 errors with can not find any of the printf outputs. I've checked, double checked my spelling, does not seem to be the…
Fitz
  • 1
  • 2
0
votes
0 answers

Scrabble Cheater with Wild Cards

I am trying to create a Scrabble cheater code in python which can take in any letters and return every possible word, its score, and the total number of words possible. This includes up to two wildcards which can be any letter but have a value of…
Jojo1111
  • 1
  • 1
0
votes
1 answer

Scrabble point calculator

I am working on a problem that is asking to determine which word has a higher point value according to the Scrabble board game. My thought process is to: take user inputs (i.e. two words) in strings convert user inputs to lowercase call functions…
1
2