Score - Stav-Nof/The-Maze-of-Waze-part3 GitHub Wiki
This class allows us to know the number of games that were played and the stage which the players is currently trying to pass.
Edge class methods:
-
NumberOfGames- This method is accessing the data from the database from a given url, username and password in order to connect and counts the number of games that were played according to a given ID number.
-
CurrentStage- This method calculates the current Stage according to the points that the player got after the game. The function calculates for each level, if the player got enough points in order to pass the current Stage. Since we were given a certain number of points to get in order to get to the next stage, the function will return if we passed or not.