Skip to content

Commit f9d03b8

Browse files
committed
game preview modal NOT FINISHED
2 parents 702715b + f7b93f1 commit f9d03b8

File tree

110 files changed

+20800
-10465
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

110 files changed

+20800
-10465
lines changed

.github/workflows/release-deploy.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,5 +154,10 @@ jobs:
154154
key: ${{ secrets.DEPLOY_KEY }}
155155
command: |
156156
wget https://raw.githubusercontent.com/${{ github.repository_owner }}/${{ github.event.repository.name }}/master/docker-compose.yml -O docker-compose.yml
157+
158+
#To crete the schema of the db in the cloud.
159+
mkdir -p users/src/db
160+
wget https://raw.githubusercontent.com/${{ github.repository_owner }}/${{ github.event.repository.name }}/master/users/src/db/init.sql -O ./users/src/db/init.sql
161+
157162
docker compose down
158163
docker compose up -d --pull always

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ We are a coordinated team working across different layers of the stack to delive
4343
| :--- | :--- | :--- |
4444
| **Elena Quintes** | Frontend| UO269665@uniovi.es |
4545
| **Luis Sánchez de Posada** | Frontend| UO277488@uniovi.es |
46-
| **Marcos José Sánchez**| Backend | UO300022@uniovi.es |
46+
| **Marcos José Hernández**| Backend | UO300022@uniovi.es |
4747
| **David Alonso** | Frontend | UO300569@uniovi.es |
4848
| **Ceyda Tolunay** | Backend | UO318869@uniovi.es |
4949
| **Lucas Uña García** | Backend | UO302165@uniovi.es |

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ services:
8080

8181
networks:
8282
monitor-net:
83-
driver: bridge
83+
driver: bridge
8484

8585

8686

docs/src/04_solution_strategy.adoc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@ endif::arc42help[]
4848
| **Ranking System**
4949
| **Winrate Metric**
5050
| Focuses on the win/loss ratio to provide a simple but competitive ranking for the leaderboard.
51+
52+
| **Game State Persistence**
53+
| **Dedicated 'game_saves' table**
54+
| To prevent database saturation and optimize network traffic, the `matches` table is only accessed at the start and end of a game. Turn-by-turn data and manual saves are isolated in a dedicated `game_saves` table, keeping the main matches metadata clean and fast.
5155
|===
5256

5357
=== Organizational & Development Strategy

docs/src/06_runtime_view.adoc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,15 @@ loop
5555
break There is a winner!
5656
WebApp --> User: Shows result of the game
5757
end
58+
5859
WebApp -> GameYEngine: Sends the board state & Asks the bot to play
5960
GameYEngine --> WebApp: Returns the play of the bot
6061
WebApp --> User: Shows the play of the bot
62+
63+
opt User clicks "Save Game"
64+
WebApp -> Db: Upsert current state into game_saves
65+
Db --> WebApp: Confirm save
66+
end
6167
end
6268
6369
WebApp -> UsersService: Asks to save the data of the game

env

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)