--- Begin Message ---
Hi Roelof,

I probably missed your prior posts but I do have a few questions and/or comments for you before I can be of any help!

This code is for tournaments of what sport exactly?  Hockey teams?  Baseball teams?  Or tournaments between players (such as in chess where the concept of Team exists only every 4 years for the chess Olympiads).  Do you plan on handling different sports? Different tournament formats (round robin, ladder, etc).

The whole thing seems to be centered around games/match results but you don't have such a class in your example.  Besides, how do you handle different results for one team for the same tournament a few years apart (say, the 2017 Formula 1 season vs the 2018 Formula 1 season) ?  Shouldn't tournaments also have a name and a year (or a Season object) like they have in tennis, golf, chess, hockey, baseball, etc?

So my first impression is that you need the following classes : Team, GameResult, Tournament and something like TournamendDirector to create tournaments and create matches (or read/write them).

In other words, we need more info on what you are trying to do!


On 2019-03-24 14:02, Roelof Wobben wrote:
Hello,

I tried another way to solve this but the code is a mess now.

I can update a record but the record is not updated.
And I have to do a lot of the same steps for every team.

Anyone who can help me to get out of this mess.

Code so far:  https://github.com/RoelofWobben/tournament

Roelof


--
-----------------
Benoît St-Jean
Yahoo! Messenger: bstjean
Twitter: @BenLeChialeux
Pinterest: benoitstjean
Instagram: Chef_Benito
IRC: lamneth
GitHub: bstjean
Blogue: endormitoire.wordpress.com
"A standpoint is an intellectual horizon of radius zero".  (A. Einstein)



--- End Message ---

Reply via email to