ashishps1 / awesome-low-level-design

Learn Low Level Design (LLD) and prepare for interviews using free resources.
https://blog.algomaster.io
GNU General Public License v3.0
5.28k stars 1.38k forks source link

Cricinfo: Some enhancements and ideas #15

Open ajayrajsrivastava opened 3 weeks ago

ajayrajsrivastava commented 3 weeks ago

Hi Ashish,

  1. For each ball we can add BallEvent enum.. which tells any event that has happened for that particular Ball. Example - DOT, SIX, FOUR, CATCH, RUNOUT etc
  2. Instead of creating a List we can have an array of fixed Ball size[6]
  3. Instead of an Integer score, we can keep an object Score (which has both runs and wicket info - like 110/8 instead of just 110)
  4. We can add a commentary String object for each Ball

Thanks, Ajay

ashishps1 commented 3 weeks ago

These are great points, thanks for the suggestion.

Feel free to create a pull request or I will try to add these changes in future.