The deadline for lab 7 is Friday Nov 17 11:59pm (note the adjusted day).
Your task this week is to reverse engineer the GUI shown in this video.
The function run consumes arguments for number of columns, number of rows, and cell side length in pixels. At 0:11, I strike a lowercase c, which clears away all marks. The black circles that appear for an instant when I click are part of the screen recording, not part of the DrRacket application, so you don't need to emulate those.
Please note the world quits exactly when all cells are marked (with circles) and the mouse is off the grid.
Make sure all the elements of this gui are also in yours, but use whatever data structures you like and don't fret over details such as matching colors or font sizes exactly. There's also an odd glitch in the software where, when the mouse is off the 4x4 grid, the right and bottom edges of the cell field look a little thicker. I have no idea what that's about; just ignore it.
I used a function called place-image to highlight the current location and put the circles in the right place. Please look into this function. I find it less confusing than the various flavors of overlay and underlay.
Please submit lab7/lab7.rkt by the deadline. You may submit other files along with it if you wish.
This is the first time we've ever presented an assignment this way; it's something of a new idea for us. Does it work? –ams