Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 114 - 2609_Logiccode
P. 114

    11  Drag the splash block
                        from the Game blocks                                                       12 Type Number is even
                        category and drop it                                                       in the message area of
                        inside the if block.                                                       the splash block.

                        13 Drag the splash block                                                   13 Type Number is odd
                        from the Game blocks                                                       in the message area of
                        category and drop it                                                       the splash block.
                        inside the else block.

                      The output appears on the Game simulator. Change the value of the number variable in the set
                      to block to see more output.

                           PURE        You can test your games on physical devices like the Adafruit Pybadge, Pygamer, and even
                           FACT        on the BBC micro.

                             Hashtag

                           #Simulator: It is a program that copies real-world actions so we can practise or test safely on a computer.
                           #Control flow: It decides the order in which steps in a program run.

                       112  Premium Edition-VII

| 109 110 111 112 113 114 115 116 117 118 119 |