Students will develop an app to track the score for point-based competitions like football or any other sports.
| Creators | Jan Pawlowski, Martin Idzik |
| Subject | Computer Science, Sports |
| Length | 90 Minutes |
| Pedagogical Approach | Explorative Learning |
| Competencies | Technologies: App Inventor, Block languages |
| Grades | Grade 5 to 9 |
| Technologies | MIT App Inventor |
Learning Activities
Introduction: The teacher introduces the topic using an example (soccer). Together, the students can consider which games/sports can be supported with the app.
Development: The students develop the app together. The individual steps are given on the worksheet.
Reflection: The students try out the app by playing games and keeping score with the help of the app.
Worksheet: Step by step to the digital scoreboard
Dear children,
the following worksheet will guide you through the development of your scoreboard app.
To do this, first open the App Inventor.
- Now open a new project “Scoreboard”
The scoreboard should be able to do the following:
- For team A and team B should capture a display of goals scored / points in a match.
- There should be a button to increase the goals scored
- There should be a key to reset the counter to 0
- A text field is to be used, with which the number of points is displayed
To arrange several elements among themselves, use the “Arrangement -> Vertical alignment” element
Have fun!
And this is what your screen could look like:
Now the blocks must be designed in such a way that you have a counter available for each team. To do this, use one variable each with the starting value 0.
Now you use the already known block “If key.click”: For key 1 the variable is increased by 1, for key 2 it is set to 0. Then set the value of the text field to this number.
And this is how it might look:
A small extension:
Uses another key to display the final result. The final result should be displayed below the count. The name of the winning team and the result should be displayed. A draw is also possible. After the display, use another key to return to the scoreboard (back to 0).
This is what your blocks and the app should look like….
