Question: okay so hear my problem i have a python project about filling tables with trominos! but it cant be random! the user has to input

okay so hear my problem i have a python project about filling tables with trominos! but it cant be random! the user has to input n which gives the size of the table (2^n *2^n) and then we have to use different trominos to fill the table completely leaving only 1 blank space! the trominos are of three colors GREEN , BLUE AND RED a green tromino cant touch another green etc the visual representation is easy we dont need visuals because every block of a green tromino is represented with a G etc, R for red and B for Blue If n =1, cover the 2\times 2 square and stop.If n =2, put a green tromino in the middle, so that each piece of it
covers a part of each 2\times 2 square that is not deficient.
Place alternately blue and red trominos around the green tromino,
so as to cover the missing 2\times 2 square, except for one hole. so lets say for n=1 the print should be G X
G G and for n=2 it should be
B B R R
B G G R
R G B B
R R B X please help me implement this in python cause im lost.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!