# attribution: https://www.puzzle-star-battle.com/?e=NTozLDM3Miw0MjQ=
# these are the same puzzles as the ones used in https://glitch.com/~star-battle-puzzle-party
# added a 14x14 one: https://www.puzzle-star-battle.com/?e=ODozLDIzOSwyMjA=


sample_puzzles = [
  {
    "name" : "1 star 5x5 #1",
    "stars": 1,
    "size": 5,
    "regions": [
      [0, 0, 1, 1, 1],
      [0, 0, 2, 2, 1],
      [3, 0, 2, 1, 1],
      [3, 3, 4, 4, 4],
      [3, 3, 3, 3, 3]
    ]
  },
  { "name": "1 star 5x5 #2",
    "stars": 1,
    "size": 5,
    "regions": [
      [0, 0, 1, 1, 1],
      [0, 1, 1, 2, 2],
      [3, 1, 4, 2, 2],
      [3, 3, 4, 2, 2],
      [3, 3, 2, 2, 2]
    ]
  },
  {  "name": "2 star 10x10 #1",
    "stars": 2,
    "size": 10,
    "regions": [
      [0, 0, 1, 2, 2, 3, 3, 3, 4, 4],
      [0, 0, 1, 2, 2, 3, 3, 3, 4, 4],
      [0, 0, 1, 1, 2, 5, 5, 3, 4, 4],
      [0, 0, 1, 1, 2, 2, 5, 5, 5, 6],
      [0, 0, 1, 1, 2, 2, 5, 5, 5, 6],
      [7, 0, 0, 1, 1, 5, 5, 6, 6, 6],
      [7, 7, 7, 1, 1, 1, 1, 6, 6, 6],
      [7, 7, 7, 7, 8, 8, 8, 8, 8, 8],
      [9, 9, 9, 9, 9, 8, 8, 8, 8, 8],
      [9, 9, 9, 9, 9, 8, 8, 8, 8, 8]
    ],
  },
  { "name": "3 star 14x14",
    "stars": 3,
    "size": 14,
    "regions": [
        [0,0,0,0,0,0,0,1,1,1,1,2,2,2],
        [3,3,3,0,4,4,0,0,0,0,1,2,2,2],
        [5,3,0,0,4,4,4,6,6,1,1,2,2,2],
        [5,3,0,4,4,6,6,6,6,1,1,1,1,2],
        [5,3,3,4,4,6,7,7,1,1,7,1,8,2],
        [5,4,3,4,6,6,6,7,7,7,7,7,8,8],
        [5,4,4,4,4,9,9,7,7,8,7,7,8,8],
        [ 5, 5, 5, 4, 4, 9, 7, 7, 7, 8, 8, 8, 8, 8],
        [ 5, 9, 9, 9, 9, 9, 9, 9,10,10,10,10,10, 8],
        [ 5, 5, 5, 9,11,11,11, 9,10,11,10,12,10, 8],
        [ 5,13, 9, 9, 9,11, 9, 9,11,11,12,12,10,10],
        [ 5,13,11, 9, 9,11, 9, 9,11,12,12,12,10,10],
        [ 5,13,11,11,11,11,11,11,11,11,12,12,12,12],
        [ 5,13,13,13,13,11,11,11,11,12,12,12,12,12]
    ],
  }
]

f9b362e598ae6c4766775ef4676db91225d9b1cd
<mask token>

sample_puzzles = [{'name': '1 star 5x5 #1', 'stars': 1, 'size': 5,
    'regions': [[0, 0, 1, 1, 1], [0, 0, 2, 2, 1], [3, 0, 2, 1, 1], [3, 3, 4,
    4, 4], [3, 3, 3, 3, 3]]}, {'name': '1 star 5x5 #2', 'stars': 1, 'size':
    5, 'regions': [[0, 0, 1, 1, 1], [0, 1, 1, 2, 2], [3, 1, 4, 2, 2], [3, 3,
    4, 2, 2], [3, 3, 2, 2, 2]]}, {'name': '2 star 10x10 #1', 'stars': 2,
    'size': 10, 'regions': [[0, 0, 1, 2, 2, 3, 3, 3, 4, 4], [0, 0, 1, 2, 2,
    3, 3, 3, 4, 4], [0, 0, 1, 1, 2, 5, 5, 3, 4, 4], [0, 0, 1, 1, 2, 2, 5, 5,
    5, 6], [0, 0, 1, 1, 2, 2, 5, 5, 5, 6], [7, 0, 0, 1, 1, 5, 5, 6, 6, 6],
    [7, 7, 7, 1, 1, 1, 1, 6, 6, 6], [7, 7, 7, 7, 8, 8, 8, 8, 8, 8], [9, 9, 
    9, 9, 9, 8, 8, 8, 8, 8], [9, 9, 9, 9, 9, 8, 8, 8, 8, 8]]}, {'name':
    '3 star 14x14', 'stars': 3, 'size': 14, 'regions': [[0, 0, 0, 0, 0, 0, 
    0, 1, 1, 1, 1, 2, 2, 2], [3, 3, 3, 0, 4, 4, 0, 0, 0, 0, 1, 2, 2, 2], [5,
    3, 0, 0, 4, 4, 4, 6, 6, 1, 1, 2, 2, 2], [5, 3, 0, 4, 4, 6, 6, 6, 6, 1, 
    1, 1, 1, 2], [5, 3, 3, 4, 4, 6, 7, 7, 1, 1, 7, 1, 8, 2], [5, 4, 3, 4, 6,
    6, 6, 7, 7, 7, 7, 7, 8, 8], [5, 4, 4, 4, 4, 9, 9, 7, 7, 8, 7, 7, 8, 8],
    [5, 5, 5, 4, 4, 9, 7, 7, 7, 8, 8, 8, 8, 8], [5, 9, 9, 9, 9, 9, 9, 9, 10,
    10, 10, 10, 10, 8], [5, 5, 5, 9, 11, 11, 11, 9, 10, 11, 10, 12, 10, 8],
    [5, 13, 9, 9, 9, 11, 9, 9, 11, 11, 12, 12, 10, 10], [5, 13, 11, 9, 9, 
    11, 9, 9, 11, 12, 12, 12, 10, 10], [5, 13, 11, 11, 11, 11, 11, 11, 11, 
    11, 12, 12, 12, 12], [5, 13, 13, 13, 13, 11, 11, 11, 11, 12, 12, 12, 12,
    12]]}]

# attribution: https://www.puzzle-star-battle.com/?e=NTozLDM3Miw0MjQ=
# these are the same puzzles as the ones used in https://glitch.com/~star-battle-puzzle-party
# added a 14x14 one: https://www.puzzle-star-battle.com/?e=ODozLDIzOSwyMjA=


sample_puzzles = [
  {
    "name" : "1 star 5x5 #1",
    "stars": 1,
    "size": 5,
    "regions": [
      [0, 0, 1, 1, 1],
      [0, 0, 2, 2, 1],
      [3, 0, 2, 1, 1],
      [3, 3, 4, 4, 4],
      [3, 3, 3, 3, 3]
    ]
  },
  { "name": "1 star 5x5 #2",
    "stars": 1,
    "size": 5,
    "regions": [
      [0, 0, 1, 1, 1],
      [0, 1, 1, 2, 2],
      [3, 1, 4, 2, 2],
      [3, 3, 4, 2, 2],
      [3, 3, 2, 2, 2]
    ]
  },
  {  "name": "2 star 10x10 #1",
    "stars": 2,
    "size": 10,
    "regions": [
      [0, 0, 1, 2, 2, 3, 3, 3, 4, 4],
      [0, 0, 1, 2, 2, 3, 3, 3, 4, 4],
      [0, 0, 1, 1, 2, 5, 5, 3, 4, 4],
      [0, 0, 1, 1, 2, 2, 5, 5, 5, 6],
      [0, 0, 1, 1, 2, 2, 5, 5, 5, 6],
      [7, 0, 0, 1, 1, 5, 5, 6, 6, 6],
      [7, 7, 7, 1, 1, 1, 1, 6, 6, 6],
      [7, 7, 7, 7, 8, 8, 8, 8, 8, 8],
      [9, 9, 9, 9, 9, 8, 8, 8, 8, 8],
      [9, 9, 9, 9, 9, 8, 8, 8, 8, 8]
    ],
  },
  { "name": "3 star 14x14",
    "stars": 3,
    "size": 14,
    "regions": [
        [0,0,0,0,0,0,0,1,1,1,1,2,2,2],
        [3,3,3,0,4,4,0,0,0,0,1,2,2,2],
        [5,3,0,0,4,4,4,6,6,1,1,2,2,2],
        [5,3,0,4,4,6,6,6,6,1,1,1,1,2],
        [5,3,3,4,4,6,7,7,1,1,7,1,8,2],
        [5,4,3,4,6,6,6,7,7,7,7,7,8,8],
        [5,4,4,4,4,9,9,7,7,8,7,7,8,8],
        [ 5, 5, 5, 4, 4, 9, 7, 7, 7, 8, 8, 8, 8, 8],
        [ 5, 9, 9, 9, 9, 9, 9, 9,10,10,10,10,10, 8],
        [ 5, 5, 5, 9,11,11,11, 9,10,11,10,12,10, 8],
        [ 5,13, 9, 9, 9,11, 9, 9,11,11,12,12,10,10],
        [ 5,13,11, 9, 9,11, 9, 9,11,12,12,12,10,10],
        [ 5,13,11,11,11,11,11,11,11,11,12,12,12,12],
        [ 5,13,13,13,13,11,11,11,11,12,12,12,12,12]
    ],
  }
]
