Quantcast
Channel: GameDev.net
Viewing all articles
Browse latest Browse all 17825

Storing hashes as game states

$
0
0
Hi guys, is it a good idea to store hashes in a database as game states? Let's say I have a chess game, and a colomn of my database stores things like 1A1B1C... and each pair represents the position of some piece (first pair(1A) represents the position of 1st rock, second pair- position of the king etc...). I've read that Guild Wars uses databases as I said and every player in the game is a bunch of data stored in hashes. I know that a lot of developers use sockets, but I find it easier using a database to store states. Can you tell me the advantages and the disadvantages? Thank you.

Viewing all articles
Browse latest Browse all 17825

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>