  Skills in the field of computer science (CS) are increasingly in demand.
Often traditional teaching approaches are not sufficient to teach complex
computational concepts. Interactive and digital learning experiences have been
shown as valuable tools to support learners in understanding. However, the
missing social interaction affects the quality of the learning experience.
Adding collaborative and competitive elements can make the virtual learning
environment even more social, engaging, and motivating for learners. In this
paper, we explore the potential of collaborative and competitive elements in an
interactive virtual laboratory environment with a focus on computer science
education. In an AB study with 35 CS students, we investigated the
effectiveness of collaborative and competitive elements in a virtual laboratory
using interactive visualizations of sorting algorithms.
