{"size": 1037, "ext": "scrbl", "max_stars_repo_path": "htdp-doc/teachpack/htdp/scribblings/show-queen.scrbl", "max_stars_repo_name": "bdeket/htdp", "max_stars_repo_stars_event_min_datetime": "2015-01-14T20:28:41.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-20T04:04:26.000Z", "max_issues_repo_path": "htdp-doc/teachpack/htdp/scribblings/show-queen.scrbl", "max_issues_repo_name": "bdeket/htdp", "max_issues_repo_issues_event_min_datetime": "2015-01-14T19:50:21.000Z", "max_issues_repo_issues_event_max_datetime": "2022-02-19T21:38:00.000Z", "max_forks_repo_path": "htdp-doc/teachpack/htdp/scribblings/show-queen.scrbl", "max_forks_repo_name": "bdeket/htdp", "max_forks_repo_forks_event_min_datetime": "2015-01-14T19:11:38.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-24T05:11:39.000Z"}
{"max_stars_count": 85, "max_issues_count": 132, "max_forks_count": 81, "avg_line_length": 38.4074074074, "max_line_length": 73, "alphanum_fraction": 0.7695274831}
#lang scribble/doc

@(require scribble/manual "shared.rkt"
          (for-label racket teachpack/htdp/show-queen))

@teachpack["show-queen"]{Queens}

@;declare-exporting[teachpack/htdp/show-queen]
@defmodule[#:require-form beginner-require htdp/show-queen]

The teachpack provides the function @racket[show-queen], which implements
a GUI for exploring the n-queens problem.

@defproc[(show-queen [board (list-of (list-of boolean?))]) true]{The
function @racket[show-queen] consumes a list of 
lists of booleans that describes a @racket[board]. Each of the inner
lists must have the same length as the outer list. The
@racket[true]s correspond to positions where queens are,
and the @racket[false]s correspond to empty squares. The
function returns nothing.

In the GUI window that @racket[show-queen] opens, the
red and orange dots show where the queens are. The green dot
shows where the mouse cursor is. Each queen that threatens
the green spot is shown in red, and the queens that do not
threaten the green spot are shown in orange.}
