Game city International Starting on the road to

  • Slides: 14
Download presentation
Game city International Starting on the road to programming. This project is all about

Game city International Starting on the road to programming. This project is all about learning how to program using scratch and other languages. The aim is to be able to eventually create your own games.

Game City International Objectives Know: How processes and data flows in a simple game

Game City International Objectives Know: How processes and data flows in a simple game Understand: What an algorithm is. Be able to: Create a process flow diagram for some simple games.

What is a flowchart? • A diagram which is made up of specific symbols

What is a flowchart? • A diagram which is made up of specific symbols e. g. rectangles and diamonds • The diagram represents a sequence of events • Each step is shown in the correct order from the start through to the end

Simple Flowchart Start Enter room Entering a room Is it dark? Yes Switch light

Simple Flowchart Start Enter room Entering a room Is it dark? Yes Switch light on Sit down End No

Guidelines for flowcharts All flow charts start with this symbol and only one arrow

Guidelines for flowcharts All flow charts start with this symbol and only one arrow leaves it. Start All flow charts finish with this symbol and only one arrow leads into it End

Simple Flowchart Entering a room Start Enter room Start / End symbols Is it

Simple Flowchart Entering a room Start Enter room Start / End symbols Is it dark? Yes Switch light on Sit down End No

Guidelines for flowcharts • Flowcharts have processes (actions or instructions) which need to be

Guidelines for flowcharts • Flowcharts have processes (actions or instructions) which need to be done. • Actions are represented by a rectangle with an arrow going in and one coming out

Simple Flowchart Entering a room Start Enter room Process/ action Is it dark? Yes

Simple Flowchart Entering a room Start Enter room Process/ action Is it dark? Yes Switch light on Sit down End No

Guidelines for flowcharts • Flowcharts also contain ‘decisions’. • Decisions are usually in the

Guidelines for flowcharts • Flowcharts also contain ‘decisions’. • Decisions are usually in the form of a question i. e. ‘is it dark? ’ • Decisions are represented by a diamond shape • Decisions have a number of options leaving them. No Yes

Simple Flowchart Entering a room Start Enter room Decision Is it dark? Yes Switch

Simple Flowchart Entering a room Start Enter room Decision Is it dark? Yes Switch light on Sit down End No

Ordering a burger Start In pairs, identify: • • The start The end The

Ordering a burger Start In pairs, identify: • • The start The end The processes The decisions Order burger Want fries? Yes Order fries No Want drink? No Pay cashier End Yes Order drink

Looking at the game of Snap – the following basic algorithm shows how the

Looking at the game of Snap – the following basic algorithm shows how the game is played. • Players each deal out cards until there is a match. • If a player calls out snap he/she wins the hand. • Continue until one player loses all his cards • The player with all the cards wins.

Will this be enough for a computer to understand What to do?

Will this be enough for a computer to understand What to do?

Using flow chart diagrams can you show a step by step process of how

Using flow chart diagrams can you show a step by step process of how a snap game works? Start Card from player 1 Card from player 2 Can you make the process more efficient by creating procedures out of some of the actions? ?