To generate a board dynamically, simply load:
https://api.kodenames.io/create_game
All below _GET parameters are optional:
Parameter | Data Type | Default | Description |
---|---|---|---|
teams |
INTEGER (2, 3, 4) | 2 | The number of players in the game. |
rows |
INTEGER (2 - 20) | 5 | Total number of rows |
columns |
INTEGER (2 - 20) | 5 | Total number of columns |
ass |
INTEGER (0 - 20) | 1 | Total nuke count (Black tiles) |
No API key required. Simply load the url with optional get parameters.
E.G: https://api.kodenames.io/create_game?players=2&rows=5&cols=5&ass=1