Toggle navigation
Toggle navigation
This project
Loading...
Sign in
전세계
/
FakerQuiz
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
1
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
전세계
2020-06-22 02:56:20 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
53cdbad47b23b8705f93a8767bbda32a91cb72cf
53cdbad4
1 parent
a3d7890e
버그: 가장 많이 플레이한 챔피언 1,2위를 제대로 구하지 못하는 버그 수정
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletions
app.js
app.js
View file @
53cdbad
...
...
@@ -363,7 +363,16 @@ function generateQuiz() {
//#region 모스트 픽 챔피언
var
firstPickChamp
=
champions
[
champList
[
0
]];
var
secondPickChamp
=
champions
[
champList
[
1
]];
for
(
i
=
0
;
i
<
champList
.
length
;
i
++
)
{
if
(
champions
[
champList
[
i
]]
>
secondPickChamp
.
totalGamePlay
)
{
secondPickChamp
=
champions
[
champList
[
i
]];
if
(
secondPickChamp
.
totalGamePlay
>
firstPickChamp
.
totalGamePlay
)
{
var
temp
=
secondPickChamp
;
secondPickChamp
=
firstPickChamp
;
firstPickChamp
=
temp
;
}
}
}
quizO
=
`
${
fakerData
.
name
}
가 대회에서 가장 많이 플레이한 챔피언은 '
${
firstPickChamp
.
name
}
'이다.`
;
quizX
=
`
${
fakerData
.
name
}
가 대회에서 가장 많이 플레이한 챔피언은 '
${
secondPickChamp
.
name
}
'이다.`
;
info
=
`1위. '
${
firstPickChamp
.
name
}
' :
${
firstPickChamp
.
totalGamePlay
}
게임\n2위. '
${
secondPickChamp
.
name
}
' :
${
secondPickChamp
.
totalGamePlay
}
게임`
;
...
...
Please
register
or
login
to post a comment