Here’s the system I want developed.
A person writes his username in a text box, then presses a button, then you save the current number of wins and number of matches played, keep checking as often as possible (I think it’s 1 request per 2 seconds) so as close to real-time as possible. Once it detects a change in matches played give it a second and check for change in number of wins, if both matches played and wins increase print to console “you win”, if number of matches increased but wins did not increase print to console “you lose”.
Can you make also user accounts so he has to register/login into his account to see/press the button, if the user presses the button and nothing increased in 40 minutes say in console “You ran out of time”.
You have to make sure the user ONLY played ONE game not more.
Also the system should work it the user refreshes or closes the window, so I assume you have to save it to a database but don’t use paid database just free MySQL on hosting I believe? In MyPhpAdmin if I’m right?
Fortnite API: [login to view URL]
Let me know, if you can also do payment system where a user can buy coins in the website and he can withdraw them in real money I will raise the budget