воскресенье, 15 ноября 2015 г.

Introduction of n-minoes logic.

Will generate n-minoes in 3 by 3 grid. First I must find which kind of N to use (1,2,3,4,5). Then filter all that fit into 3x3 grid. And randomly select from chosen.

Logic is simple. But I must display configuration to player. So, will make it configurable (with activatable game objects represent cells of grid)

Generate n-mino by hand, I can minimize coding and select only valid one.

But for n-mino I must use a class or struct with template (which cells used, which is free and position on grid, and rotation)

Maybe I should mirror them, not only rotate. And must be specified position and transformation on grid (rotate,mirror vertical, mirror horizontal)