433

Simulation in p5.js

Fall 2022

Course: Computational Media

Instructor: John Henry Thompson

- 433

433 - 4 defenders, 3 midfielders, 3 forwards — one of the most classical formations in soccer.

This project simulates the pressing strategy of this formation.

The initial position of each player is set, and they press when one of the opponents holds the ball (the cursor). The players run towards the ball with the given speed. However, each player has a specific area to cover; if exceeded, a player will slow down (but not come to a complete stop), helping to maintain the overall formation. Possible passing lines are also drawn for better visualization.

Players will only move when the ball (cursor) is on the pitch (canvas). When the mouse is pressed, players stop pressing and move backward to form the initial 433 position. However, it's unlikely that all players can return to their exact initial positions. Similar to real-life soccer, the formation and strategy are constantly evolving during the game. Everything is dynamic.

Sliders for ball size (left), player size (middle), and goalkeeper (GK) moving speed (right) were added. The sliders are aligned next to the pitch for ease of use and aesthetics.