I think I know what I need to do but how to do it...

Hey everyone!  To make a story short, I’m working on a multiplayer card game (an original game, not a clone of an any existing game I’m aware of, but not exactly a complicated game either).

So far I’ve been able to deal hands of cards from tables kept in a txt file in my project folder.  Basic stuff, deckA[0] = blah, deckA[1] = blahblah, etc.  It’s worked well so far but I’m currently still using the console to make sure I have all the mechanics working before I start messing with the graphics.

Here’s problem #1: when I go to print out the player information and their hands, I can’t get the method to return “this.name” for the player/AI’s name and I’m not sure what I’m missing.

Secondly, an advice request.  I need to move the decks from a local database to something hosted, or at least I need to be able to host player information remotely (people will be able to access different card backs, different decks, additional playstyles, etc).  What do you guys recommend for handling all this (what host, what language, etc)?  This is the first time I’ve needed to be able to do this sort of thing.

I’m uploading everything I’ve got in it’s current for.  I’m going to be honest and say the code is not exactly tidy when it comes to what I’ve commented out but I have quite a few notes in there that should be useful (they are to me at least).  Ignore the stuff about Player classes and all as it’s not something actually used in the code yet; everything is still contained in either main.lua or decks.lua.

*passes out the red pens*  make it bleed as much as you want.  I know there’s probably a better way to do what I’m trying to do and I’d love to know what that way is.