Please enable JavaScript to use CodeHS

Gerrymandering

In this activity, students create a game that helps visualize how gerrymandering works.

Medium

8 Hours

High School

Project Description

source) <br> ##Your Task In this project, you'll use JavaScript graphics to create a game that visualizes how gerrymandering works! In the game, the user is given 25 squares, 15 green and 10 purple. These 25 squares will be used to create 5 districts, each with 5 squares. If a district has more green squares than purple squares (e.g. 3 green and 2 purple) then the district is considered a green district. Likewise, if a district has more purple squares than green (e.g. 4 purple and 1 green) then the district is considered purple. <br> The goal of the game is to figure out a way to create the districts so that purple wins. To do this, the user will click on each square to select it and add it to a district. Once 5 squares are selected, a district is complete and then the user starts over creating a new district. ">

Project Demo

Explore this program before assigning it!

Project Overview

Here is an outline of the project activities:
Gerrymandering Intro
How to Play
Gerrymandering Code
Gerrymandering Reflection
Gerrymandering Reflection