From 7344a0c31f15d3bbafbd9ac5d537dfec2d70fe71 Mon Sep 17 00:00:00 2001 From: dbvictor2002 Date: Fri, 2 Oct 2026 13:07:53 +0200 Subject: [PATCH 1/7] Eliminar PartidaModelo.php --- PartidaModelo.php | 37 ------------------------------------- 1 file changed, 37 deletions(-) delete mode 100644 PartidaModelo.php diff --git a/PartidaModelo.php b/PartidaModelo.php deleted file mode 100644 index 0221972..0000000 --- a/PartidaModelo.php +++ /dev/null @@ -1,37 +0,0 @@ -conexion = $conexion; - } - - // Obtiene los jugadores mapeados en la partida actual - public function obtenerJugadoresPartida($idPartida) { - $stmt = $this->conexion->prepare(" - SELECT u.idUsuario, u.nombreUsuario, e.idEquipo, e.nombreEquipo - FROM equipoxpartida exp - INNER JOIN equipoxusuario exu ON exp.idEquipo = exu.idEquipo - INNER JOIN usuario u ON exu.idUsuario = u.idUsuario - INNER JOIN equipo e ON exu.idEquipo = e.idEquipo - WHERE exp.idPartida = :idPartida - "); - $stmt->execute([':idPartida' => $idPartida]); - return $stmt->fetchAll(PDO::FETCH_ASSOC); - } - - // Obtiene las respuestas guardadas por un usuario específico - public function obtenerRespuestasUsuario($idPartida, $idUsuario) { - $stmtRespuestas = $this->conexion->prepare(" - SELECT ra.idPartidaxPregunta, r.correcta - FROM respuestaalmacenada ra - INNER JOIN respuesta r ON ra.idRespuesta = r.idRespuesta - INNER JOIN partidaxpregunta pxp ON ra.idPartidaxPregunta = pxp.idPartidaxPregunta - WHERE pxp.idPartida = :idPartida AND ra.idUsuario = :idUsuario - "); - $stmtRespuestas->execute([':idPartida' => $idPartida, ':idUsuario' => $idUsuario]); - return $stmtRespuestas->fetchAll(PDO::FETCH_ASSOC); - } -} -- 2.47.3 From 9ec2222d786ff9076e3a0595055147bc1eeea6d9 Mon Sep 17 00:00:00 2001 From: dbvictor2002 Date: Fri, 2 Oct 2026 13:08:04 +0200 Subject: [PATCH 2/7] Eliminar vistaResultados.php --- vistaResultados.php | 72 --------------------------------------------- 1 file changed, 72 deletions(-) delete mode 100644 vistaResultados.php diff --git a/vistaResultados.php b/vistaResultados.php deleted file mode 100644 index 80e0e0b..0000000 --- a/vistaResultados.php +++ /dev/null @@ -1,72 +0,0 @@ - - - - - - Resultados - Trivial - - - - - -
-

⌛ Esperando a que todos los jugadores terminen...

-

Calculando estadísticas de velocidad y actualizando perfiles históricos en el servidor.

-
-
- - - - - - \ No newline at end of file -- 2.47.3 From b58db59f93b78a37eeb95c630e4b2b35fba19446 Mon Sep 17 00:00:00 2001 From: "v.rodriguezcamacho" Date: Fri, 2 Oct 2026 13:19:57 +0200 Subject: [PATCH 3/7] carpetas nuevas --- modelos/hola.md | 1 + vistas/eyy.md | 1 + 2 files changed, 2 insertions(+) create mode 100644 modelos/hola.md create mode 100644 vistas/eyy.md diff --git a/modelos/hola.md b/modelos/hola.md new file mode 100644 index 0000000..38b9352 --- /dev/null +++ b/modelos/hola.md @@ -0,0 +1 @@ +illoooo que hace \ No newline at end of file diff --git a/vistas/eyy.md b/vistas/eyy.md new file mode 100644 index 0000000..da259ac --- /dev/null +++ b/vistas/eyy.md @@ -0,0 +1 @@ +aaaaaipsss \ No newline at end of file -- 2.47.3 From 85e5c2fc0b02d7ce00e18ca5a78ea5fb94f327bb Mon Sep 17 00:00:00 2001 From: dbvictor2002 Date: Fri, 2 Oct 2026 13:20:32 +0200 Subject: [PATCH 4/7] Subir archivos a "modelos" --- modelos/PartidaModelo.php | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 modelos/PartidaModelo.php diff --git a/modelos/PartidaModelo.php b/modelos/PartidaModelo.php new file mode 100644 index 0000000..0221972 --- /dev/null +++ b/modelos/PartidaModelo.php @@ -0,0 +1,37 @@ +conexion = $conexion; + } + + // Obtiene los jugadores mapeados en la partida actual + public function obtenerJugadoresPartida($idPartida) { + $stmt = $this->conexion->prepare(" + SELECT u.idUsuario, u.nombreUsuario, e.idEquipo, e.nombreEquipo + FROM equipoxpartida exp + INNER JOIN equipoxusuario exu ON exp.idEquipo = exu.idEquipo + INNER JOIN usuario u ON exu.idUsuario = u.idUsuario + INNER JOIN equipo e ON exu.idEquipo = e.idEquipo + WHERE exp.idPartida = :idPartida + "); + $stmt->execute([':idPartida' => $idPartida]); + return $stmt->fetchAll(PDO::FETCH_ASSOC); + } + + // Obtiene las respuestas guardadas por un usuario específico + public function obtenerRespuestasUsuario($idPartida, $idUsuario) { + $stmtRespuestas = $this->conexion->prepare(" + SELECT ra.idPartidaxPregunta, r.correcta + FROM respuestaalmacenada ra + INNER JOIN respuesta r ON ra.idRespuesta = r.idRespuesta + INNER JOIN partidaxpregunta pxp ON ra.idPartidaxPregunta = pxp.idPartidaxPregunta + WHERE pxp.idPartida = :idPartida AND ra.idUsuario = :idUsuario + "); + $stmtRespuestas->execute([':idPartida' => $idPartida, ':idUsuario' => $idUsuario]); + return $stmtRespuestas->fetchAll(PDO::FETCH_ASSOC); + } +} -- 2.47.3 From a8a4699bd48c41c20eb33f93ee240345af90f815 Mon Sep 17 00:00:00 2001 From: dbvictor2002 Date: Fri, 2 Oct 2026 13:20:40 +0200 Subject: [PATCH 5/7] Eliminar modelos/hola.md --- modelos/hola.md | 1 - 1 file changed, 1 deletion(-) delete mode 100644 modelos/hola.md diff --git a/modelos/hola.md b/modelos/hola.md deleted file mode 100644 index 38b9352..0000000 --- a/modelos/hola.md +++ /dev/null @@ -1 +0,0 @@ -illoooo que hace \ No newline at end of file -- 2.47.3 From 060ea539924bb0fbde4392d8017fbf1bd01793ad Mon Sep 17 00:00:00 2001 From: dbvictor2002 Date: Fri, 2 Oct 2026 13:20:57 +0200 Subject: [PATCH 6/7] Subir archivos a "vistas" --- vistas/vistaResultados.php | 72 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 72 insertions(+) create mode 100644 vistas/vistaResultados.php diff --git a/vistas/vistaResultados.php b/vistas/vistaResultados.php new file mode 100644 index 0000000..80e0e0b --- /dev/null +++ b/vistas/vistaResultados.php @@ -0,0 +1,72 @@ + + + + + + Resultados - Trivial + + + + + +
+

⌛ Esperando a que todos los jugadores terminen...

+

Calculando estadísticas de velocidad y actualizando perfiles históricos en el servidor.

+
+
+ + + + + + \ No newline at end of file -- 2.47.3 From 9a41c04daf6efb75816f4413487b1b9eab6e6331 Mon Sep 17 00:00:00 2001 From: dbvictor2002 Date: Fri, 2 Oct 2026 13:21:04 +0200 Subject: [PATCH 7/7] Eliminar vistas/eyy.md --- vistas/eyy.md | 1 - 1 file changed, 1 deletion(-) delete mode 100644 vistas/eyy.md diff --git a/vistas/eyy.md b/vistas/eyy.md deleted file mode 100644 index da259ac..0000000 --- a/vistas/eyy.md +++ /dev/null @@ -1 +0,0 @@ -aaaaaipsss \ No newline at end of file -- 2.47.3