+ 1

Fix Rivers in 2D Terrain Map Generator

I have the following Python code: https://sololearn.com/compiler-playground/c3oMHnlNgilW/?ref=app And here the rivers are being generated weirdly. At first there were many issues like rivers not generating, small patches of blue river like canals instead of connected etc. I've edited my code and have come to this point(the code right now) and right now the rivers are still generating weirdly(one river going vertically/horizontally in a straight(or almost) line while other two, do the opposite(vertical if the other two river lines were horizontal, horizontal if vertical) going from one point to another of the map. And I don't really know how to fix this because as I edit it, it brings even more bugs. I would appreciate if someone would guide me in how I can achieve natural, realistic and proper looking rivers.

3rd Sep 2025, 2:41 PM
Afnan Irtesum Chowdhury
Afnan Irtesum Chowdhury - avatar
1 ответ
3rd Sep 2025, 5:21 PM
Ushasi Bhattacharya