Tournament-App for Sports Events

Students expand the Digital Scoreboard to include the ability to record tournaments for different teams there as well.

CreatorsJan Pawlowski, Martin Idzik
SubjectComputer Science, Sports
Length90 Minutes
Pedagogical ApproachExplorative Learning
CompetenciesTechnologies: App Inventor, Block languages
GradesGrade 5 to 9
TechnologiesMIT App Inventor

Learning Activities

Introduction: The teacher briefly introduces the topic and refers to the learning scenario “digital scoreboard”.

Development: The students implement the functions such as the creation of a team, the recording of game results. The individual steps are given by the worksheet.

Reflection: The students play a tournament and test their app.

Worksheet: Step by step to the tournament app

Dear children,https://lh4.googleusercontent.com/3S1S-te6xX23taxIzN5ITm06UDG1EL5OQzrFwTkCUpJWm0QfQUM2-8SEEGcfPXQMVCeQpahfj7x1XIQAZClRt1OPUlfjcjrD9F7pFaWoGeQXzIuCl0kG5681eUWldermZPBKxz4J

the following worksheet will guide you through the development of your tournament app. 

First open the App Inventor. Now open your already existing project “Scoreboard”. You will now expand this project.

The scoreboard should be able to do the following:

  • Two teams are to hold a tournament. 
  • The players are to be recorded – all players are to be stored in a list.
  • Each team should be able to take and save a photo via the device. 
  • 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
  • At “End of game” the result is stored in a database.
  • At the end of the tournament, the winner is displayed.

To arrange several elements one below the other, use the “Arrangement -> Vertical alignment” element

Have fun!

Your screen could look like this. 

https://lh5.googleusercontent.com/K5VxGhekq8wYdc0YYtaMYBdtYdgjkvBKfppe2UtcxMxcgwykWJ18q3Hj02kstPC0bV_ZvPpbLDEeXKo5tQNu5NpwYtyvb57lYT41_prriDJ41u5vlppb4F6vmIuUapYpHiE7iW5s
  • Now we will go through the individual elements step by step. 

Add teams

Here you first need a list – in this list the names of the players are stored. You first create an empty list. Then you need a text field where you add a name of a player. You can then also show a field where the whole list of players is displayed. 

This is what it could look like.

https://lh6.googleusercontent.com/aMPaR6n8vKNHSCQ7Bx82Lqaqq-Ce3topeBHt7acWQTY_w9UetSVsxM_Fb5L-xPdLTF_AHelHm333bSbAhhDXOurSwO9Ykgh6BClifp8zxTxpFywnP0-8IL7gzKACjoMWXDJwQfel

Add image

A team should be able to add a picture. first you should have a “blank picture” indicating that no photo has been taken yet.

Then you can call the camera. You still have to save the picture in the right place. (Attention, here you have to distinguish between the teams)

It could look like this

https://lh5.googleusercontent.com/G-ZTqFPyqsZ_z_Q8yFRI1vy_Q0cLaiji0S1IDBn3OoGrAvhi9xnb_o9soZLtmodyZdFOOqs4XuUSFPFCP2GSs-BC3JfMRZMsJIO44HhA4y7JTBY4TzCDfh6VfKzRQ33yRPX7Usr4

Capture game

You should now record the score for each game. If you want, you can reuse the scoreboard from the last app. You still need the following additional elements:

  • Start tournament: You start a new tournament, all results are set to zero. You can record the goals again. 
  • The points of each team are stored in a list. After each game, the goals must be reset on the display.
  • After the tournament (“End tournament”), an evaluation is to be generated that shows the victories of the two teams and the draws. As total points there are 3 points for each victory and one point for a draw.

A possible solution for the end of the game – it is queried whether the same number or one team has scored more goals. Thus, in case of a draw, one variable per team is increased by 1. After that you set the goals back to zero and a new game can start.

https://lh3.googleusercontent.com/y7C5tNa838xhZILVis3rVdmk0x5GQ83KTrBDH_0NsYF57Gz8aUTinbfc3paU9TIjkiDyoHKUdgrgI_Xzk3tHAlvNJM4190HapnbBLlzuPvcBVP02KFMn9-L81Pa36tGfqiHrBgLc

A possible solution for the end of the tournament

https://lh6.googleusercontent.com/REwRJ6vWqzbm4XTPh6H4N99S_hkOMCT3il0DSvQwjjGnATcRkqx7zKHSXR6cwq9ADH4ZB8wIrOBCitHjzhpS5adWhjqDP2wYgV6g93Cfvli4FKPZzJJamnZ1sTTyf_J-eCoxuWb8

Can you think of any other extensions?

Published by Jan Pawlowski

Professor in Business Information Systems at Ruhr West University of Applied Sciences

Leave a Reply

Discover more from Computational Thinking and Acting

Subscribe now to keep reading and get access to the full archive.

Continue reading