Algorithmically initialize special Scrabble tiles?

Is there an algorithm for initializing tiles on a scrabble panel, and not for manually laying them:

board[0][3]->setType(ScrabbleTile::TripleWord); board[0][6]->setType(ScrabbleTile::TripleLetter); board[0][8]->setType(ScrabbleTile::TripleLetter); board[0][11]->setType(ScrabbleTile::TripleWord); ... 

It looks like there might be a pattern looking at the board, but this is not immediately obvious to me.

+4
source share
1 answer

Scrabble is symmetrical in both horizontal and vertical centerlines. Therefore, you could get some efficiency by setting a quarter of the board and then flipping it to get half the board, and then clicking again to get the whole board.

Edit: It is also diagonal symmetrical, so you should be able to sow a board from a small triangle and replicate it from there.

+2
source

Source: https://habr.com/ru/post/1386966/


All Articles