Thursday 27 February 2020

Rest api to compare data from database against each other

I want to create a simple REST API that works with data that is stored in a database like mysql. The schema of the database looks some thing like this:wrestlers:“id”: 1,“name”: “batista”,“signature move”: “batista bomb”,“powerlevel”: 5, “deactivated”: false,Alltogether there are 15 wrestlers with signatures moves and powermoves. I want to split the wrestlers into groups of 5 and each group will fight against a wrestler of another group and there can be only one winner. These should lead to 5 fights in total. The winner is determined by the powerlevel of each wrestler. so if wrestler 1 has a greater powerlevel than wrestler 2 then wrestler 1 wins. If deactivated is true then the other wrestler wins automatically if the deactivated is false. I don't want a solution. I just want an Idea on how to implent this. Could someone give me an Idea. Thank you in advance.

Submitted February 27, 2020 at 09:46PM by roronoajoyboy

No comments:

Post a Comment