gilben1 / robot-bounce

A javascript robot puzzle game
https://gilben1.github.io/robot-bounce/
MIT License
0 stars 0 forks source link

Add procedural board generation #9

Open gilben1 opened 4 years ago

gilben1 commented 4 years ago

Store quadrants, grab quadrants and load / rotate

gilben1 commented 4 years ago

Going a different route, going to pseudo generate using a seed and some rules.

Rules:

  1. all targets must appear within a corner piece (|_) or in a wall perpendicular to the edge of the board
  2. Robots cannot be placed starting on a target
  3. seed function that determines the following:
    • number of walls protruding from edges
    • number of free floating walls in the board space
    • placement of tiles
    • placement of robots

board seed will be able to generate the same board on separate runs