Flipping puzzle | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
0

Flipping puzzle

This is a single player game which is played on a 3x3 table, each cell contains a value of 0 or 1. The player plays by performing "upside down" moves (flipping moves), where the player selects one of the cells and the contents of the cell as well as of all neighboring cells is reversed. (The "inversion" process e converts 0 to 1 and 1 to 0. Request. Enter a code that reads as input the initial state of table 3x3 and generates as a result a s

1st Feb 2020, 6:42 PM
Anxhela Petriti
Anxhela Petriti - avatar
1 ответ
+ 1
Check out checkers code. Seems similar to me
31st Mar 2021, 10:25 PM
patilkrunal
patilkrunal - avatar