CodeMOOC / TreasureHuntBot

Telegram bot for the “Code Hunting Games” at the Urbino CodeMOOC Summer School.
MIT License
9 stars 4 forks source link

Leaderboard and rankings? #36

Open TheOnlyDGS opened 2 years ago

TheOnlyDGS commented 2 years ago

Hey there, awesome project. I have a few questions below:

  1. Can the treasure hunt event have a time period? Example: On 23 Mar 2023 between 9am to 5pm.

  2. Can the participants have different start times within the event time period? For example, Team A starts at 10am and Team B starts at 3pm.

  3. Is there a leaderboard which shows which team finished first based on the time taken to complete the treasure hunt? For example, Team B which starts at 3pm completes it in 1 hour and Team A which starts at 10am completes it in 2 hours which means Team B is higher than Team A.

Thank you so much and I look forward to your replies.

LorenzCK commented 2 years ago

Hello @TheOnlyDGS, thanks!

Can the treasure hunt event have a time period? Example: On 23 Mar 2023 between 9am to 5pm.

Not at the moment, the treasure hunt at the moment always starts as soon as the group scans in the first QR Code. There can be a fixed ending however: each game has a "timeout" value that indicates when the game ends. The value must be set manually in the database, unfortunately. When a group continues to play after the timeout, the game will directly go to the last location of the game.

Can the participants have different start times within the event time period? For example, Team A starts at 10am and Team B starts at 3pm.

Yes, each group of participants can start whenever they want, at the moment. As soon as they scan the first QR Code, the game starts for the group. There is no synchronization between starting groups.

Is there a leaderboard which shows which team finished first based on the time taken to complete the treasure hunt? For example, Team B which starts at 3pm completes it in 1 hour and Team A which starts at 10am completes it in 2 hours which means Team B is higher than Team A.

There is a leaderboard, which can be required by the game administrator through the bot. First you must switch to the game using the /mygames command and picking the game with the 👑 icon. This will enable administration commands over the selected game. At that point, you'll have access to the following commands:

Unfortunately, the leaderboard is absolute, so it is not aligned to when the single groups ended the game. If a group plays at 11:00 and completes the game at 12:00, it will always show up before another group that started at 13:00 and completed at 13:30, even if the second group performed ‘better’ than the first.