Hello everyone!
Here’s another coding game in my series of simulation-based programming challenges.
This time, your mission is to program a Solar Power Tower and achieve the highest possible energy yield for the day, measured in MWh.
The simulation contains around 2,000 heliostat mirrors. Using the embedded code editor, you need to program the mirrors to track the Sun and continuously reflect sunlight toward the receiver at the top of the tower.
Your code is given:
-
the Sun’s current azimuth and elevation
-
the receiver’s position
-
the position of each mirror
From that, you need to calculate the correct orientation for each mirror and control it using:
mirror.setAzimuth(rad)
mirror.setAltitude(rad)
The APIs and available data are explained in more detail inside the game.
This one is probably a little more challenging than the Drone Interceptor coding game I posted earlier. ![]()
With around 2,000 mirrors, there’s also plenty of room for optimization. This is still an early release, mainly to get feedback and let people poke around with the idea, so please let me know what you think!
Ultimately, I’d like this to grow into interactive educational content for learning how solar power towers and heliostat fields work.
Play it here: https://solar-power-tower.netlify.app/
Repo: GitHub - YosanAI/solar-power-tower-simulation · GitHub
