To make it more clear.
What I have in mind is this:
Make a application with a menu which contains a input choice and a
If the user chooses for input the user gets a form so the data can be in
If the user chooses for rankings the followrig occurs.
Every rule in the database is be read.
Then there is a check if the team has already played a game.
If so, then the data will changed .
If not, team is added to a array and the data willbe changed.
After that the data will be sorted so the best team is displayed first
and so on.
Database will look like this :
Score home team
Score away team.
Array looks like this :
points made by that team
points the other teams made in games with this team.
example team A played 3 games, won 2 , made 50 , other teams made 20
team : A
game points 2*3=6
points : 50
points : 20
I hope it's now clear what i have in mind.