ninegaps game.pdf - (COMP-1400 Assignment#1(Due End of Friday October 4 2019 OBJECTIVE Through four to five assignments the students will learn how to

ninegaps game.pdf - (COMP-1400 Assignment#1(Due End of...

This preview shows page 1 - 2 out of 3 pages.

1(COMP-1400) Assignment #1 (Due End of Friday, October 4, 2019) OBJECTIVE: Through four to five assignments, the students will learn how to apply the concepts learned in the course to develop a simple game (i.e., a simpler, and text-based, version of the NineGaps game) using programming language C. In the first assignment, we are going to kick off the first step of developing the game. How? Yes, first write informal pseudocode for the game and then convert it to a flowchart. We will also prepare the skeleton of the C program for the game, and then in the next assignments, we will gradually complete the program step by step, based on what we learn in class. Part A: Brief introduction to the NineGaps game: NineGaps Game As you can see in the picture above, this game includes 9 square containers for numbers 1 to 9, as well as twelve basic math operations, addition, subtraction or multiplication. In the complete version of the game, we also have division operation. However, to make it simpler, in this version of the game that we are going to develop this semester, we won’t have division. We also have six other numbers that are the results of math operations, horizontally and vertically. In each horizontal or vertical line, there is a simple math equation. For instance, on the third horizontal line, we have 4 plus 9 minus 7, which is equal to 6. Depends on the level of difficulty that the player chooses at the beginning, some of these squares will be empty (i.e., between three to nine squares). The task of the player is to fill out those squares with the numbers in a way that
Background image
Image of page 2

You've reached the end of your free preview.

Want to read all 3 pages?

  • Summer '19
  • C standard library

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture