In this lab, we are getting familiar with pseudocoding to prepare for actual coding.
Nkem and I had some issues with understanding what the instructions were telling us to do. We felt that some of the directions used misleading/confusing words (ex. "high-level", "task" being used interchangeably with steps) or it wasn't clear enough what we were being asked to do (ex. author block). We hope we completed it correctly though.
We have a pseudocode for baking a cake, a JavaScript pseudocode for Minesweeper, and a Lab 4 page.
We made a pseudocode for baking a cake.
Baking a CakeWe made a pseudocode for Minesweeper.
// Summary. Lab 4 - Pseudocoding & Problem-solving
// Description. Minesweeper pseduocode
// @author Ashley Lu
// @since 2021.10.12
// print minesweeper board
// randomly generate bomb locations with each new map
// accept player input (player will click on a block on the board)
// check if the selected block has a bomb or not
// if there is a bomb, reset game
// clear out blocks based on input location
// calculate how many bombs are within each block’s 3x3 vicinity and print on designated block
// if the remaining blocks are all bomb spaces, then the player wins and the game is reset
Click to view images in a new tab! Image gallery code from w3schools.com.