1.S1 should be the current score of the first course and S2 for the second course that you compare with
2.R1 is the rank of the current plate, and R2 is the current rank of the second dish
2. If it is not fair, this system will not be used in global games.
3. Perhaps you are going to use the database to save points, so let's say that it should be so.
if($elo_calcualtor->rating(1,2,1,2)['p1'] < 0){$current_dish_score = 0;}
finally, you must make a rating starting at ten, so it will not fall below 0 and most likely will not be higher than 20
hope this helps
SAFAD source share