Before we make anything – a house, a dress or a computer program – we should start with a design. Because there are two important parts to most programs – the interface (how it looks) and the code – we design these separately.
Currently the two classes are working on two different game designs - Maze Game & Chase Game. The first step in the design process was to determine the general objective and rules of the games. From their the pairs had to determine the specific conditions of their individual games and then identify the major components:
Below is a sample of their initial attempt at designing algorithms for their games:
- The easiest way to design the interface is by sketching it out on paper.
- To design the code, write out a list of steps it will have to perform in English.
This is known as an algorithm and is just like the steps in a food recipe. Solving problems like this is what programming is really about, rather than entering
commands on the computer.
All good programmers design algorithms before starting to code
Currently the two classes are working on two different game designs - Maze Game & Chase Game. The first step in the design process was to determine the general objective and rules of the games. From their the pairs had to determine the specific conditions of their individual games and then identify the major components:
- The Start
- Movement
- Winning/Losing
Below is a sample of their initial attempt at designing algorithms for their games: