Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Recreating the Fool's Mate Chess Move with CSS Grid (chenhuijing.com)
25 points by skilled on July 18, 2019 | hide | past | favorite | 2 comments


> If you’re expecting some really smart solution to this problem, I’m sorry to disappoint but my solution is the most un-smart of all. Each piece that needed to move was in its own grid, and all the grids were stacked on top of each other with positioning.

Yeah, definitely a weird and complicated way to solve the problem. Much simpler to just use absolute positions for the pieces and a grid or background image for the board.


It's really important to view this in Firefox otherwise you won't see what it's supposed to look like!




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: