Activity 01
Pair Programming: Game Grid Builder
Pairs declare a 5x5 2D array to represent a game board. They code functions to print the grid, place player symbols at specific row-column positions, and check boundaries. Pairs test by playing a simple capture game, then swap roles to extend with win detection.
Explain how a 2D array can model a spreadsheet or a game board.
Facilitation TipDuring Pair Programming: Game Grid Builder, ask pairs to swap driver/navigator roles every 10 minutes to keep both students engaged with grid creation and logic.
What to look forProvide students with a small 3x3 grid representing a tic-tac-toe board. Ask them to write down the indices for the center square and one corner square. Then, ask them to write a single line of pseudocode to place an 'X' in the center square.