AlluMihu

Members
  • Content count

    2
  • Joined

  • Last visited

Community Reputation

106 Neutral

About AlluMihu

  • Rank
    Newbie
  1. Storing hashes as game states

    Ok, I misused hashes, because I thought you can get the original data back. Still, I think the example explains pretty well what I wanted to say. Consider two players playing chess online, on a website. The game starts and player one(A) plays with white, his colomn that stores his pieces positions (in the database) is like this 1A1B1C1D1E1F1G1H2A2B2C2D2E2F2G2H. second player(B) plays with black pieces, his colomn is like this 8A8B8C8D8E8F8G8H7A7B7C7D7E7F7G7H. Let's say A moves his first(from left to right) horse to 3A, his column will be updated and it will be like this 1A3A1C1D1E1F1G1H2A2B2C2D2E2F2G2H (notice the 1B -> 3A). The two strings that I wrote will be always initialized with 1A1B1C1D1E1F1G1H2A2B2C2D2E2F2G2H and 8A8B8C8D8E8F8G8H7A7B7C7D7E7F7G7H, based on the players color. These strings are the gamestates that I refered to, because based on them, the pieces are printed on the screen. Sorry for not being explicit enought, I hope you'll understand now, here's a chess table:
  2. 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.
  3. Multiplayer live interaction

    Hi guys, I need some advice. Let's say I want to make a multiplayer live chess game that has an ELO rating system. I know I have to connect a data base to my game that receives an unique ID and stores a rating, but how am I supposed to make a live 1v1 interaction? And one more thing, I want both players to see their pieces in the bottom of the screen. I work in unity and I didn't find a relevant tutorial to what I am trying to do, almost all of them are about fps/rpg multiplayer. I would greatly appreciate if you can add to your answer an additional link to a tutorial ( if you know one ) about databases connected to unity. Thank you.