Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
T
tabulator-another
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
tabulator-another
Commits
65564b6c
Commit
65564b6c
authored
Jul 27, 2025
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update src/tournament-rules/base.ts
parent
4781ea09
Pipeline
#39597
passed with stages
in 4 minutes and 52 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
src/tournament-rules/base.ts
src/tournament-rules/base.ts
+3
-3
No files found.
src/tournament-rules/base.ts
View file @
65564b6c
...
@@ -63,18 +63,18 @@ export class TournamentRuleBase {
...
@@ -63,18 +63,18 @@ export class TournamentRuleBase {
if
(
!
winnerId
)
{
if
(
!
winnerId
)
{
for
(
const
pid
of
[
player1Id
,
player2Id
])
{
for
(
const
pid
of
[
player1Id
,
player2Id
])
{
const
score
=
map
.
get
(
pid
)
??
{
win
:
0
,
lose
:
0
,
draw
:
0
};
const
score
=
map
.
get
(
pid
)
??
{
win
:
0
,
lose
:
0
,
draw
:
0
}
as
ParticipantScore
;
score
.
draw
+=
1
;
score
.
draw
+=
1
;
map
.
set
(
pid
,
score
);
map
.
set
(
pid
,
score
);
}
}
}
else
{
}
else
{
const
loserId
=
winnerId
===
player1Id
?
player2Id
:
player1Id
;
const
loserId
=
winnerId
===
player1Id
?
player2Id
:
player1Id
;
const
winScore
=
map
.
get
(
winnerId
)
??
{
win
:
0
,
lose
:
0
,
draw
:
0
};
const
winScore
=
map
.
get
(
winnerId
)
??
{
win
:
0
,
lose
:
0
,
draw
:
0
}
as
ParticipantScore
;
winScore
.
win
+=
1
;
winScore
.
win
+=
1
;
map
.
set
(
winnerId
,
winScore
);
map
.
set
(
winnerId
,
winScore
);
const
loseScore
=
map
.
get
(
loserId
)
??
{
win
:
0
,
lose
:
0
,
draw
:
0
};
const
loseScore
=
map
.
get
(
loserId
)
??
{
win
:
0
,
lose
:
0
,
draw
:
0
}
as
ParticipantScore
;
loseScore
.
lose
+=
1
;
loseScore
.
lose
+=
1
;
map
.
set
(
loserId
,
loseScore
);
map
.
set
(
loserId
,
loseScore
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment