Написал я маленькую игру. Как называется, не знаю, но где-то ее видел. На поле N х N находятся кнопки 2-х цветов. Если нажать на одну из них, то строка и столбец, на пересечении которых находтися нажатая кнопка меняют цвет. Цель игры раскрасить все поле в один цвет.
Размер поля, размер кнопки, цвета легко изменяются в исходнике, причем размер окна подсчитывается автоматически. Поэкспериментируйте с этими значениями.
Если кто знает как раскрасить все поле в один цвет, или знает название этой игры, расскажите.
I don't see the game. But if pressing button change color of all cells in column and row including pressed cell, the result is following:
For even to even field you can always win: If you press all cells in column and row of specified cell (including specified cell), only specified cell change color.
For odd to odd field you can't win in all cases: if you press all cells in column and row of specified cell (excluding specified cell), nothing happens i.e. you have less than 2^(n*n) winable configurations.
If pressing button don't change color of pressed cell than you should switch odd and even words.