Coding Al Rien – SCOPES-DF

Lesson Details

Age Ranges
Fab-Programming.2, Fab-Design.2
Additional Contributors

You need to login or register to bookmark/favorite this content.


Studio 5
Studio 5
Informal educator
In line with the Ministry of Communications and Information Technology’s Digital Youth Strategy, STUDIO 5 is mainly aimed at nurturing youth as digital learners by sharpening their 21st century learning skills, as they develop in an all-pervasive digital environment. In… Read More


In this workshop, participants will build a digital simulation of the traditional Qatari game, Al-Rien. They will use the Co-spaces software to design the interface and program the game logic.

What You'll Need

  • Computer/laptop.
  • Internet connection.
  • CoSpaces platform:


The Instructions


During the presentation, the participants will discuss the purpose of the workshop and different topics to learn and exchange knowledge. They will learn about the traditional Qatari game "Al Rien". They will also learn how we can connect the past to the present by creating this VR project as a digital simulation of the game played in the past.

1- Who are we and what we do in Studio 56.

  • What is the meaning of a Fablab.
  • The different tools and machines found in a Fablab.
  • The different zones found in Studio 5/6: Technology zone, creativity zone, and software zone.

2- Intro to Microsoft Teams interface.

  • The meaning of every button showed on the screen.

4- Introduce the client letter.

  • Discuss the story behind this workshop; what is Al Rien game and how it is played.
  • The importance of keeping the history alive through the new generations.
  • How we can connect the past to the present by creating a digital simulation of Al Rien game.

5- The meaning of Virtual Reality.

  • What is Virtual reality.

7- Video about Virtual Reality.

  • Discuss the output of the video with the participants.

8- VR examples.

  • Ask the participants if they had any VR experience before, if yes, how was the experience.

10- Introduction to Co-spaces user-interface.

  • What is Cospaces platform, and what is it used for.
  • Explain the user-interface of the platform.

11- What we will be doing today.

  • Build the prototype; a 3D simulation of al Rien game on Cospaces.



The participants are going to follow the steps to build the digital prototype on Cospaces platform. As a result they will have a 3D scene of Qatar in the past, with different characters and components. They will also be able to play the game by clicking on the throwing rock.

1- Introduction to co-spaces platform.

  • Explain how you can add different components from library, and the different categories in the library.
  • Explain how you can search for and upload 3D models, images, videos, and sound files.
  • Explain how you can add a ready environment to the scene.
  • select the desert environment as we will be designing Qatar in the past.
  • Explain how you can use the mouse and keyboard to navigate around the 3D world.
  • Arrows for rotation; up, down, right, left.
  • Right click+hover to change the scene view.
  • Explain the purpose of the Camera movement and the different Camera modes; Fixed position, flying, walking, ..etc.
  • Select the “walking” mode.

2- Design the environment (Qatar in the past)

  • Add 3D components; palm trees, houses, camels, horses, ..etc.
  • Import an Arabian music sound file and use it as a background sound.

3- Design the characters

  • Add 6 characters from the library.
  • Explain the different properties of the characters; colors, looks, animation, speech.
  • Customize the looks of the characters by changing the properties.
  • Make two teams of the characters, for example one team wearing blue, and another one wearing green.

4- Add the rocks

  • Add 3 rocks and rename them to: stable rock 1, stable rock 2, stable rock 3.
  • Place the 3 stable rocks on top of each other.
  • Add another rocks and rename it to: Throwing rock.
  • For increased difficulty, place the throwing rock in a hidden place, then ask the player to look for it.
  • Enable the “use in “Co-blocks” property, under the “Code” category for all rocks.

5- Program the rocks

  • Use block coding to program the simulation of the rocks shuttering.
  • When the player clicks on the throwing rock, the other 3 stable rocks will move in different directions for 3 seconds, then disappear.

6- Explain how you can share the game with others.

  • Click on the “Share” button on the menu, then copy the link of the game and share it!

6- Test the game and fix any issues found.


  • (Fab-Programming.2): I can create a program with more than one instruction.
  • (Fab-Design.2): I can participate in design reviews with prepared presentation materials as well as give and receive feedback from peers.

Lesson Feedback