• 309

## What will I learn?

The game is very simple to start. Rules are easy to understand and it only requires a few lines of code to move your wizard around.

The goal is of course to win the match! To do this, you can use several mathematical notions such as path computation, collisions, speed vector, or inertia to score effectively.

## LEARN ALGORITHMS ASSOCIATED WITH THIS PUZZLE

Genetic Algorithms by Sablier

## Learning Opportunities

This puzzle can be solved using the following concepts. Practice using these concepts and improve your skills.

## Statement

This Quidditch-inspired multiplayer puzzle takes place on a closed 2D map where you must score more points than your opponent. Try to simulate the next turns of the game in order to find the best shot to play and anticipate the trajectories.

A higher resolution is required to access the IDE

## Story

The world cup of Quidditch, the most famous sport of the wizarding world, is back. You’ve been waiting for this day for a long time, practicing almost every day. But rumors say that the rules have changed. Will the balls be different? Or maybe the scoring will change? Will you be able to adapt? Can you fly as fast as before? All these questions are bursting in your head as you slowly walk through the players tunnel, hearing the roaring cheers from the crowd. Spectators from all over the world have gathered for this fantastic competition. Time to shine!

Join the CodinGame community on Discord to chat about puzzle contributions, challenges, streams, blog articles - all that good stuff!
Online Participants