Skip to content

Commit

Permalink
created the first few sequence diagrams
Browse files Browse the repository at this point in the history
  • Loading branch information
Tayhm committed Mar 14, 2024
1 parent 994fa23 commit b0bea02
Show file tree
Hide file tree
Showing 5 changed files with 78 additions and 0 deletions.
15 changes: 15 additions & 0 deletions AI/docs/secuence_diagrams/create_profile.puml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
@startuml
title Create Player Profile

actor Player
database System

Player->System: Click Profile Button
System->Player: Show Profile Creation Prompt
Player->System: Set Name
Player->System: Set Color
Player->System: Click Create Profile Button
System->System: Save Profile on Disk
System->Player: Show Profile

@enduml
13 changes: 13 additions & 0 deletions AI/docs/secuence_diagrams/delete_profile.puml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
@startuml
title Delete Player Profile

actor Player
database System

Player->System: Click Profile Button
System->Player: Show Profile
Player->System: Click Delete Profile Button
System->System: Delete Profile from Disk
System->Player: Show Profile Creation Prompt

@enduml
16 changes: 16 additions & 0 deletions AI/docs/secuence_diagrams/edit_profile.puml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
@startuml
title Create Player Profile

actor Player
database System

Player->System: Click Profile Button
System->Player: Show Profile
Player->System: Click Edit Profile Button
Player->System: Change Name
Player->System: Change Color
Player->System: Click Edit Profile Button
System->System: Save Profile on Disk
System->Player: Show Profile

@enduml
24 changes: 24 additions & 0 deletions AI/docs/secuence_diagrams/play_vs_ai.puml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
@startuml
title Play versus AI

actor Player as p
database System
actor AI as a

p->System: Click Singleplayer Button
System->p: Display AI Difficulty Selection
p->System: Select AI Difficulty by clicking Strong or Weak AI Button
System->System: Host Server locally
System->p: Display Game Lobby
System->a: Create AI
a->System: Connect to Server
a->System: Get Ready
System->p: Show AI is ready
p->System: Click Ready Button
p->System: Click Start Game Button
System->p: Show Playfield
p->p: Play Game
System->System: Process Game
a->a: Play Game

@enduml
10 changes: 10 additions & 0 deletions AI/docs/secuence_diagrams/view_profile.puml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
@startuml
title View Player Profile

actor Player
database System

Player->System: Click Profile Button
System->Player: Show Profile

@enduml

0 comments on commit b0bea02

Please sign in to comment.