Skip to content

Commit

Permalink
Se han añadido los conceptos relativos al modelo de domino que trata …
Browse files Browse the repository at this point in the history
…de representar las distintas entidades que se ven reflejadas en la aplicación a la hora de jugar una partida.
  • Loading branch information
nalleta committed Feb 22, 2025
1 parent ef680f8 commit 000a426
Showing 1 changed file with 59 additions and 0 deletions.
59 changes: 59 additions & 0 deletions docs/src/08_concepts.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,65 @@ image::08-concepts-EN.drawio.png["Possible topics for crosscutting concepts"]
See https://docs.arc42.org/section-8/[Concepts] in the arc42 documentation.
****
endif::arc42help[]
=== _Domain concepts_
==== _Domain model_


[plantuml,"Sequence diagram",svg]
----
@startuml
class User {
+userName : string
}
class UserRecord {
+totalScore : double
}
class GameSession {
+score : double
}
class Question {
+questionText : string
}
class Choice {
+text : string
+selected : boolean
}
Question "1" *--- "3" Choice : wrongChoice
Question "1" *--- "1" Choice : correctChoice
GameSession "1" *-- "n" Question
UserRecord "1" o-- "n" GameSession : storages
User "1" - "1" UserRecord
@enduml
----

==== _Domain description_
|===
|Term |Description

|User
|Represents a user of the application.

|UserRecord
|Stores all the game sessions in which a user has participated and keeps their total score.

|GameSession
|Represents a game session played by a user, storing all the questions, the choices made, and the total score.

|Question
|Represents questions shown to the user by the application and stores the wrong choices, correct choices, and the text that is displayed.

|Choice
|Represents the choices that the user can make when answering a question. It stores the text of the choice and indicates if it was selected by the user.

|===



=== _Microservices architecture_

Expand Down

0 comments on commit 000a426

Please sign in to comment.