Hey there everyone
Ive finally got round to thinking about implementing an online card game on my website for me and my friends, using PHP and MySQL for the db. This would then link into a nice little stats program Ive been working on for the site so hold everyones, well, stats 🙂
Ive just started on the project but was seeing if anyone out there had tried it before, and if so what problems you had encountered. And if you havent tried it, what problems can you for see, and how do you think I could work round them. The project userbase is going to be small scale (theres only 40 members on the site), so I dont need to worry about handling large amounts of users, theres probably only going to be a maximum of 20 people using it at a time.
My general plan is as follows:
TableView.php - view the current tables are being used (tables, as in real life analogy, 'card table'), with amount on ppl on them, and if they are not full then the option to join (if they havent been started).
Then GameView.php or something, where all the action takes place.
So 2 main pages, one for selecting a game, and one for playing in the game.
Some problems I have envisaged so far are:
If your in the TableView page, the amount of players on a 'table' will change as ppl join, but I dont want to be auto-refreshing every few seconds to check for this, I want it to refresh on a 'as-needed' basis, ie just when someone joins that table.
This also goes for GameView.php, as if someone places a card then I want it to change, but not otherwise.
Of course, PHP probably isnt the best thing to write this in, so if people have some other suggestions I could head down let me know, its just that Im most familiar with PHP, so would be a quick start-up for me.
Thanks in advance for help / suggestions / comments.
Cheers
Nick