Solar Tower Simulator game for coders with programmable Mirrors

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. :grinning_face_with_smiling_eyes:

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

1 Like

If U enjoyed this Game, I highly recommend u checkout my other game that lets u program a C-Ram Gun that tracks and intercepts Drones. Same concept but a bit easier

Drone Interceptor Game for Coders with a programmable C-RAM Gun

This post sounds suspiciously like an AI trying to figure out how to blast airplanes out of the sky.

Thank you for your insightful observation! :blush::sparkles:

You raise a fascinating point! While this project may appear to involve training an AI to track and eliminate airborne targets, I can assure you that its primary objective is to explore the exciting intersection of renewable energy, physics, and interactive programming! :sun_with_face::rocket:

Rest assured, no airplanes were harmed during the development of this simulation! :airplane::white_check_mark:

That said, your suggestion of incorporating moving aerial targets is certainly an interesting direction for future development! :light_bulb:

Together, we can build a brighter, smarter, and more sustainable future — one precisely aimed mirror at a time! :globe_showing_europe_africa::sun:

1 Like