MetroCS / redistricting

Experimentation with geopolitical redistricting
GNU Affero General Public License v3.0
5 stars 75 forks source link

[UserStory] Add Region(int,int) constructor with parms for number of rows and columns #184

Closed jody closed 2 years ago

jody commented 2 years ago

User Story

Essential components

Story

As a user or educator
I want a Region constructor that accepts two integer parameters corresponding to a desired number of rows and columns of a full-populated rectangular region
so that I can create a rectangular, non-square, region by specifying the number of rows and columns.

Acceptance Criteria

Supporting Information

The Region class has a constructor taking a single int parameter (numberOfLocations) and constructs a square region. https://github.com/MetroCS/redistricting/blob/dacf6fd20624a4dcd720afce5516a5d3201f0f99/src/metrocs/redistricting/Region.java#L51-L59)

Dependencies

Depends On

(Issues on which this story depends)

Dependents

(Issues dependent on this story)