You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First stage is database design. Something as simple as this might do:
Player table (index, initials/name, rating, record, profile?)
Results table (index, winning player index, losing player index, date/time stamp)
Depends on what new features we want to support. E.g. this design means past record needs to be calculated each time (rather than being stored), though that's a fairly simple DB lookup, so probably doesn't matter.
Maybe record can be calculated each time? That doesn't scale though...
The server should do all the heavy lifting and write to database, rather than all the stuff we have in the client (js) at the moment. Maybe some kind of Ajax callback interface between server and client. http://www.w3schools.com/jquery/jquery_ajax_intro.asp could be useful.
A massive text string is not a database. Let's move to something more appropriate.
The text was updated successfully, but these errors were encountered: