MCPcopy Create free account
hub / github.com/dhbloo/rapfi / fillPattern4LUT

Function fillPattern4LUT

Rapfi/game/pattern.cpp:394–404  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

392
393template <bool Forbid>
394void fillPattern4LUT(Pattern4Score p4Score[PCODE_NB])
395{
396 for (int i = 0; i < PATTERN_NB; i++)
397 for (int j = 0; j < PATTERN_NB; j++)
398 for (int m = 0; m < PATTERN_NB; m++)
399 for (int n = 0; n < PATTERN_NB; n++) {
400 PatternCode pcode = PatternConfig::PCODE[i][j][m][n];
401 p4Score[pcode] =
402 getPattern4<Forbid>((Pattern)i, (Pattern)j, (Pattern)m, (Pattern)n);
403 }
404}
405
406void fillPatternCodeLUT(PatternCode pcode[PATTERN_NB][PATTERN_NB][PATTERN_NB][PATTERN_NB])
407{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected