Two Dimensional Village

I have just begun programming Swift, and am a novice, so please bear with me.

I would like a basic understanding of how to do the following:

  • Create a two dimensional array where each cell represents an individual
  • Represent that array graphically so that every pixel represents the person in that cell and the pixel would be pink if the person is female and blue if the person is male

Thank you in advance for any and all help!

What are the 2 dimensions of your array ? I see the first (the individual number), but what would be the second one ?

Yes, please expand on your notions of: cell pixel dimensions Does cell imply a grid (which might imply your second dimension)? Is pixel a screen pixel, or something else?

Two Dimensional Village
 
 
Q