Game city International Starting on the road to
- Slides: 14
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 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 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 on Sit down End No
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 dark? Yes Switch light on Sit down End No
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 Switch light on Sit down End No
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 light on Sit down End No
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 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?
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? ?
- What is paved and unpaved road
- 451 riverview parkway
- Griffin-ford latin american city model
- Hoyt model
- Primate cities
- Ho chi minh city international university
- Hình ảnh bộ gõ cơ thể búng tay
- Slidetodoc
- Bổ thể
- Tỉ lệ cơ thể trẻ em
- Gấu đi như thế nào
- Chụp tư thế worms-breton
- Hát lên người ơi alleluia
- Các môn thể thao bắt đầu bằng tiếng chạy
- Thế nào là hệ số cao nhất