Premium
Angular Chessboard Click/Highlight (N×N Board)
Challenge summary
Build an interactive N×N chessboard in Angular. Clicking a cell should highlight it and clear the previous selection.
What you'll practice
- Render an N×N chessboard with alternating light/dark squares.
- Add a numeric size input, apply it when the field changes (Enter, blur or the arrows) rather than on every keystroke, and clamp the size between 2 and 20.
- Clicking a cell highlights it and removes highlight from the previously selected cell.
- Show selected cell coordinates (row/column) in a status region.
- Typing 12 and pressing Enter gives a 12×12 board. A size outside 2–20 is clamped, and the field then shows the clamped number.
What Premium unlocks
Premium unlocks the runnable workspace, behavioral checks, implementation walkthrough, and edge-case discussion. It also runs as an Interview Pressure Mode, in rounds that add requirements the way an interviewer does.
Free related practice
Upgrade to FrontendAtlas Premium to unlock this challenge. Already upgraded? Sign in to continue.
Premium is $24 a month or $99 a year, less in many countries.