Players score points in the same way as they do in clan quests. Whether the total points you score are equal to a code depends on the points you score on the game board and on your clan multiplier.
The number of points each player scores is calculated as: A = B * C, where
A is the total points you score,
B is the points scored on the board, and
C is the clan multiplier.
So, in order to score the precise number of points required, you’ll need to check your clan multiplier as well as finding words of a certain value.
You also need to be aware of all the different multipliers that you can get from Wardrobe items and ad bonuses. You’ll then need to select certain multipliers and get a certain number of points, so that the sum of products of each selected multiplier for the respective points will eventually give the code you need.