![]() Loops based on the number of suits for( var j=0 j<=suit. ![]() ![]() This may seem redundant until you remember decks are to be shuffled,Īnd we may want to preserve that position data after a shuffle.*/ var deckIndex = 0 My question is how should I be managing multiple game rooms (say an n number of game rooms) Currently I have it setup as the server holds a JavaScript object which will hold all the game objects. Standard 52 card deck /* deckIndex will be used to assign each card a unique id number 1 I am making a multiplayer card game and am using NodeJS as my server with SocketIO. This function will create an array of initialized 'card' objects. ![]()
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |