-
Notifications
You must be signed in to change notification settings - Fork 3
Scoreboard System
The general layout of the scoreboard classes for MPAi Words and MPAi Sounds is quite similar. There are the scoreboard items themselves, which contain the scores for the individual words/sounds, and also advice on how to better pronounce them, in the case of the words. The scoreboard items are held inside a scoreboard session. A scoreboard session is created for each session of the MPAi speech recognition test or vowel plot, and has a date and time of creation. The sessions are then contained within a scoreboard. The scoreboard contains all the sessions for a single user over all the existence of MPAi.
Scoreboards persist between sessions of MPAi by writing the scoreboard objects for each user to a file and then reading them again on opening. Scoreboards are written using a kind of nested language similar to html, which was made to mimic the nested structure of the scoreboard/session/item.
Scoreboards are written to html and then displayed in browser when the user clicks a 'Scoreboard' button. Html was used for the score report because it was what the previous version used, and also html can be printed quite easily, which could be useful in a classroom environment. The html is then skinned using a custom css file, which is located within Resources.