In this lab, we're going to dive into two crucial aspects of our Connect Four game development: creating an IPO (Input-Process-Output) Diagram and designing the console screen layout.
An IPO diagram is a simple visual tool to help break down the game into Inputs, Processes, and Outputs. This will help you understand how the game functions at a high level.
An IPO (Input-Process-Output) Diagram is a high-level visual representation of how a program or function works. Here's how to create one:
Inputs: What data or commands does the program receive? For a simple program like a calculator, inputs might be numbers and operations (like addition or subtraction).
Processes: What does the program do with these inputs? In our calculator example, processes include adding, subtracting, multiplying, or dividing the numbers.
Outputs: What is the result of the program? The output of the calculator is the result of the operation.
Let's create an IPO Diagram for Connect Four together.
Inputs: What actions or data do players provide in Connect Four?
Outputs: What does the game display or result in?
Break off into pairs, think about the 'Process' stage for Connect Four.
Consider how the game takes the inputs and transforms them into the outputs.
Think about the rules of Connect Four. How does the game decide where a disc goes, or who wins?
Remember, processes are often actions or decisions made by the program, but for an IPO Diagram, keep it simple.
UI (User Interface) design involves planning how information is displayed and how users interact with the program.
In some ways this will be similar to or IPO Diagram as we will extensively look at the inputs and outputs of the program.
Inputs: How will players input their moves?
Outputs: What will the players see on the screen?
Remember, it is a console program, so you don't have much in the way of graphics to work with. You can only use characters, generally the ones you see on the keyboard, to represent your game.
In pairs, sketch a design for the game's console screen
Present your design to the class
Discuss the different designs and the pros/cons of each