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
Ubuntu
2020-06-21 15:31:05 +0000
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
ee3237fb53acd4fd363c5757e281813bd343a0cc
ee3237fb
1 parent
529c5e5a
기능: 킬관여율이 가장 높은 챔피언 퀴즈 생성
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
0 deletions
app.js
app.js
View file @
ee3237f
...
...
@@ -371,6 +371,27 @@ function generateQuiz() {
info
=
`'
${
firstPickChamp
.
name
}
' :
${
firstWinRateChamp
.
totalGamePlay
}
게임\n'
${
secondPickChamp
.
name
}
' :
${
secondWinRateChamp
.
totalGamePlay
}
게임`
;
generateOX
(
quizO
,
quizX
,
info
);
//#endregion
//#region 모스트 킬관여율 챔피언
var
firstKPChamp
=
champions
[
champList
[
0
]];
var
secondKPChamp
=
champions
[
champList
[
0
]];
for
(
i
=
0
;
i
<
champList
.
length
;
i
++
)
{
if
(
champions
[
champList
[
i
]].
totalGamePlay
>=
10
)
{
if
(
champions
[
champList
[
i
]].
kP
>
secondKPChamp
.
kP
)
{
secondKPChamp
=
champions
[
champList
[
i
]];
if
(
secondKPChamp
.
kP
>
firstKPChamp
.
kP
)
{
var
temp
=
secondKPChamp
;
secondKPChamp
=
firstKPChamp
;
firstKPChamp
=
temp
;
}
}
}
}
quizO
=
`
${
fakerData
.
name
}
가 대회에서 플레이한 챔피언 중 가장 킬관여율이 높은 챔피언은 '
${
firstKPChamp
.
name
}
'이다. (단, 10게임 이상)`
;
quizX
=
`
${
fakerData
.
name
}
가 대회에서 플레이한 챔피언 중 가장 킬관여율이 높은 챔피언은 '
${
secondKPChamp
.
name
}
'이다. (단, 10게임 이상)`
;
info
=
`'
${
firstKPChamp
.
name
}
' :
${
firstKPChamp
.
kP
}
\n'
${
secondKPChamp
.
name
}
' :
${
secondKPChamp
.
kP
}
`
;
generateOX
(
quizO
,
quizX
,
info
);
//#endregion
}
function
generateOX
(
quizO
,
quizX
,
moreInfo
)
{
...
...
Please
register
or
login
to post a comment