Skip to content

Matchmaking plan

Otto edited this page Jun 19, 2024 · 1 revision

LOCAL GAMES

UI

  • UI should include a "Local Games" section that has two buttons

    • -> LOCAL SINGLE MATCH
    • -> LOCAL TOURNAMENT
  • Optional/Not stated in subject:

    • If "Local Games" information is saved to database, expl winner of last "Local Single Match" or last "Local Tournament" could be shown

DATABASE

  • Optional/Not stated in subject
    • Gather information of Local Games and save it (not recommended)

FUNCTIONALITY

  • In all Local Games, all entered aliases must differ from each other and prompt if not and ask again

  • When a "Local Single Match" or "Local Tournament" is started, codewise it creates a new instance, gather information of it, shows it afterwards when session is over and delete instance and all information. (Optional // Save it to database)

  • LOCAL SINGLE MATCH

    • -> Selecting "Local Single Match" will ask user to input 2 aliases and the game starts
    • -> When the game is finished, it announces winner and final score (expl WINNER Bob, 10-5)
  • LOCAL TOURNAMENT

    • -> Optional: 4-player and 8-player possibilities
    • -> Selecting "Local Tournament" will ask user to input 4/8 aliases and the tournament starts
    • -> Tournament mode: Single elimination (expl 8->4->2->winner)
    • -> In every round of tournament, it will randomly select 2 aliases from remaining and start a single game
    • -> When a single game is finished, it announces winner and final score (expl WINNER Bob, 10-5)
    • -> After last single game, it announces winner and final score of last single game (expl WINNER Bob, 10-5) and winner of tournament (Tournament winner Bob)

REMOTE GAMES

(these requirements comes mainly from "Major module: Standard user management")

OVERALL

  • Participating in "Online Single Match" requires user to be logged in!
  • Optional/Not stated in subject // Ranking system

UI

  • everything that is not game related is not listed here!
  • UI should include a "FIND ONLINE SINGLE MATCH" section

DATABASE

  • Database will have "USER DATA", which consists single user tables/cards
    • -> Saves SOME information of played OSM sessions (expl nb of wins/losses etc)
    • -> Optional
      • calculates (pts from wins/losses) and saves rank information
  • Database will have "GAME DATA", which consists information of all played OSM sessions
    • -> Number of played OSM, winners of OSM, final score

FUNCTIONALITY

  • When a OSM is started, codewise it creates an new instance, gather information of it, informs user (expl game won/lost etc), saves information to their respected databases and delete current instance

  • ONLINE SINGLE MATCH

    • -> Selecting "FIND ONLINE SINGLE MATCH" shows all "SIGNED IN" users and provides possibility to ask them to start OSM