Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
D
dc-cah
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
JoyJ
dc-cah
Commits
08943051
Commit
08943051
authored
Oct 19, 2022
by
JoyJ
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix card selection
parent
9ffff8da
Pipeline
#17301
canceled with stages
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
5 deletions
+10
-5
cards.js
cards.js
+4
-5
game.js
game.js
+6
-0
No files found.
cards.js
View file @
08943051
...
...
@@ -67,8 +67,7 @@ function white_NEW()
"
单推孙笑川
"
,
"
暗杀刘波
"
,
"
裁判
"
,
"
最后回答者
"
,
"
获胜者
"
,
"
本轮胜者
"
,
"
用舌头走路
"
,
"
在抗日剧中参演日本天皇
"
,
"
乔碧萝殿下
"
,
...
...
@@ -178,7 +177,7 @@ function white_NEW()
"
肯德基疯狂星期四
"
,
"
V我50
"
,
"
慢动作
"
,
"
突然大便爆炸病
"
,
"
大便爆炸
"
,
"
自杀的念头
"
,
"
阳光与彩虹
"
,
"
俯冲
"
,
...
...
@@ -221,8 +220,8 @@ function white_NEW()
"
妻子的职责
"
,
"
妇女选举权
"
,
"
世界和平
"
,
"
你必须
建造额外的水晶塔
"
,
"
我得
重新集结部队
"
,
"
建造额外的水晶塔
"
,
"
重新集结部队
"
,
"
阳光大姐
"
,
"
穆斯林
"
,
"
抽烟喝酒烫头
"
,
...
...
game.js
View file @
08943051
...
...
@@ -214,6 +214,9 @@ function readyForNextRound(gameId, playerId) {
function
selectCard
(
gameId
,
playerId
,
whiteCardId
)
{
try
{
var
player
=
getPlayer
(
gameId
,
playerId
);
if
(
player
==
game
.
players
[
game
.
Judge
]){
return
null
;
}
player
.
selectedWhiteCardId
=
whiteCardId
;
player
.
isReady
=
false
;
...
...
@@ -234,6 +237,9 @@ function selectCard(gameId, playerId, whiteCardId) {
function
selectWinner
(
gameId
,
cardId
)
{
try
{
var
player
=
getPlayerByCardId
(
gameId
,
cardId
);
if
(
player
!=
game
.
players
[
game
.
Judge
]){
return
null
;
}
var
game
=
getGame
(
gameId
);
game
.
winningCardId
=
cardId
;
game
.
isReadyForReview
=
true
;
...
...
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