stevegrossi / sengoku

An online Risk-like game built with Elixir and Phoenix LiveView
https://www.playsengoku.com/
60 stars 3 forks source link

[Idea] Randomized, System-Generated Boards #48

Open stevegrossi opened 4 years ago

stevegrossi commented 4 years ago

47 introduced a board with hexagonal tiles:

Screen Shot 2020-04-04 at 4 44 01 PM

That gives me the idea of having randomized boards: the system could randomly generate hex tiles within a grid, adding variety to the gameplay. Perhaps there might even be a map builder at some point. That would certainly be easier than the hour-plus of SVG-wrangling it takes me to add new boards today 😅

stevegrossi commented 4 years ago

49 removed the need for custom SVG paths for every board: now boards are composed of a pre-existing set of hexagonal tiles. To build a randomized board, you'd just have to pick a tile to start with and jump from neighbor to neighbor (so that all tiles are connected) until you're done. Although you'd likely want to account for regions as well.