alexrnguyen / nhl-grid

An NHL trivia game inspired by sudoku in which users must name a player that played for the teams given on each row and column of a grid.
https://nhlgrid.netlify.app
0 stars 0 forks source link

No verification that a grid is solvable #6

Open alexrnguyen opened 1 year ago

alexrnguyen commented 1 year ago

There is no way to determine if there are players that satisfy every square on a grid when teams are randomly generated. Expansion teams such as Seattle are quite problematic since there are relatively few players who have played for Seattle in their short history (57 as of August 2023). For example, no players have played for both the Seattle Kraken and the Vegas Golden Knights. Thus, a grid including the Kraken as a row team and the Golden Knights as a column team is unsolvable.

alexrnguyen commented 1 year ago

I have temporarily fixed this by removing Vegas and Seattle from the "pool" of teams the program chooses from when creating categories