+ 1

Wall Of Bricks

Tasks: 1. Recreate the wall of bricks, - Size of red/orange = 2 x size of blue/purple - White is white space - Use CSS Grids 2. Implement the following functionalities, - The bricks should turn into random colours on every click. - Click blocks to move the blocks to white space if its adjacent (Left, right, top, bottom) 3. Submit your solution as a codepen link. I have completed all functionalities except this Click blocks to move the blocks to white space if its adjacent (Left, right, top, bottom) Can anyone help me to complete this functionality. U can continue my code through the below link. https://codepen.io/ganesh-arch/pen/LYBYWxx

21st Dec 2022, 12:48 AM
Eedula Ganeshreddy
Eedula Ganeshreddy - avatar
3 odpowiedzi
+ 1
the clicks turn into random colors. what if a blue block turns orange or the other way around? should it resize? if theres 3 available white spaces which one to choose?
21st Dec 2022, 12:22 PM
arturop200
arturop200 - avatar
+ 1
Can you please write and share full code .I tried a lot but not getting output.
21st Dec 2022, 4:56 AM
Eedula Ganeshreddy
Eedula Ganeshreddy - avatar
0
Have to choose any one white space depending on the user wish
21st Dec 2022, 3:08 PM
Eedula Ganeshreddy
Eedula Ganeshreddy - avatar