Learn to Code
John F. Dumas
contact me | resume | how it works | example programs | testimonials | main page

Php - Tetris Squares


► Problem: Output a collection of packed squares of random sizes and colors. Unless the square is of size: 1x1, do not allow 3 squares of the same size to appear consecutively horizontally or vertically. Use svg for your output.


► Example Output:



Source code


Back to Example Program Index


© John F. Dumas | johnfdumas@gmail.com | main page | top of page