Implement a Dream 11 Application wherein the users are supposed to choose the players to form the team and calculate points based on the player’s performance. A team's Total points are calculated by summing the player’s points and deciding the winner among the users who gets the highest points over a single match.
- The user can choose any Sports league (Football League, Basketball League, IPL League).
- The team is chosen based on the selection of players.
- The user can choose the players from the given list based on batsman and bowler skills.
- The captain of the team is chosen and the points of the captain are doubled.
- The points of each player are calculated and the team's total points are calculated by summing the player’s points.
- The total points of each user are compared and the user with the maximum Total points is awarded as Winner.
Test case number | Test case description | Input | Expected output | Test status |
---|---|---|---|---|
1 | Users entering different league choice | 1,2,3 choice | Warning to enter 3 i.e. to enter the choice for IPL league. | PASS |
2 | User1 selects the best team. | Both users will be selecting their teams. | The calculated points of User 1 will be higher than User 2. So, User 1 will be declared the winner. | PASS |
3 | User 2 selects the best team. | Both users will be selecting their teams. | The calculated points of User 2 will be higher than User 1. So, User 2 will be declared the winner. | PASS |
4 | Both users select the same team. | Both users will be selecting their teams. | The calculated points of User 1 and User 2 will be the same. There are no winners in this case. | PASS |