Block Based Approach

Overview

Program

Block Based Approach

In Block Based Approach, blocks are in puzzle-piece shapes that are used to create code. The blocks connect to each other vertically, where each block type has its own shape and its own slot shape for it to be inserted into. Blocks are often easier to work with than text-based programming, as blocks do not need to be memorized like typed commands and syntax errors don’t occur.

After Selecting ‘Block Based’ from ‘Program’ section A section will appear as shown below where we can write our codes

Block Shapes :

There are six different block shapes: Hat, Stack, Boolean, Reporter, C, and Cap.
Hat Blocks :
Hat Blocks are the blocks that start every script and is always placed on the top of other blocks. They are shaped with a rounded top and a bump at the bottom so that you can only block below them.
Stack Blocks :
Stack Blocks are the blocks that perform the main commands. They are shaped with a notch at the top and a bump on the bottom so that blocks can be placed above and below them.
Boolean Blocks :
Boolean blocks are elongated hexagonal blocks, which contain a condition that is either true or false. For Example: If you ask a computer “is 2 x 0 = 0 ? “ it will either tell you ‘True’ or ‘False’.
Reporter Blocks :
Each Reporter Block contains a value, that can hold numerical value and character string. A reporter block can be fit into another block as long as the slots fit. For Example: If you ask a friend “What is 2+2 ?” they would answer “4”. Reporter blocks are shaped with rounded edges.
C Blocks :
C Blocks are the blocks that take the shape of ‘C’. These blocks are also known as ‘Wrap Blocks’, C Blocks can be bumped at the bottom or capped. These blocks loop the blocks within the Cs or checks if a condition is true.
Cap Blocks :
Cap Blocks are the blocks that end scripts or project, they can be put only under all blocks. They are shaped with a notch at the top and a flat bottom, so you cannot place any blocks below them.

Block Categories :

Block Categories are divided into 4 categories: ‘Events’, ‘Control’, ‘Operators’, and ‘PC’. Each category has blocks that perform a different function.
Events :
Event blocks are colour-coded light yellow and are used to sense and control events that trigger scripts to run.
Control :
Control blocks are the blocks that control the scripts.
Operators :
Operator blocks are the blocks that perform math functions and string handling.
PC :
PC extension has blocks that enable interaction with the Play Computer in projects.
Newsletter Signup

Subscribe to our weekly newsletter below and never miss the latest product or an exclusive offer.

ABC