Переглянути джерело

README-en.md edited online with Bitbucket

Jose R Ortiz Ubarri 8 роки тому
джерело
коміт
2e6252fabe
1 змінених файлів з 1 додано та 1 видалено
  1. 1
    1
      README-en.md

+ 1
- 1
README-en.md Переглянути файл

@@ -39,7 +39,7 @@ Before coming to the laboratory you should have:
39 39
 
40 40
 ## The Game
41 41
 
42
-The skeleton for the program that we provide simulates a basketball game between two players. The successful throws into the basket receive two points. The data is initiated with the name of each player and the global statistics in the "tournament": total of games played, attempted throws, successful throws and rebounds. The program includes random functions and formulas to determine the player that attempts a throw, if the player scores, and the player that takes the rebound. During the simulated game the score for each player is kept and each player's data is updated. At the end of the game, a table with the statistics is displayed.
42
+The skeleton for the program that we provide simulates a basketball game between two players. The program uses OOP and simulates the game by creating an object of class BBPlayer for every player and calling its methods. The object that represents every player contains attributes such as the name of the player and the game statistics, i. e. throws taken and made. During the game, a successful throw into the basket receives two points. The program includes random functions and formulas to determine the player that attempts a throw, if the player scores, and the player that takes the rebound. During the simulated game the score for each player is kept and each player's data is updated. At the end of the game, a table with the statistics is displayed.
43 43
 
44 44
 The algorithm that simulates the game is the following:
45 45