

Real scrabble has 2x and 3x squares, once again providing more excitement and strategy to the game. Right now all board squares offer 1x the value of the letter placed on it. Implementing Premium Squares on the board.Stretch goal here is to make the game completely responsive.

XIT SCRABBLE WORD FULL
To do this, we need to make some changes to our CSS parameters without blowing up the grid and while keeping the full game visible on a normal sized screen. We track tile values and award points based on the tile value and the values are included in the div rendering, but we do not show these values on tiles.

For each letter, we loop through that letter according to the number of occurrences and for each occurrence, we push a new tile into the tileArray Each object includes a letter, value and number of occurrences. So each time a new game is started, we set var tileArray to an empty array and then call the tileMaker method which loops through an array of 26 objects.
XIT SCRABBLE WORD CODE
We could hard code these tiles but that is no fun. Official scrabble has 100 tiles, each with a letter and a value. Basically, we have to check for many different use cases. But when you actually get down to implementing the rules of the game, the code gets complex very quickly.
XIT SCRABBLE WORD FREE
We thought once we got the game built and had a way to check for a valid word, we would be free sailing. The above sounds obvious now but it was a big stumbling block for us along the way. Into each of these nested arrays, we render a div that most importantly contains a unique identifier we use to play the game. For each row, we create an empty array and then push in 15 arrays. We opted to create a board based upon nested arrays.
XIT SCRABBLE WORD HOW TO
We had to figure out how to render 225 squares, any one square that could be accessed at anytime. Following are some of the hurdles I and my pair partner had to overcome. It turns out building a Scrabble application is quite a bit harder than playing the physical board game. We would use javascript and jQuery with API calls to a 3rd party dictionary to confirm word submissions. So I thought it would be no big deal to build a Scrabble game, one of my favorite childhood games, in the three days we were were given to build a game of our choice. Scrabble: the ultimate friends and family gameĪll of this is pretty straightforward, assuming you have a decent vocabulary in the native language being played.
