Algorithm-Arena / weekly-challenge-25-grid-group

3 stars 0 forks source link

Submission - Spacegrid #1

Open nikpundik opened 3 months ago

nikpundik commented 3 months ago

For this challenge, I tried to imagine the biggest grid possible. It's interesting that with a few lines of code, it's possible to generate a huge amount of information. Since this feels as vast as the universe, I created a space exploration grid-based concept game where you have to go as far as possible with a limited amount of resources.

Each cell displays a group of planets which can be navigated and harvested to craft fuel in order to visit other systems. Technically, these grids are multidimensional, also stacking on the z-axis, but this is not implemented.

Screencast from 07-07-2024 12:31:51.webm

This "world" is deterministic and not randomly generated at each play. Each system is exactly the same every time. There should be approximately 5,846,006,549,323,609,725,703,417,380,304,771,379,687,606,714,368 planetary systems in the game.

play https://spacegrid.vercel.app/ source https://github.com/nikpundik/challenges/tree/main/spacegrid

Controls

- Right/Left Arrow: Navigate to the next or previous planet in the current system (cost: 1 fuel).
- Spacebar: Harvest resources from the current planet (cost: 1 fuel, yields half of the planet's resources).
- F: Craft fuel (cost: 1 of each resource per 1 fuel).
- 1/2/3/4/6/7/8/9: Visit a new planetary system (cost: 3 fuel).