CSC207-2022F-UofT / course-project-group-72

course-project-group-72 created by GitHub Classroom
3 stars 0 forks source link

Add design pattern; Refactor Method and Variable names; Add docs; Add tests #82

Closed Allof02 closed 1 year ago

Allof02 commented 1 year ago

Apply Strategy design pattern to Excalibur

Excalibur implements BanTool

BanTool regulates that each banning strategy needs to have two banning method: checkAndBanReview & checkAndBanUser.

The specific banning algorithm or threshold will be regulated by specific implementation;

e.g, Excalibur banning strategy regulates Review with >= 10 reports will be banned, User with >= 30 reports will be banned