I'm developing a web-based, turn-based strategy game which takes place on a 10x10 board.
Each tile represents an area of land and has its own set of statistics (eg, income, population, fertility, natural resources).
Each time the client loads it will download all of the information for the game (ie, loading the stats of only one tile is not necessary). The board size is static, that is, there are always exactly 100 tiles.
What would be the best option for storing this data on the server? (ignoring keys and such)
- In a database: a table with (num of statistics per tile) fields and 100 records for each game.
- In a database: a table with one record for each game and 100*(num stats/tile) fields
- In a flat file.