- request 5-6 ok for tournament
This commit is contained in:
Kum1ta
2024-10-20 18:07:45 +02:00
parent 02bd95dceb
commit 1b6b921cbc
6 changed files with 147 additions and 33 deletions

View File

@ -6,7 +6,7 @@
# By: edbernar <edbernar@student.42angouleme. +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2024/10/06 16:33:56 by tomoron #+# #+# #
# Updated: 2024/10/20 15:42:21 by tomoron ### ########.fr #
# Updated: 2024/10/20 15:48:47 by edbernar ### ########.fr #
# #
# **************************************************************************** #
@ -43,7 +43,7 @@ class GameSettings:
wallLength = 1
wallWidth = 0.05
bounceSpeedIncrease = 0.2
maxScore = 2
maxScore = 1
maxPlayerSpeed = 6
BotMovement = False

View File

@ -4,23 +4,20 @@
<p id="code-tournament">Code : 45HW28</p>
</div>
<div class="bracket">
<div class="left">
<div class="left" style="margin-top: 100px;">
<div class="container">
<p id="user-1">username1</p>
<p id="user-1" class="nameText" style="top: 20px">username1</p>
<div class="circle" id="pfp-1"></div>
<div class="vertical-line">
<div class="horizontal-container">
<div class="horizontal-line"></div>
<div class="circle" id="pfp-3">
<div class="container" style="margin-top: 50px;">
<p style="position: absolute; top: -30px; " id="user-3">username3</p>
<p style="position: absolute; bottom: -280px;" id="user-9">username9</p>
<div class="vertical-line-demi" style="height: 220px;">
<div class="horizontal-container-final">
<div class="vertical-line-demi" style="height: 220px">
<div class="horizontal-container-final" style="margin-left: -105px;">
<div class="horizontal-line"></div>
<div class="circle" id="pfp-12"></div>
<p id="user-12">username12</p>
<p style="position:absolute; right: 25px; bottom: 43px; color: white; font-size: 35px;">VS</p>
<p style="position:absolute; right: 2px; bottom: 32px; color: white; font-size: 35px;">VS</p>
</div>
</div>
</div>
@ -28,9 +25,9 @@
</div>
</div>
<div class="circle" id="pfp-2"></div>
<p id="user-2">username2</p>
<div class="container" style="margin-top: 20px;">
<p id="user-4">username4</p>
<p id="user-2" class="nameText" style="top: 295px">username2</p>
<div class="container" style="margin-top: 70px;">
<p id="user-4" class="nameText" style="top: 520px">username4</p>
<div class="circle" id="pfp-4"></div>
<div class="vertical-line">
<div class="horizontal-container">
@ -39,28 +36,27 @@
</div>
</div>
<div class="circle" id="pfp-5"></div>
<p id="user-5">username5</p>
<p id="user-5" class="nameText" style="top: 250px">username5</p>
</div>
</div>
</div>
<div class="right">
<div class="container" style="left: 350px;">
<div class="right" style="margin-left: -35px; margin-top: 0px;">
<div class="container">
<div class="horizontal-container" style="margin-top: 75px;">
<p style="margin-right: 10px;" id="user-58">username58</p>
<div class="circle" id="pfp-58">
</div>
<div class="horizontal-line"></div>
<div class="container" style="margin-left: -25px;">
<div style="display: flex; flex-direction: row; ">
<div class="circle" id="pfp-27">
<div class="horizontal-container" style="position: absolute; left: 280px; transform: translateY(-38%); display: flex; flex-direction: row; align-items: center; justify-items: center; z-index: -1;">
<div class="horizontal-container" style="position: absolute; left: 170px; transform: translateY(-38%); display: flex; flex-direction: row; align-items: center; justify-items: center; z-index: -1;">
<div class="horizontal-line"></div>
<div style="display: flex; flex-direction: column; align-items: center; margin-left: -25px; justify-items: center;">
<p style="position: absolute; top: -55px" id="user-13">username13</p>
<p style="position: absolute; top: -55px" id="user-13" class="nameText">username13</p>
<div class="circle" id="pfp-13"></div>
<div class="vertical-line"></div>
<p style="position: absolute; bottom: -55px;" id="user-14">username14</p>
<p style="position: absolute; bottom: -55px;" id="user-14" class="nameText">username14</p>
<div class="circle" id="pfp-14"></div>
</div>
</div>
@ -68,19 +64,17 @@
</div>
<div class="vertical-line-demi" style="height: 260px;">
<p style="position: absolute; top: -105px" id="user-27">username27</p>
<p style="position: absolute; bottom: -105px" id="user-31">username31</p>
<div class="horizontal-container-final"></div>
</div>
<div style="display: flex; flex-direction: row;">
<div class="circle" id="pfp-31">
<div class="horizontal-container" style="position: absolute; left: 280px; transform: translateY(-37%); z-index: -1;">
<div class="horizontal-container" style="position: absolute; left: 170px; transform: translateY(-37%); z-index: -1;">
<div class="horizontal-line"></div>
<div style="display: flex; flex-direction: column; align-items: center; margin-left: -25px; justify-items: center;">
<div class="circle" id="pfp-15"></div>
<p style="position: absolute; top: -55px;" id="user-15">username15</p>
<p style="position: absolute; top: -55px;" id="user-15" class="nameText">username15</p>
<div class="vertical-line"></div>
<p style="position: absolute; bottom: -55px;" id="user-16">username16</p>
<p style="position: absolute; bottom: -55px;" id="user-16" class="nameText">username16</p>
<div class="circle" id="pfp-16"></div>
</div>

View File

@ -6,7 +6,7 @@
# By: edbernar <edbernar@student.42angouleme. +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2024/10/01 13:16:39 by edbernar #+# #+# #
# Updated: 2024/10/19 22:54:14 by tomoron ### ########.fr #
# Updated: 2024/10/20 15:02:51 by edbernar ### ########.fr #
# #
# **************************************************************************** #
@ -65,7 +65,7 @@ from .tournamentActions.fetchAllData import fetchAllData
# 2 : message tournament : send a message to the tournament chat
# - message : message to send
#
# 3 : fetchAllData : fetch all data of the tournament
# 3 : fetchAllData and ready : fetch all data of the tournament
# --> server will send all the data of the tournament (players, messages, etc...) with his actions
actionList = [tournamentStart, tournamentLeave, sendMessage, fetchAllData]