lamnguyenkhoa / simila-card

Card game where you link similar card with together
https://johnminer.itch.io/similacard
1 stars 1 forks source link

Level Generator #1

Open nvatuan opened 8 months ago

nvatuan commented 8 months ago

Here I propose a level generator for the game. The goal is too:

1. Maker can generate levels with difficulty parameter

2. Maker can generate levels with starter cards.

3. Level size

P/S

nvatuan commented 8 months ago

Background:

Example

nvatuan commented 8 months ago

Input can be:

Next We can either specify:

Or specify layout:

Output can be:

free_cards = [
  { "color": 'red', "number": 3 },  { "color": 'blue', "number": 3 }
]
level_layout = [
  [
    { "color": 'red', "number": 1 }, # locked card
    None,
    None,
    { "color": 'blue', "number": 7 }, # locked card
  ]
]