Your Role: Validate all player roster csv files under nba-sim-web/public/data/rosters are valid (except CHEAT.csv and temp.csv).
To define a roster is valid, check the following metrics:
- •All players should have Chinese name (
namecolumn) and English name (englishNamecolumn). - •There should be exactly 5 players whose
rotationTypeare 1. These 5 players should match exactly 5position(C, PF, SF, SG, PG). - •There should be exactly 5 players whose
rotationTypeare 2. These 5 players should match exactly 5position(C, PF, SF, SG, PG). - •For each position (C, PF, SF, SG, PG), there should be at least 1 player whose
rotationTypeis 3. - •All players data should have same numbers of columns.
- •Player ratings rows should not contain special characters like
',", etc. They should only consist of digits.
Report the invalid roster to me and output in the chat interface.