Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
微笑面对bug
ddz
提交
11e57d66
ddz
项目概览
微笑面对bug
/
ddz
通知
5
Star
2
Fork
1
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
ddz
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
11e57d66
编写于
9月 26, 2020
作者:
微笑面对bug
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
界面
上级
c3176c5d
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
9 addition
and
8 deletion
+9
-8
dist/css/app.02c1ee2d.css
dist/css/app.02c1ee2d.css
+1
-0
dist/css/app.9c764c8f.css
dist/css/app.9c764c8f.css
+0
-1
dist/index.html
dist/index.html
+1
-1
dist/js/app.a5265769.js
dist/js/app.a5265769.js
+2
-2
dist/js/app.a5265769.js.map
dist/js/app.a5265769.js.map
+1
-0
src/components/Game.vue
src/components/Game.vue
+3
-3
src/doudizhu/Player.js
src/doudizhu/Player.js
+1
-1
未找到文件。
dist/css/app.02c1ee2d.css
0 → 100644
浏览文件 @
11e57d66
.pokerDesk
[
data-v-388d283f
]
{
height
:
100%
;
width
:
100px
;
border
:
1px
solid
;
border-radius
:
16px
;
float
:
left
;
margin-left
:
-50px
;
background-color
:
azure
;
font-size
:
30px
;
background-repeat
:
no-repeat
;
background-size
:
cover
}
.poker
[
data-v-388d283f
]
:hover
{
background-color
:
#faebd7
}
.selected
[
data-v-388d283f
]
{
margin-top
:
-20px
}
.s
[
data-v-388d283f
]
{
background-image
:
url(../img/s.aa339508.jpg)
}
.x
[
data-v-388d283f
]
{
background-image
:
url(../img/x.aa03af01.png)
}
\ No newline at end of file
dist/css/app.9c764c8f.css
已删除
100644 → 0
浏览文件 @
c3176c5d
.pokerDesk
[
data-v-2ac19fef
]
{
height
:
100%
;
width
:
100px
;
border
:
1px
solid
;
border-radius
:
16px
;
float
:
left
;
margin-left
:
-50px
;
background-color
:
azure
;
font-size
:
30px
;
background-repeat
:
no-repeat
;
background-size
:
cover
}
.poker
[
data-v-2ac19fef
]
:hover
{
background-color
:
#faebd7
}
.selected
[
data-v-2ac19fef
]
{
margin-top
:
-20px
}
.s
[
data-v-2ac19fef
]
{
background-image
:
url(../img/s.aa339508.jpg)
}
.x
[
data-v-2ac19fef
]
{
background-image
:
url(../img/x.aa03af01.png)
}
\ No newline at end of file
dist/index.html
浏览文件 @
11e57d66
<!DOCTYPE html>
<html><head><meta
charset=
utf-8
><meta
http-equiv=
X-UA-Compatible
content=
"IE=edge"
><meta
name=
viewport
content=
"width=device-width,initial-scale=1"
><title>
Vue App
</title><link
href=
css/app.9c764c8f.css
rel=
preload
as=
style
><link
href=
js/app.b03d0b62.js
rel=
preload
as=
script
><link
href=
js/chunk-vendors.caf18475.js
rel=
preload
as=
script
><link
href=
css/app.9c764c8f.css
rel=
stylesheet
></head><body><div
id=
app
></div><script
src=
js/chunk-vendors.caf18475.js
></script><script
src=
js/app.b03d0b62.js
></script></body></html>
\ No newline at end of file
<!DOCTYPE html>
<html><head><meta
charset=
utf-8
><meta
http-equiv=
X-UA-Compatible
content=
"IE=edge"
><meta
name=
viewport
content=
"width=device-width,initial-scale=1"
><title>
Vue App
</title><link
href=
css/app.02c1ee2d.css
rel=
preload
as=
style
><link
href=
js/app.a5265769.js
rel=
preload
as=
script
><link
href=
js/chunk-vendors.caf18475.js
rel=
preload
as=
script
><link
href=
css/app.02c1ee2d.css
rel=
stylesheet
></head><body><div
id=
app
></div><script
src=
js/chunk-vendors.caf18475.js
></script><script
src=
js/app.a5265769.js
></script></body></html>
\ No newline at end of file
dist/js/app.
b03d0b62
.js
→
dist/js/app.
a5265769
.js
浏览文件 @
11e57d66
(
function
(
e
){
function
t
(
t
){
for
(
var
n
,
o
,
l
=
t
[
0
],
a
=
t
[
1
],
h
=
t
[
2
],
u
=
0
,
g
=
[];
u
<
l
.
length
;
u
++
)
o
=
l
[
u
],
Object
.
prototype
.
hasOwnProperty
.
call
(
i
,
o
)
&&
i
[
o
]
&&
g
.
push
(
i
[
o
][
0
]),
i
[
o
]
=
0
;
for
(
n
in
a
)
Object
.
prototype
.
hasOwnProperty
.
call
(
a
,
n
)
&&
(
e
[
n
]
=
a
[
n
]);
p
&&
p
(
t
);
while
(
g
.
length
)
g
.
shift
()();
return
s
.
push
.
apply
(
s
,
h
||
[]),
r
()}
function
r
(){
for
(
var
e
,
t
=
0
;
t
<
s
.
length
;
t
++
){
for
(
var
r
=
s
[
t
],
n
=!
0
,
l
=
1
;
l
<
r
.
length
;
l
++
){
var
a
=
r
[
l
];
0
!==
i
[
a
]
&&
(
n
=!
1
)}
n
&&
(
s
.
splice
(
t
--
,
1
),
e
=
o
(
o
.
s
=
r
[
0
]))}
return
e
}
var
n
=
{},
i
=
{
app
:
0
},
s
=
[];
function
o
(
t
){
if
(
n
[
t
])
return
n
[
t
].
exports
;
var
r
=
n
[
t
]
=
{
i
:
t
,
l
:
!
1
,
exports
:{}};
return
e
[
t
].
call
(
r
.
exports
,
r
,
r
.
exports
,
o
),
r
.
l
=!
0
,
r
.
exports
}
o
.
m
=
e
,
o
.
c
=
n
,
o
.
d
=
function
(
e
,
t
,
r
){
o
.
o
(
e
,
t
)
||
Object
.
defineProperty
(
e
,
t
,{
enumerable
:
!
0
,
get
:
r
})},
o
.
r
=
function
(
e
){
"
undefined
"
!==
typeof
Symbol
&&
Symbol
.
toStringTag
&&
Object
.
defineProperty
(
e
,
Symbol
.
toStringTag
,{
value
:
"
Module
"
}),
Object
.
defineProperty
(
e
,
"
__esModule
"
,{
value
:
!
0
})},
o
.
t
=
function
(
e
,
t
){
if
(
1
&
t
&&
(
e
=
o
(
e
)),
8
&
t
)
return
e
;
if
(
4
&
t
&&
"
object
"
===
typeof
e
&&
e
&&
e
.
__esModule
)
return
e
;
var
r
=
Object
.
create
(
null
);
if
(
o
.
r
(
r
),
Object
.
defineProperty
(
r
,
"
default
"
,{
enumerable
:
!
0
,
value
:
e
}),
2
&
t
&&
"
string
"
!=
typeof
e
)
for
(
var
n
in
e
)
o
.
d
(
r
,
n
,
function
(
t
){
return
e
[
t
]}.
bind
(
null
,
n
));
return
r
},
o
.
n
=
function
(
e
){
var
t
=
e
&&
e
.
__esModule
?
function
(){
return
e
[
"
default
"
]}:
function
(){
return
e
};
return
o
.
d
(
t
,
"
a
"
,
t
),
t
},
o
.
o
=
function
(
e
,
t
){
return
Object
.
prototype
.
hasOwnProperty
.
call
(
e
,
t
)},
o
.
p
=
""
;
var
l
=
window
[
"
webpackJsonp
"
]
=
window
[
"
webpackJsonp
"
]
||
[],
a
=
l
.
push
.
bind
(
l
);
l
.
push
=
t
,
l
=
l
.
slice
();
for
(
var
h
=
0
;
h
<
l
.
length
;
h
++
)
t
(
l
[
h
]);
var
p
=
a
;
s
.
push
([
0
,
"
chunk-vendors
"
]),
r
()})({
0
:
function
(
e
,
t
,
r
){
e
.
exports
=
r
(
"
56d7
"
)},
"
00a8
"
:
function
(
e
,
t
,
r
){
e
.
exports
=
r
.
p
+
"
img/scene.02780059.jpg
"
},
"
0f52
"
:
function
(
e
,
t
,
r
){},
"
56d7
"
:
function
(
e
,
t
,
r
){
"
use strict
"
;
r
.
r
(
t
);
r
(
"
e260
"
),
r
(
"
e6cf
"
),
r
(
"
cca6
"
),
r
(
"
a79d
"
);
var
n
=
r
(
"
2b0e
"
),
i
=
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
r
=
e
.
_self
.
_c
||
t
;
return
r
(
"
div
"
,{
attrs
:{
id
:
"
app
"
}},[
r
(
"
Game
"
)],
1
)},
s
=
[],
o
=
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
r
=
e
.
_self
.
_c
||
t
;
return
r
(
"
div
"
,[
r
(
"
div
"
,{
staticStyle
:{
width
:
"
300px
"
,
height
:
"
300px
"
,
float
:
"
left
"
,
position
:
"
fixed
"
,
left
:
"
0px
"
,
top
:
"
0px
"
,
"
background-color
"
:
"
aliceblue
"
,
"
text-align
"
:
"
center
"
}},[
r
(
"
span
"
,[
e
.
_v
(
"
"
+
e
.
_s
(
e
.
player2Str
[
0
])
+
"
"
),
r
(
"
br
"
),
e
.
_v
(
"
"
+
e
.
_s
(
e
.
player2Str
[
1
])
+
"
"
),
r
(
"
br
"
),
r
(
"
br
"
),
e
.
_v
(
"
"
+
e
.
_s
(
e
.
player2Str
[
2
])
+
"
"
)])]),
r
(
"
div
"
,{
staticStyle
:{
width
:
"
300px
"
,
height
:
"
300px
"
,
float
:
"
left
"
,
position
:
"
fixed
"
,
left
:
"
600px
"
,
top
:
"
0px
"
,
"
background-color
"
:
"
aliceblue
"
,
"
text-align
"
:
"
center
"
}},[
r
(
"
span
"
,[
e
.
_v
(
"
"
+
e
.
_s
(
e
.
player1Str
[
0
])
+
"
"
),
r
(
"
br
"
),
e
.
_v
(
"
"
+
e
.
_s
(
e
.
player1Str
[
1
])
+
"
"
),
r
(
"
br
"
),
r
(
"
br
"
),
e
.
_v
(
"
"
+
e
.
_s
(
e
.
player1Str
[
2
])
+
"
"
)])]),
r
(
"
div
"
,{
staticStyle
:{
width
:
"
300px
"
,
height
:
"
300px
"
,
float
:
"
left
"
,
position
:
"
fixed
"
,
left
:
"
300px
"
,
top
:
"
300px
"
,
"
background-color
"
:
"
aliceblue
"
,
"
text-align
"
:
"
center
"
}},[
r
(
"
span
"
,[
e
.
_v
(
"
"
+
e
.
_s
(
e
.
player0Str
[
0
])
+
"
"
),
r
(
"
br
"
),
e
.
_v
(
"
"
+
e
.
_s
(
e
.
player0Str
[
1
])
+
"
"
),
r
(
"
br
"
),
r
(
"
br
"
),
e
.
_v
(
"
"
+
e
.
_s
(
e
.
player0Str
[
2
])
+
"
"
)]),
r
(
"
div
"
,[
r
(
"
input
"
,{
directives
:[{
name
:
"
model
"
,
rawName
:
"
v-model
"
,
value
:
e
.
playerStr
,
expression
:
"
playerStr
"
}],
attrs
:{
type
:
"
text
"
},
domProps
:{
value
:
e
.
playerStr
},
on
:{
input
:
function
(
t
){
t
.
target
.
composing
||
(
e
.
playerStr
=
t
.
target
.
value
)}}}),
r
(
"
button
"
,{
on
:{
click
:
e
.
sendPoker
}},[
e
.
_v
(
"
send
"
)]),
r
(
"
button
"
,{
on
:{
click
:
e
.
pass
}},[
e
.
_v
(
"
pass
"
)])])]),
r
(
"
div
"
,{
staticStyle
:{
width
:
"
300px
"
,
height
:
"
300px
"
,
float
:
"
left
"
,
position
:
"
fixed
"
,
left
:
"
300px
"
,
top
:
"
0px
"
,
"
background-color
"
:
"
aliceblue
"
,
"
text-align
"
:
"
center
"
}},[
r
(
"
div
"
,{
staticStyle
:{
width
:
"
300px
"
,
"
word-wrap
"
:
"
break-word
"
}},[
e
.
_v
(
"
"
+
e
.
_s
(
e
.
deskStr
[
0
])
+
"
"
),
r
(
"
br
"
),
e
.
_v
(
"
"
+
e
.
_s
(
e
.
deskStr
[
1
])
+
"
"
)])]),
r
(
"
div
"
,{
staticStyle
:{
position
:
"
fixed
"
,
left
:
"
300px
"
,
top
:
"
600px
"
}},[
r
(
"
button
"
,{
on
:{
click
:
e
.
reStart
}},[
e
.
_v
(
"
reStart
"
)])])])},
l
=
[],
a
=
(
r
(
"
b0c0
"
),
r
(
"
a434
"
),
r
(
"
d4ec
"
)),
h
=
r
(
"
bee2
"
),
p
=
(
r
(
"
d81d
"
),
r
(
"
d3b7
"
),
r
(
"
25f0
"
),
function
(){
function
e
(
t
){
Object
(
a
[
"
a
"
])(
this
,
e
),
t
.
text
?(
this
.
text
=
t
.
text
,
this
.
number
=
e
.
textToNumber
(
t
.
text
)):(
this
.
number
=
t
.
number
,
this
.
text
=
e
.
numberToText
(
t
.
number
)),
this
.
type
=
t
.
type
,
this
.
selected
=
t
.
selected
}
return
Object
(
h
[
"
a
"
])(
e
,[{
key
:
"
toString
"
,
value
:
function
(){
return
this
.
text
}}],[{
key
:
"
textToNumber
"
,
value
:
function
(
e
){
switch
(
e
){
case
"
3
"
:
return
3
;
case
"
4
"
:
return
4
;
case
"
5
"
:
return
5
;
case
"
6
"
:
return
6
;
case
"
7
"
:
return
7
;
case
"
8
"
:
return
8
;
case
"
9
"
:
return
9
;
case
"
10
"
:
case
"
0
"
:
case
"
T
"
:
case
"
t
"
:
return
10
;
case
"
11
"
:
case
"
j
"
:
case
"
J
"
:
return
11
;
case
"
12
"
:
case
"
q
"
:
case
"
Q
"
:
return
12
;
case
"
13
"
:
case
"
k
"
:
case
"
K
"
:
return
13
;
case
"
1
"
:
case
"
a
"
:
case
"
A
"
:
return
14
;
case
"
2
"
:
return
15
;
case
"
s
"
:
case
"
S
"
:
return
16
;
case
"
x
"
:
case
"
X
"
:
return
17
}}},{
key
:
"
numberToText
"
,
value
:
function
(
e
){
switch
(
e
){
case
3
:
return
"
3
"
;
case
4
:
return
"
4
"
;
case
5
:
return
"
5
"
;
case
6
:
return
"
6
"
;
case
7
:
return
"
7
"
;
case
8
:
return
"
8
"
;
case
9
:
return
"
9
"
;
case
10
:
return
"
10
"
;
case
11
:
return
"
J
"
;
case
12
:
return
"
Q
"
;
case
13
:
return
"
K
"
;
case
14
:
return
"
A
"
;
case
15
:
return
"
2
"
;
case
16
:
return
"
S
"
;
case
17
:
return
"
X
"
}}},{
key
:
"
sortFunction
"
,
value
:
function
(
e
,
t
){
return
e
.
number
-
t
.
number
}},{
key
:
"
getObjByPokerList
"
,
value
:
function
(
t
){
if
(
"
pass
"
===
t
[
0
])
return
{
type
:
"
pass
"
,
poker
:
t
};
t
.
sort
(
e
.
sortFunction
);
for
(
var
r
=
t
[
0
],
n
=
[
r
],
i
=
[],
s
=
1
;
s
<
t
.
length
;
s
++
)
t
[
s
].
number
!==
r
.
number
?(
i
.
push
(
n
),
n
=
[
t
[
s
]]):
n
.
push
(
t
[
s
]),
r
=
t
[
s
];
i
.
push
(
n
);
for
(
var
o
=
[],
l
=
[],
a
=
[],
h
=
[],
p
=
0
;
p
<
i
.
length
;
p
++
)
3
===
i
[
p
].
length
?
a
.
push
(
i
[
p
]):
2
===
i
[
p
].
length
?
l
.
push
(
i
[
p
]):
1
===
i
[
p
].
length
?
o
.
push
(
i
[
p
]):
4
===
i
[
p
].
length
&&
h
.
push
(
i
[
p
]);
if
(
1
===
t
.
length
)
return
{
type
:
"
one
"
,
poker
:
t
,
one
:
t
};
if
(
2
===
t
.
length
){
if
(
1
===
l
.
length
)
return
{
type
:
"
two
"
,
poker
:
t
,
two
:
t
};
if
(
16
===
t
[
0
].
number
&&
17
===
t
[
1
].
number
)
return
{
type
:
"
sx
"
,
poker
:
t
,
sx
:
t
}}
else
if
(
3
===
t
.
length
){
if
(
1
===
a
.
length
)
return
{
type
:
"
three
"
,
poker
:
t
,
three
:
t
}}
else
if
(
4
===
t
.
length
){
if
(
1
===
a
.
length
)
return
{
type
:
"
threeWithOne
"
,
poker
:
t
,
three
:
a
[
0
],
one
:
o
[
0
]};
if
(
1
===
h
.
length
)
return
{
type
:
"
four
"
,
poker
:
t
,
four
:
t
}}
else
if
(
5
===
t
.
length
){
if
(
1
===
a
.
length
&&
1
===
l
.
length
)
return
{
type
:
"
threeWithTwo
"
,
poker
:
t
,
three
:
a
[
0
],
two
:
l
[
0
]}}
else
if
(
6
===
t
.
length
){
if
(
1
===
h
.
length
&&
2
===
o
.
length
)
return
{
type
:
"
fourWithOne
"
,
poker
:
t
,
four
:
h
[
0
]}}
else
if
(
8
===
t
.
length
&&
1
===
h
.
length
&&
2
===
l
.
length
)
return
{
type
:
"
fourWithTwo
"
,
poker
:
t
,
four
:
h
[
0
]};
if
(
a
.
length
>=
2
&&
a
[
a
.
length
-
1
][
0
].
number
<=
14
&&
a
[
0
][
0
].
number
+
a
.
length
-
1
===
a
[
a
.
length
-
1
][
0
].
number
){
if
(
t
.
length
-
3
*
a
.
length
===
a
.
length
)
return
{
type
:
"
threeWithOneList
"
,
poker
:
t
,
list
:
a
.
map
((
function
(
e
){
return
{
three
:
e
}}))};
if
(
l
.
length
===
a
.
length
)
return
{
type
:
"
threeWithTwoList
"
,
poker
:
t
,
list
:
a
.
map
((
function
(
e
){
return
{
three
:
e
}}))}}
return
t
.
length
>=
5
&&
t
[
t
.
length
-
1
].
number
<=
14
&&
o
.
length
===
t
.
length
&&
t
[
0
].
number
+
t
.
length
-
1
===
t
[
t
.
length
-
1
].
number
?{
type
:
"
oneList
"
,
poker
:
t
,
list
:
o
.
map
((
function
(
e
){
return
{
one
:
e
}}))}:
t
.
length
>=
6
&&
t
[
t
.
length
-
1
].
number
<=
14
&&
t
.
length
%
2
===
0
&&
l
.
length
===
t
.
length
/
2
&&
t
[
0
].
number
+
t
.
length
/
2
-
1
===
t
[
t
.
length
-
1
].
number
?{
type
:
"
twoList
"
,
poker
:
t
,
list
:
l
.
map
((
function
(
e
){
return
{
two
:
e
}}))}:
t
.
length
>=
6
&&
t
[
t
.
length
-
1
].
number
<=
14
&&
t
.
length
%
3
===
0
&&
a
.
length
===
t
.
length
/
3
&&
t
[
0
].
number
+
t
.
length
/
3
-
1
===
t
[
t
.
length
-
1
].
number
&&
{
type
:
"
threeList
"
,
poker
:
t
,
list
:
a
.
map
((
function
(
e
){
return
{
three
:
e
}}))}}},{
key
:
"
pokerListToString
"
,
value
:
function
(
e
){
for
(
var
t
=
""
,
r
=
0
;
r
<
e
.
length
;
r
++
){
var
n
=
e
[
r
].
toString
();
t
+=
n
}
return
t
}}]),
e
}()),
u
=
p
,
g
=
(
r
(
"
99af
"
),
r
(
"
0481
"
),
r
(
"
fb6a
"
),
r
(
"
4069
"
),
function
(){
function
e
(
t
){
Object
(
a
[
"
a
"
])(
this
,
e
),
t
=
t
||
{},
this
.
player
=
t
.
player
,
this
.
game
=
t
.
game
}
return
Object
(
h
[
"
a
"
])(
e
,[{
key
:
"
classify
"
,
value
:
function
(
e
){
if
(
e
.
sort
(
this
.
sortFunction
),
0
===
e
.
length
)
return
{
1
:[],
2
:[],
3
:[],
4
:[]};
for
(
var
t
=
e
[
0
],
r
=
[
t
],
n
=
[],
i
=
1
;
i
<
e
.
length
;
i
++
)
e
[
i
].
number
!==
t
.
number
?(
n
.
push
(
r
),
r
=
[
e
[
i
]]):
r
.
push
(
e
[
i
]),
t
=
e
[
i
];
n
.
push
(
r
);
for
(
var
s
=
[],
o
=
[],
l
=
[],
a
=
[],
h
=
0
;
h
<
n
.
length
;
h
++
)
3
===
n
[
h
].
length
?
l
.
push
(
n
[
h
]):
2
===
n
[
h
].
length
?
o
.
push
(
n
[
h
]):
1
===
n
[
h
].
length
?
s
.
push
(
n
[
h
]):
4
===
n
[
h
].
length
&&
a
.
push
(
n
[
h
]);
return
{
1
:
s
,
2
:
o
,
3
:
l
,
4
:
a
}}},{
key
:
"
getClassifyObj
"
,
value
:
function
(
e
){
for
(
var
t
=
[],
r
=
[],
n
=
[],
i
=
e
.
slice
(
0
),
s
=
0
;
s
<
i
.
length
;
s
++
)
if
(
15
===
i
[
s
].
number
){
var
o
=
i
.
splice
(
s
,
1
);
s
--
,
t
.
push
(
o
[
0
])}
else
if
(
16
===
i
[
s
].
number
){
var
l
=
i
.
splice
(
s
,
1
);
s
--
,
r
.
push
(
l
[
0
])}
else
if
(
17
===
i
[
s
].
number
){
var
a
=
i
.
splice
(
s
,
1
);
s
--
,
n
.
push
(
a
[
0
])}
var
h
=
this
.
classify
(
i
),
p
=
h
[
1
],
u
=
h
[
2
],
g
=
h
[
3
],
f
=
h
[
4
],
y
=
f
,
c
=
[],
k
=
[],
b
=
[],
m
=
[],
v
=
[],
d
=
[];
if
(
g
.
length
>
0
){
for
(
var
L
=
[
g
[
0
]],
x
=
[],
w
=
1
;
w
<
g
.
length
;
w
++
)
g
[
w
][
0
].
number
!==
g
[
w
-
1
][
0
].
number
+
1
?(
x
.
push
(
L
),
L
=
[
g
[
w
]]):
L
.
push
(
g
[
w
]);
x
.
push
(
L
);
for
(
var
S
=
0
;
S
<
x
.
length
;
S
++
)
x
[
S
].
length
>
1
?
k
.
push
(
x
[
S
]):
c
.
push
(
x
[
S
][
0
])}
if
(
u
.
length
>
0
){
for
(
var
O
=
[
u
[
0
]],
j
=
[],
P
=
1
;
P
<
u
.
length
;
P
++
)
u
[
P
][
0
].
number
!==
u
[
P
-
1
][
0
].
number
+
1
?(
j
.
push
(
O
),
O
=
[
u
[
P
]]):
O
.
push
(
u
[
P
]);
j
.
push
(
O
);
for
(
var
_
=
0
;
_
<
j
.
length
;
_
++
)
j
[
_
].
length
>
2
?
m
.
push
(
j
[
_
]):
b
=
b
.
concat
(
j
[
_
])}
if
(
p
.
length
>
0
){
for
(
var
T
=
[
p
[
0
]],
B
=
[],
W
=
1
;
W
<
p
.
length
;
W
++
)
p
[
W
][
0
].
number
!==
p
[
W
-
1
][
0
].
number
+
1
?(
B
.
push
(
T
),
T
=
[
p
[
W
]]):
T
.
push
(
p
[
W
]);
B
.
push
(
T
);
for
(
var
N
=
0
;
N
<
B
.
length
;
N
++
)
B
[
N
].
length
>
4
?
d
.
push
(
B
[
N
]):
v
=
v
.
concat
(
B
[
N
])}
if
(
v
.
length
>
0
&&
b
.
length
>
0
){
var
z
=
0
,
A
=
0
;
while
(
1
){
if
(
z
>
v
.
length
-
1
&&
A
>
b
.
length
-
1
)
break
;
var
M
=
void
0
,
F
=
void
0
,
D
=
[],
C
=
[];
if
(
0
===
v
.
length
||
z
>
v
.
length
-
1
)
break
;
0
===
b
.
length
||
A
>
b
.
length
-
1
||
v
[
z
][
0
].
number
<
b
[
A
][
0
].
number
?(
M
=
v
[
z
][
0
].
number
,
D
.
push
(
v
[
z
]),
z
++
):(
M
=
b
[
A
][
0
].
number
,
C
.
push
(
b
[
A
]),
A
++
),
F
=
M
;
do
{
if
(
z
>
v
.
length
-
1
&&
A
>
b
.
length
-
1
)
break
;
if
(
z
<
v
.
length
&&
v
[
z
][
0
].
number
===
F
+
1
)
D
.
push
(
v
[
z
]),
z
++
;
else
{
if
(
!
(
A
<
b
.
length
&&
b
[
A
][
0
].
number
===
F
+
1
))
break
;
C
.
push
(
b
[
A
]),
A
++
}
if
(
F
+=
1
,
F
===
M
+
4
&&
C
.
length
<
4
){
for
(
var
I
=
[],
R
=
0
;
R
<
D
.
length
;
R
++
){
I
.
push
(
D
[
R
]);
for
(
var
G
=
0
;
G
<
v
.
length
;
G
++
)
if
(
v
[
G
]
===
D
[
R
]){
v
.
splice
(
G
,
1
);
break
}}
for
(
var
J
=
0
;
J
<
C
.
length
;
J
++
){
for
(
var
$
=
C
[
J
],
E
=
0
;
E
<
b
.
length
;
E
++
)
if
(
b
[
E
]
===
$
){
b
.
splice
(
E
,
1
);
break
}
var
H
=
$
.
splice
(
0
,
1
);
I
.
push
(
H
),
v
.
push
(
$
)}
I
.
sort
(
this
.
sortArray
),
d
.
push
(
I
),
v
.
sort
(
this
.
sortArray
),
z
=
0
,
A
=
0
;
break
}}
while
(
1
)}}
for
(
var
K
=
0
;
K
<
v
.
length
;
K
++
){
for
(
var
Q
=!
1
,
X
=
0
;
X
<
d
.
length
;
X
++
){
if
(
v
[
K
][
0
].
number
===
d
[
X
][
0
][
0
].
number
-
1
){
d
[
X
].
unshift
(
v
[
K
]),
Q
=!
0
;
break
}
if
(
v
[
K
][
0
].
number
===
d
[
X
][
d
[
X
].
length
-
1
][
0
].
number
+
1
){
d
[
X
].
push
(
v
[
K
]),
Q
=!
0
;
break
}}
Q
&&
(
v
.
splice
(
K
,
1
),
K
--
)}
d
.
sort
(
this
.
sortList
);
for
(
var
q
=
1
;
q
<
d
.
length
;
q
++
)
d
[
q
][
0
][
0
].
number
===
d
[
q
-
1
][
d
[
q
-
1
].
length
-
1
][
0
].
number
+
1
&&
(
d
[
q
-
1
]
=
d
[
q
-
1
].
concat
(
d
[
q
]),
d
.
splice
(
q
,
1
),
q
--
);
return
{
four
:
y
,
three
:
c
,
threeList
:
k
,
two
:
b
,
twoList
:
m
,
one
:
v
,
oneList
:
d
,
poker15
:
t
,
poker16
:
r
,
poker17
:
n
}}},{
key
:
"
getByObj1
"
,
value
:
function
(
e
){
var
t
;
return
t
=
this
.
getSmallestObjByObj
(
e
),
t
||
(
t
=
this
.
getByBoom
(
e
)),
t
}},{
key
:
"
getByObj2
"
,
value
:
function
(
e
){
var
t
;
return
t
=
this
.
getByObj1
(
e
),
t
||
(
t
=
this
.
getBySplit
(
e
)),
t
}},{
key
:
"
getByObj3
"
,
value
:
function
(
e
){
var
t
;
return
t
=
this
.
getSmallestObjNoBig
(
e
),
t
}},{
key
:
"
getByObj4
"
,
value
:
function
(
e
){
var
t
;
return
t
=
"
one
"
===
e
.
type
?
this
.
getByObj5
(
e
):
this
.
getByObj2
(
e
),
t
}},{
key
:
"
getByBoom
"
,
value
:
function
(
e
){
var
t
,
r
,
n
=
this
.
player
.
classifyObj
;
if
(
"
sx
"
===
e
.
type
)
return
null
;
if
(
n
.
four
.
length
>
0
)
if
(
"
four
"
===
e
.
type
){
for
(
var
i
=
0
;
i
<
n
.
four
.
length
;
i
++
)
if
(
n
.
four
[
i
][
0
].
number
>
e
.
four
[
0
].
number
){
r
=
n
.
four
[
i
];
break
}}
else
r
=
n
.
four
[
0
];
return
r
||
4
===
n
.
poker15
.
length
&&
(
r
=
n
.
poker15
),
r
?
t
=
{
type
:
"
four
"
,
poker
:
r
,
four
:
r
}:
n
.
poker16
.
length
>
0
&&
n
.
poker17
.
length
>
0
&&
(
t
=
{
type
:
"
sx
"
,
poker
:
n
.
poker16
.
concat
(
n
.
poker17
),
sx
:
n
.
poker16
.
concat
(
n
.
poker17
)}),
t
}},{
key
:
"
getByObj5
"
,
value
:
function
(
e
){
var
t
=
this
.
getByBoom
(
e
);
return
t
||
this
.
player
.
pokerList
[
this
.
player
.
pokerList
.
length
-
1
].
number
>
e
.
one
[
0
].
number
&&
(
t
=
{
type
:
"
one
"
,
poker
:[
this
.
player
.
pokerList
[
this
.
player
.
pokerList
.
length
-
1
]],
one
:[
this
.
player
.
pokerList
[
this
.
player
.
pokerList
.
length
-
1
]]}),
t
}},{
key
:
"
getByObj6
"
,
value
:
function
(
e
){
var
t
;
return
t
=
"
dizhu
"
===
e
.
player
.
type
?
this
.
getByObj1
(
e
):
this
.
getByObj3
(
e
),
t
}},{
key
:
"
playByObj
"
,
value
:
function
(
e
){
var
t
;
if
(
"
sx
"
===
e
.
type
)
return
t
=
{
type
:
"
pass
"
,
poker
:[
"
pass
"
]},
void
this
.
player
.
deleteFromPokerListAndSendByObj
(
t
);
if
(
"
dizhu
"
===
this
.
player
.
type
)
t
=
1
===
this
.
player
.
next
.
pokerList
.
length
||
1
===
this
.
player
.
last
.
pokerList
.
length
?
this
.
getByObj4
(
e
):
this
.
getByObj1
(
e
);
else
if
(
this
.
player
.
next
.
type
===
this
.
player
.
type
)
t
=
this
.
getByObj6
(
e
);
else
if
(
1
===
this
.
player
.
next
.
pokerList
.
length
){
if
(
"
dizhu
"
===
e
.
player
.
type
)
t
=
this
.
getByObj4
(
e
);
else
if
(
"
one
"
===
e
.
type
){
var
r
=
this
.
isPlayerCanNotGetOne
(
e
);
r
||
(
t
=
this
.
getByObj5
(
e
))}}
else
t
=
this
.
getByObj6
(
e
);
t
||
(
t
=
{
type
:
"
pass
"
,
poker
:[
"
pass
"
]}),
this
.
player
.
deleteFromPokerListAndSendByObj
(
t
)}},{
key
:
"
isPlayerCanNotGetOne
"
,
value
:
function
(
e
){
for
(
var
t
=
{
3
:
0
,
4
:
0
,
5
:
0
,
6
:
0
,
7
:
0
,
8
:
0
,
9
:
0
,
10
:
0
,
11
:
0
,
12
:
0
,
13
:
0
,
14
:
0
,
15
:
0
,
16
:
0
,
17
:
0
},
r
=
this
.
game
.
oldPokerList
,
n
=
0
;
n
<
r
.
length
;
n
++
)
for
(
var
i
=
0
;
i
<
r
[
n
].
poker
.
length
;
i
++
)
t
[
r
[
n
].
poker
[
i
].
number
]
++
;
for
(
var
s
=
this
.
game
.
deskPokerObj
,
o
=
0
;
o
<
s
.
poker
.
length
;
o
++
)
t
[
s
.
poker
[
o
].
number
]
++
;
for
(
var
l
=
this
.
player
.
pokerList
,
a
=
0
;
a
<
l
.
length
;
a
++
)
t
[
l
[
a
].
number
]
++
;
var
h
=
e
.
one
[
0
].
number
;
if
(
16
===
h
){
if
(
1
!==
t
[
17
])
return
!
1
}
else
if
(
15
===
h
){
if
(
1
!==
t
[
16
]
||
1
!==
t
[
17
])
return
!
1
}
else
for
(
var
p
=
h
+
1
;
p
<=
15
;
p
++
)
if
(
4
!==
t
[
p
])
return
!
1
;
return
!
0
}},{
key
:
"
playByTypys1
"
,
value
:
function
(){
for
(
var
e
=
[
"
threeWithTwoList
"
,
"
threeWithOneList
"
,
"
threeList
"
,
"
twoList
"
,
"
oneList
"
,
"
threeWithTwo
"
,
"
threeWithOne
"
,
"
three
"
,
"
two
"
,
"
one
"
,
"
four
"
,
"
sx
"
],
t
=
0
;
t
<
e
.
length
;
t
++
){
var
r
=
this
.
getSmallestObjByType
(
e
[
t
]);
if
(
r
){
this
.
player
.
deleteFromPokerListAndSendByObj
(
r
);
break
}}}},{
key
:
"
playByTypys2
"
,
value
:
function
(){
for
(
var
e
=
[
"
threeWithTwoList
"
,
"
threeWithOneList
"
,
"
threeList
"
,
"
twoList
"
,
"
oneList
"
,
"
threeWithTwo
"
,
"
threeWithOne
"
,
"
three
"
,
"
two
"
,
"
four
"
,
"
sx
"
,
"
one
"
],
t
=
0
;
t
<
e
.
length
;
t
++
){
var
r
=
this
.
getSmallestObjByType
(
e
[
t
],
!
0
);
if
(
r
){
this
.
player
.
deleteFromPokerListAndSendByObj
(
r
);
break
}}}},{
key
:
"
playSmallestOne
"
,
value
:
function
(){
var
e
=
{
type
:
"
one
"
,
poker
:[
this
.
player
.
pokerList
[
0
]],
one
:[
this
.
player
.
pokerList
[
0
]]};
this
.
player
.
deleteFromPokerListAndSendByObj
(
e
)}},{
key
:
"
playByAllType
"
,
value
:
function
(){
"
dizhu
"
===
this
.
player
.
type
?
1
===
this
.
player
.
next
.
pokerList
.
length
||
1
===
this
.
player
.
last
.
pokerList
.
length
?
this
.
playByTypys2
():
this
.
playByTypys1
():
"
nongmin
"
===
this
.
player
.
next
.
type
?
1
===
this
.
player
.
next
.
pokerList
.
length
?
this
.
playSmallestOne
():
this
.
playByTypys1
():
1
===
this
.
player
.
next
.
pokerList
.
length
?
this
.
playByTypys2
():
this
.
playByTypys1
()}},{
key
:
"
getSmallestObjNoBig
"
,
value
:
function
(
e
){
var
t
=
this
.
player
.
classifyObj
,
r
=
e
.
type
,
n
=
null
;
if
(
"
one
"
===
r
){
var
i
;
if
(
t
.
one
.
length
>
0
)
for
(
var
s
=
0
;
s
<
t
.
one
.
length
;
s
++
)
if
(
t
.
one
[
s
][
0
].
number
>
e
.
one
[
0
].
number
){
i
=
t
.
one
[
s
];
break
}
i
&&
(
n
=
{
type
:
r
,
poker
:
i
,
one
:
i
})}
else
if
(
"
two
"
===
r
){
var
o
;
if
(
t
.
two
.
length
>
0
)
for
(
var
l
=
0
;
l
<
t
.
two
.
length
;
l
++
)
if
(
t
.
two
[
l
][
0
].
number
>
e
.
two
[
0
].
number
){
o
=
t
.
two
[
l
];
break
}
o
&&
(
n
=
{
type
:
r
,
poker
:
o
,
two
:
o
})}
else
if
(
"
three
"
===
r
){
var
a
;
if
(
t
.
three
.
length
>
0
)
for
(
var
h
=
0
;
h
<
t
.
three
.
length
;
h
++
)
if
(
t
.
three
[
h
][
0
].
number
>
e
.
three
[
0
].
number
){
t
.
three
[
h
][
0
].
number
<=
13
&&
(
a
=
t
.
three
[
h
]);
break
}
a
&&
(
n
=
{
type
:
r
,
poker
:
a
,
three
:
a
})}
else
if
(
"
threeWithOne
"
===
r
){
var
p
,
u
;
if
(
t
.
three
.
length
>
0
&&
t
.
three
.
length
>
0
)
for
(
var
g
=
0
;
g
<
t
.
three
.
length
;
g
++
)
if
(
t
.
three
[
g
][
0
].
number
>
e
.
three
[
0
].
number
){
t
.
three
[
g
][
0
].
number
<=
13
&&
(
p
=
t
.
three
[
g
]);
break
}
t
.
one
.
length
>
0
&&
(
u
=
t
.
one
[
0
]),
p
&&
u
&&
(
n
=
{
type
:
r
,
poker
:
p
.
concat
(
u
),
three
:
p
,
one
:
u
})}
else
if
(
"
threeWithTwo
"
===
r
){
var
f
,
y
;
if
(
t
.
three
.
length
>
0
&&
t
.
three
.
length
>
0
)
for
(
var
c
=
0
;
c
<
t
.
three
.
length
;
c
++
)
if
(
t
.
three
[
c
][
0
].
number
>
e
.
three
[
0
].
number
){
t
.
three
[
c
][
0
].
number
<=
13
&&
(
f
=
t
.
three
[
c
]);
break
}
t
.
two
.
length
>
0
&&
(
y
=
t
.
two
[
0
]),
f
&&
y
&&
(
n
=
{
type
:
r
,
poker
:
f
.
concat
(
y
),
three
:
f
,
two
:
y
})}
return
n
}},{
key
:
"
getSmallestObjByObj
"
,
value
:
function
(
e
){
var
t
=
this
.
player
.
classifyObj
,
r
=
e
.
type
,
n
=
null
;
if
(
"
one
"
===
r
){
var
i
;
if
(
t
.
one
.
length
>
0
)
for
(
var
s
=
0
;
s
<
t
.
one
.
length
;
s
++
)
if
(
t
.
one
[
s
][
0
].
number
>
e
.
one
[
0
].
number
){
i
=
t
.
one
[
s
];
break
}
i
||
(
e
.
one
[
0
].
number
<
15
&&
t
.
poker15
.
length
>
0
?
i
=
t
.
poker15
.
slice
(
0
,
1
):
0
!==
t
.
poker17
.
length
&&
0
!==
t
.
poker16
.
length
||
(
e
.
one
[
0
].
number
<
16
&&
t
.
poker16
.
length
>
0
?
i
=
t
.
poker16
:
e
.
one
[
0
].
number
<
17
&&
t
.
poker17
.
length
>
0
&&
(
i
=
t
.
poker17
))),
i
&&
(
n
=
{
type
:
r
,
poker
:
i
,
one
:
i
})}
else
if
(
"
two
"
===
r
){
var
o
;
if
(
t
.
two
.
length
>
0
)
for
(
var
l
=
0
;
l
<
t
.
two
.
length
;
l
++
)
if
(
t
.
two
[
l
][
0
].
number
>
e
.
two
[
0
].
number
){
o
=
t
.
two
[
l
];
break
}
o
||
e
.
two
[
0
].
number
<
15
&&
t
.
poker15
.
length
>
1
&&
(
o
=
t
.
poker15
.
slice
(
0
,
2
)),
o
&&
(
n
=
{
type
:
r
,
poker
:
o
,
two
:
o
})}
else
if
(
"
three
"
===
r
){
var
a
;
if
(
t
.
three
.
length
>
0
)
for
(
var
h
=
0
;
h
<
t
.
three
.
length
;
h
++
)
if
(
t
.
three
[
h
][
0
].
number
>
e
.
three
[
0
].
number
){
a
=
t
.
three
[
h
];
break
}
a
||
e
.
three
[
0
].
number
<
15
&&
3
===
t
.
poker15
.
length
&&
(
a
=
t
.
poker15
),
a
&&
(
n
=
{
type
:
r
,
poker
:
a
,
three
:
a
})}
else
if
(
"
threeWithOne
"
===
r
){
var
p
,
u
;
if
(
t
.
three
.
length
>
0
&&
t
.
three
.
length
>
0
)
for
(
var
g
=
0
;
g
<
t
.
three
.
length
;
g
++
)
if
(
t
.
three
[
g
][
0
].
number
>
e
.
three
[
0
].
number
){
p
=
t
.
three
[
g
];
break
}
p
||
e
.
three
[
0
].
number
<
15
&&
3
===
t
.
poker15
.
length
&&
(
p
=
t
.
poker15
),
t
.
one
.
length
>
0
&&
(
u
=
t
.
one
[
0
]),
!
u
&&
t
.
poker15
.
length
>
0
&&
(
u
=
t
.
poker15
.
slice
(
0
,
1
)),
p
&&
u
&&
(
n
=
{
type
:
r
,
poker
:
p
.
concat
(
u
),
three
:
p
,
one
:
u
})}
else
if
(
"
threeWithTwo
"
===
r
){
var
f
,
y
;
if
(
t
.
three
.
length
>
0
&&
t
.
three
.
length
>
0
)
for
(
var
c
=
0
;
c
<
t
.
three
.
length
;
c
++
)
if
(
t
.
three
[
c
][
0
].
number
>
e
.
three
[
0
].
number
){
f
=
t
.
three
[
c
];
break
}
f
||
e
.
three
[
0
].
number
<
15
&&
3
===
t
.
poker15
.
length
&&
(
f
=
t
.
poker15
),
t
.
two
.
length
>
0
&&
(
y
=
t
.
two
[
0
]),
!
y
&&
t
.
poker15
.
length
>
1
&&
(
y
=
t
.
poker15
.
slice
(
0
,
2
)),
f
&&
y
&&
(
n
=
{
type
:
r
,
poker
:
f
.
concat
(
y
),
three
:
f
,
two
:
y
})}
else
if
(
"
four
"
===
r
){
var
k
;
if
(
t
.
four
.
length
>
0
)
for
(
var
b
=
0
;
b
<
t
.
four
.
length
;
b
++
)
if
(
t
.
four
[
b
][
0
].
number
>
e
.
four
[
0
].
number
){
k
=
t
.
four
[
b
];
break
}
k
||
4
===
t
.
poker15
.
length
&&
(
k
=
t
.
poker15
),
k
&&
(
n
=
{
type
:
r
,
poker
:
k
,
four
:
k
})}
else
if
(
"
fourWithOne
"
===
r
){
var
m
,
v
,
d
;
if
(
t
.
four
.
length
>
0
)
for
(
var
L
=
0
;
L
<
t
.
four
.
length
;
L
++
)
if
(
t
.
four
[
L
][
0
].
number
>
e
.
four
[
0
].
number
){
m
=
t
.
four
[
L
];
break
}
t
.
one
.
length
>
1
&&
(
v
=
t
.
one
[
0
],
d
=
t
.
one
[
1
]),
m
&&
v
&&
d
&&
(
n
=
{
type
:
r
,
poker
:
m
.
concat
(
v
).
concat
(
d
),
four
:
m
})}
else
if
(
"
fourWithTwo
"
===
r
){
var
x
,
w
,
S
;
if
(
t
.
four
.
length
>
0
)
for
(
var
O
=
0
;
O
<
t
.
four
.
length
;
O
++
)
if
(
t
.
four
[
O
][
0
].
number
>
e
.
four
[
0
].
number
){
x
=
t
.
four
[
O
];
break
}
t
.
two
.
length
>
1
&&
(
w
=
t
.
two
[
0
],
S
=
t
.
two
[
1
]),
x
&&
w
&&
S
&&
(
n
=
{
type
:
r
,
poker
:
x
.
concat
(
w
).
concat
(
S
),
four
:
x
})}
else
if
(
"
threeWithOneList
"
===
r
){
if
(
t
.
threeList
.
length
>
0
)
for
(
var
j
=
0
;
j
<
t
.
threeList
.
length
;
j
++
)
if
(
t
.
threeList
[
j
].
length
===
e
.
list
.
length
&&
t
.
threeList
[
j
][
0
][
0
].
number
>
e
.
list
[
0
].
three
[
0
].
number
){
if
(
t
.
one
.
length
>=
t
.
threeList
[
j
].
length
){
var
P
=
t
.
threeList
[
j
].
flat
(
1
),
_
=
t
.
one
.
slice
(
0
,
t
.
threeList
[
j
].
length
).
flat
(
1
);
n
=
{
type
:
r
,
poker
:
P
.
concat
(
_
),
list
:
t
.
threeList
[
j
].
map
((
function
(
e
){
return
{
three
:
e
}}))}}
break
}}
else
if
(
"
threeWithTwoList
"
===
r
){
if
(
t
.
threeList
.
length
>
0
)
for
(
var
T
=
0
;
T
<
t
.
threeList
.
length
;
T
++
)
if
(
t
.
threeList
[
T
].
length
===
e
.
list
.
length
&&
t
.
threeList
[
T
][
0
][
0
].
number
>
e
.
list
[
0
].
three
[
0
].
number
){
if
(
t
.
two
.
length
>=
t
.
threeList
[
T
].
length
){
var
B
=
t
.
threeList
[
T
].
flat
(
1
),
W
=
t
.
two
.
slice
(
0
,
t
.
threeList
[
T
].
length
).
flat
(
1
);
n
=
{
type
:
r
,
poker
:
B
.
concat
(
W
),
list
:
t
.
threeList
[
T
].
map
((
function
(
e
){
return
{
three
:
e
}}))}}
break
}}
else
if
(
"
oneList
"
===
r
){
if
(
t
.
oneList
.
length
>
0
)
for
(
var
N
=
0
;
N
<
t
.
oneList
.
length
;
N
++
)
if
(
t
.
oneList
[
N
].
length
===
e
.
list
.
length
&&
t
.
oneList
[
N
][
0
][
0
].
number
>
e
.
list
[
0
].
one
[
0
].
number
){
n
=
{
type
:
r
,
poker
:
t
.
oneList
[
N
].
flat
(
1
),
list
:
t
.
oneList
[
N
].
map
((
function
(
e
){
return
{
one
:
e
}}))};
break
}}
else
if
(
"
twoList
"
===
r
){
if
(
t
.
twoList
.
length
>
0
)
for
(
var
z
=
0
;
z
<
t
.
twoList
.
length
;
z
++
)
if
(
t
.
twoList
[
z
].
length
===
e
.
list
.
length
&&
t
.
twoList
[
z
][
0
][
0
].
number
>
e
.
list
[
0
].
two
[
0
].
number
){
n
=
{
type
:
r
,
poker
:
t
.
twoList
[
z
].
flat
(
1
),
list
:
t
.
twoList
[
z
].
map
((
function
(
e
){
return
{
two
:
e
}}))};
break
}}
else
if
(
"
threeList
"
===
r
){
if
(
t
.
threeList
.
length
>
0
)
for
(
var
A
=
0
;
A
<
t
.
threeList
.
length
;
A
++
)
if
(
t
.
threeList
[
A
].
length
===
e
.
list
.
length
&&
t
.
threeList
[
A
][
0
][
0
].
number
>
e
.
list
[
0
].
three
[
0
].
number
){
n
=
{
type
:
r
,
poker
:
t
.
threeList
[
A
].
flat
(
1
),
list
:
t
.
threeList
[
A
].
map
((
function
(
e
){
return
{
three
:
e
}}))};
break
}}
else
if
(
"
sx
"
===
r
&&
t
.
poker16
.
length
>
0
&&
t
.
poker17
.
length
>
0
)
return
{
type
:
r
,
poker
:
t
.
poker16
.
concat
(
t
.
poker17
),
sx
:
t
.
poker16
.
concat
(
t
.
poker17
)};
return
n
}},{
key
:
"
getSmallestObjByType
"
,
value
:
function
(
e
,
t
){
var
r
,
n
,
i
=
this
.
player
.
classifyObj
,
s
=
null
;
if
(
"
one
"
===
e
)
t
?(
r
=
i
.
poker17
.
length
>
0
?
i
.
poker17
:
i
.
poker16
.
length
>
0
?
i
.
poker16
:
i
.
poker15
.
length
>
0
?
i
.
poker15
.
slice
(
0
,
1
):
i
.
one
[
i
.
one
.
length
-
1
],
s
=
{
type
:
e
,
poker
:
r
,
one
:
r
}):(
i
.
one
.
length
>
0
?
n
=
i
.
one
[
0
]:
i
.
poker15
.
length
>
0
&&
i
.
poker15
.
length
<
4
?
n
=
i
.
poker15
.
slice
(
0
,
1
):
0
!==
i
.
poker17
.
length
&&
0
!==
i
.
poker16
.
length
||
(
i
.
poker16
.
length
>
0
?
n
=
i
.
poker16
:
i
.
poker17
.
length
>
0
&&
(
n
=
i
.
poker17
)),
n
&&
(
s
=
{
type
:
e
,
poker
:
n
,
one
:
n
}));
else
if
(
"
two
"
===
e
){
var
o
;
t
?
i
.
two
.
length
>
0
?
o
=
i
.
two
[
0
]:
2
===
i
.
poker15
.
length
&&
(
o
=
i
.
poker15
):
i
.
two
.
length
>
0
&&
(
o
=
i
.
two
[
0
]),
o
&&
(
s
=
{
type
:
e
,
poker
:
o
,
two
:
o
})}
else
if
(
"
three
"
===
e
){
var
l
;
t
?
i
.
three
.
length
>
0
?
l
=
i
.
three
[
0
]:
3
===
i
.
poker15
.
length
&&
(
l
=
i
.
poker15
):
i
.
three
.
length
>
0
&&
(
l
=
i
.
three
[
0
]),
l
&&
(
s
=
{
type
:
e
,
poker
:
l
,
three
:
l
})}
else
if
(
"
threeWithOne
"
===
e
){
var
a
,
h
;
i
.
three
.
length
>
0
&&
(
a
=
i
.
three
[
0
]),
i
.
one
.
length
>
0
&&
(
h
=
i
.
one
[
0
]),
t
&&
(
a
||
3
!==
i
.
poker15
.
length
||
(
a
=
i
.
poker15
),
h
||
1
!==
i
.
poker15
.
length
||
(
h
=
i
.
poker15
)),
a
&&
h
&&
(
s
=
{
type
:
e
,
poker
:
a
.
concat
(
h
),
three
:
a
,
one
:
h
})}
else
if
(
"
four
"
===
e
){
var
p
;
t
?
i
.
four
.
length
>
0
?
p
=
i
.
four
[
0
]:
4
===
i
.
poker15
.
length
&&
(
p
=
i
.
poker15
):
i
.
four
.
length
>
0
&&
(
p
=
i
.
four
[
0
]),
p
&&
(
s
=
{
type
:
e
,
poker
:
p
,
four
:
p
})}
else
if
(
"
threeWithTwo
"
===
e
){
var
u
,
g
;
i
.
three
.
length
>
0
&&
(
u
=
i
.
three
[
0
]),
i
.
two
.
length
>
0
&&
(
g
=
i
.
two
[
0
]),
t
&&
(
u
||
3
!==
i
.
poker15
.
length
||
(
u
=
i
.
poker15
),
g
||
2
!==
i
.
poker15
.
length
||
(
g
=
i
.
poker15
)),
u
&&
g
&&
(
s
=
{
type
:
e
,
poker
:
u
.
concat
(
g
),
three
:
u
,
two
:
g
})}
else
if
(
"
threeWithOneList
"
===
e
){
if
(
i
.
threeList
.
length
>
0
&&
i
.
one
.
length
>=
i
.
threeList
[
0
].
length
){
var
f
=
i
.
threeList
[
0
].
flat
(
1
),
y
=
i
.
one
.
slice
(
0
,
i
.
threeList
[
0
].
length
).
flat
(
1
);
s
=
{
type
:
e
,
poker
:
f
.
concat
(
y
),
list
:
i
.
threeList
[
0
].
map
((
function
(
e
){
return
{
three
:
e
}}))}}}
else
if
(
"
threeWithTwoList
"
===
e
){
if
(
i
.
threeList
.
length
>
0
&&
i
.
two
.
length
>=
i
.
threeList
[
0
].
length
){
var
c
=
i
.
threeList
[
0
].
flat
(
1
),
k
=
i
.
two
.
slice
(
0
,
i
.
threeList
[
0
].
length
).
flat
(
1
);
s
=
{
type
:
e
,
poker
:
c
.
concat
(
k
),
list
:
i
.
threeList
[
0
].
map
((
function
(
e
){
return
{
three
:
e
}}))}}}
else
if
(
"
oneList
"
===
e
)
i
.
oneList
.
length
>
0
&&
(
s
=
{
type
:
e
,
poker
:
i
.
oneList
[
0
].
flat
(
1
),
list
:
i
.
oneList
[
0
].
map
((
function
(
e
){
return
{
one
:
e
}}))});
else
if
(
"
twoList
"
===
e
)
i
.
twoList
.
length
>
0
&&
(
s
=
{
type
:
e
,
poker
:
i
.
twoList
[
0
].
flat
(
1
),
list
:
i
.
twoList
[
0
].
map
((
function
(
e
){
return
{
two
:
e
}}))});
else
if
(
"
threeList
"
===
e
)
i
.
threeList
.
length
>
0
&&
(
s
=
{
type
:
e
,
poker
:
i
.
threeList
[
0
].
flat
(
1
),
list
:
i
.
threeList
[
0
].
map
((
function
(
e
){
return
{
three
:
e
}}))});
else
if
(
"
sx
"
===
e
&&
i
.
poker16
.
length
>
0
&&
i
.
poker17
.
length
>
0
)
return
{
type
:
e
,
poker
:
i
.
poker16
.
concat
(
i
.
poker17
),
sx
:
i
.
poker16
.
concat
(
i
.
poker17
)};
return
s
}},{
key
:
"
getBySplit
"
,
value
:
function
(
e
){
for
(
var
t
=
this
.
player
.
pokerList
,
r
=
t
[
0
],
n
=
[
r
],
i
=
[],
s
=
1
;
s
<
t
.
length
;
s
++
)
t
[
s
].
number
!==
r
.
number
?(
i
.
push
(
n
),
n
=
[
t
[
s
]]):
n
.
push
(
t
[
s
]),
r
=
t
[
s
];
i
.
push
(
n
);
for
(
var
o
=
[],
l
=
[],
a
=
[],
h
=
[],
p
=
0
;
p
<
i
.
length
;
p
++
)
3
===
i
[
p
].
length
?
a
.
push
(
i
[
p
]):
2
===
i
[
p
].
length
?
l
.
push
(
i
[
p
]):
1
===
i
[
p
].
length
?
o
.
push
(
i
[
p
]):
4
===
i
[
p
].
length
&&
h
.
push
(
i
[
p
]);
var
u
=
e
.
type
,
g
=
null
;
if
(
"
two
"
===
u
){
if
(
l
.
length
>
0
){
for
(
var
f
=
0
;
f
<
l
.
length
;
f
++
)
if
(
l
[
f
][
0
].
number
>
e
.
two
[
0
].
number
){
g
=
{
type
:
u
,
poker
:
l
[
f
],
two
:
l
[
f
]};
break
}}
else
if
(
a
.
length
>
0
)
for
(
var
y
=
0
;
y
<
a
.
length
;
y
++
)
if
(
a
[
y
][
0
].
number
>
e
.
two
[
0
].
number
){
var
c
=
a
[
y
].
slice
(
0
,
2
);
g
=
{
type
:
u
,
poker
:
c
,
two
:
c
};
break
}}
else
if
(
"
threeWithOne
"
===
u
){
if
(
a
.
length
>
0
)
for
(
var
k
=
0
;
k
<
a
.
length
;
k
++
)
if
(
a
[
k
][
0
].
number
>
e
.
three
[
0
].
number
){
var
b
=
void
0
;
if
(
o
.
length
>
0
)
b
=
o
[
0
];
else
if
(
l
.
length
>
0
)
b
=
l
[
0
].
slice
(
0
,
1
);
else
if
(
a
.
length
>
0
)
for
(
var
m
=
0
;
m
<
a
.
length
;
m
++
)
m
!==
k
&&
(
b
=
a
[
m
].
slice
(
0
,
1
));
b
&&
(
g
=
{
type
:
u
,
poker
:
a
[
k
].
concat
(
b
),
three
:
a
[
k
],
one
:
b
});
break
}}
else
if
(
"
threeWithTwo
"
===
u
){
if
(
a
.
length
>
0
)
for
(
var
v
=
0
;
v
<
a
.
length
;
v
++
)
if
(
a
[
v
][
0
].
number
>
e
.
three
[
0
].
number
){
var
d
=
void
0
;
if
(
l
.
length
>
0
)
d
=
l
[
0
];
else
if
(
a
.
length
>
0
)
for
(
var
L
=
0
;
L
<
a
.
length
;
L
++
)
L
!==
v
&&
(
d
=
a
[
L
].
slice
(
0
,
2
));
d
&&
(
g
=
{
type
:
u
,
poker
:
a
[
v
].
concat
(
d
),
three
:
a
[
v
],
two
:
d
});
break
}}
else
if
(
"
threeWithOneList
"
===
u
){
if
(
a
.
length
>=
e
.
list
.
length
)
for
(
var
x
=
0
;
x
<
a
.
length
-
e
.
list
.
length
+
1
;
x
++
)
if
(
a
[
x
][
0
].
number
>
e
.
list
[
0
].
three
[
0
].
number
&&
a
[
x
][
0
].
number
+
e
.
list
.
length
-
1
===
a
[
x
+
e
.
list
.
length
-
1
][
0
].
number
&&
a
[
x
+
e
.
list
.
length
-
1
][
0
].
number
<=
14
){
for
(
var
w
=
[],
S
=
0
;
S
<
o
.
length
&&
w
.
length
<
e
.
list
.
length
;
S
++
)
w
.
push
(
o
[
S
]);
for
(
var
O
=
0
;
O
<
l
.
length
&&
w
.
length
<
e
.
list
.
length
;
O
++
)
w
.
push
(
l
[
O
].
slice
(
0
,
1
)),
w
.
length
<
e
.
list
.
length
&&
w
.
push
(
l
[
O
].
slice
(
1
,
2
));
for
(
var
j
=
0
;
j
<
a
.
length
&&
w
.
length
<
e
.
list
.
length
;
j
++
)
j
>=
x
&&
j
<=
x
+
e
.
list
.
length
-
1
||
(
w
.
push
(
a
[
j
].
slice
(
0
,
1
)),
w
.
length
<
e
.
list
.
length
&&
w
.
push
(
a
[
j
].
slice
(
1
,
2
)),
w
.
length
<
e
.
list
.
length
&&
w
.
push
(
a
[
j
].
slice
(
2
,
3
)));
if
(
w
.
length
===
e
.
list
.
length
){
for
(
var
P
=
[],
_
=
[],
T
=
0
;
T
<
e
.
list
.
length
;
T
++
){
P
.
concat
(
a
[
x
+
T
]),
P
.
concat
(
w
[
x
]);
var
B
=
{
three
:
a
[
x
+
T
],
one
:
w
[
x
]};
_
.
push
(
B
)}
g
=
{
type
:
u
,
poker
:
P
,
list
:
_
}}
break
}}
else
if
(
"
threeWithTwoList
"
===
u
){
if
(
a
.
length
>=
e
.
list
.
length
)
for
(
var
W
=
0
;
W
<
a
.
length
-
e
.
list
.
length
+
1
;
W
++
)
if
(
a
[
W
][
0
].
number
>
e
.
list
[
0
].
three
[
0
].
number
&&
a
[
W
][
0
].
number
+
e
.
list
.
length
-
1
===
a
[
W
+
e
.
list
.
length
-
1
][
0
].
number
&&
a
[
W
+
e
.
list
.
length
-
1
][
0
].
number
<=
14
){
for
(
var
N
=
[],
z
=
0
;
z
<
l
.
length
&&
N
.
length
<
e
.
list
.
length
;
z
++
)
N
.
push
(
l
);
for
(
var
A
=
0
;
A
<
a
.
length
&&
N
.
length
<
e
.
list
.
length
;
A
++
)
A
>=
W
&&
A
<=
W
+
e
.
list
.
length
-
1
||
N
.
push
(
a
[
A
].
slice
(
0
,
2
));
if
(
N
.
length
===
e
.
list
.
length
){
for
(
var
M
=
[],
F
=
[],
D
=
0
;
D
<
e
.
list
.
length
;
D
++
){
M
.
concat
(
a
[
W
+
D
]),
M
.
concat
(
N
[
W
]);
var
C
=
{
three
:
a
[
W
+
D
],
two
:
N
[
W
]};
F
.
push
(
C
)}
g
=
{
type
:
u
,
poker
:
M
,
list
:
F
}}
break
}}
else
if
(
"
oneList
"
===
u
){
if
(
o
.
length
>=
e
.
list
.
length
)
for
(
var
I
=
0
;
I
<
o
.
length
-
e
.
list
.
length
+
1
;
I
++
)
if
(
o
[
I
][
0
].
number
>
e
.
list
[
0
].
one
[
0
].
number
&&
o
[
I
][
0
].
number
+
e
.
list
.
length
-
1
===
o
[
I
+
e
.
list
.
length
-
1
][
0
].
number
&&
o
[
I
+
e
.
list
.
length
-
1
][
0
].
number
<=
14
){
var
R
=
o
.
slice
(
I
,
I
+
e
.
list
.
length
);
g
=
{
type
:
u
,
poker
:
R
.
flat
(
1
),
list
:
R
.
map
((
function
(
e
){
return
{
one
:
e
}}))};
break
}}
else
if
(
"
twoList
"
===
u
){
if
(
l
.
length
>=
e
.
list
.
length
)
for
(
var
G
=
0
;
G
<
l
.
length
-
e
.
list
.
length
+
1
;
G
++
)
if
(
l
[
G
][
0
].
number
>
e
.
list
[
0
].
two
[
0
].
number
&&
l
[
G
][
0
].
number
+
e
.
list
.
length
-
1
===
l
[
G
+
e
.
list
.
length
-
1
][
0
].
number
&&
l
[
G
+
e
.
list
.
length
-
1
][
0
].
number
<=
14
){
var
J
=
l
.
slice
(
G
,
G
+
e
.
list
.
length
);
g
=
{
type
:
u
,
poker
:
J
.
flat
(
1
),
list
:
J
.
map
((
function
(
e
){
return
{
two
:
e
}}))};
break
}}
else
if
(
"
threeList
"
===
u
&&
a
.
length
>=
e
.
list
.
length
)
for
(
var
$
=
0
;
$
<
a
.
length
-
e
.
list
.
length
+
1
;
$
++
)
if
(
a
[
$
][
0
].
number
>
e
.
list
[
0
].
two
[
0
].
number
&&
a
[
$
][
0
].
number
+
e
.
list
.
length
-
1
===
a
[
$
+
e
.
list
.
length
-
1
][
0
].
number
&&
a
[
$
+
e
.
list
.
length
-
1
][
0
].
number
<=
14
){
var
E
=
a
.
slice
(
$
,
$
+
e
.
list
.
length
);
g
=
{
type
:
u
,
poker
:
E
.
flat
(
1
),
list
:
E
.
map
((
function
(
e
){
return
{
three
:
e
}}))};
break
}
return
g
}},{
key
:
"
sortFunction
"
,
value
:
function
(
e
,
t
){
return
e
.
number
-
t
.
number
}},{
key
:
"
sortArray
"
,
value
:
function
(
e
,
t
){
return
e
[
0
].
number
-
t
[
0
].
number
}},{
key
:
"
sortList
"
,
value
:
function
(
e
,
t
){
return
e
[
0
][
0
].
number
-
t
[
0
][
0
].
number
}}]),
e
}()),
f
=
g
,
y
=
function
(){
function
e
(
t
){
Object
(
a
[
"
a
"
])(
this
,
e
),
t
=
t
||
{},
this
.
pokerList
=
[],
this
.
name
=
t
.
name
||
"
noName
"
+
Math
.
random
(),
this
.
type
=
t
.
type
||
"
nongmin
"
,
this
.
last
=
null
,
this
.
next
=
null
,
this
.
isRobot
=
t
.
isRobot
,
this
.
game
=
t
.
game
,
this
.
ai
=
new
f
({
player
:
this
,
game
:
t
.
game
}),
this
.
classifyObj
=
null
,
this
.
lastSendObj
=
null
}
return
Object
(
h
[
"
a
"
])(
e
,[{
key
:
"
getClassifyObj
"
,
value
:
function
(){
this
.
classifyObj
=
this
.
ai
.
getClassifyObj
(
this
.
pokerList
),
console
.
log
(
this
.
classifyObj
)}},{
key
:
"
addPoker
"
,
value
:
function
(
e
){
this
.
pokerList
.
push
(
e
)}},{
key
:
"
sortPoker
"
,
value
:
function
(){
this
.
pokerList
.
sort
(
this
.
sortFunction
)}},{
key
:
"
sortFunction
"
,
value
:
function
(
e
,
t
){
return
e
.
number
-
t
.
number
}},{
key
:
"
getLastObj
"
,
value
:
function
(){
var
e
=
this
.
last
.
lastSendObj
;
return
!!
(
e
&&
"
pass
"
!==
e
.
type
||
(
e
=
this
.
next
.
lastSendObj
,
e
&&
"
pass
"
!==
e
.
type
))
&&
e
}},{
key
:
"
playByAI
"
,
value
:
function
(){
var
e
=
this
;
e
.
getClassifyObj
(),
setTimeout
((
function
(){
var
t
=
e
.
getLastObj
();
t
?
e
.
ai
.
playByObj
(
t
):
e
.
ai
.
playByAllType
()}),
0
)}},{
key
:
"
sendPoker
"
,
value
:
function
(
e
){
e
.
player
=
this
,
this
.
game
.
clearDesk
(),
this
.
lastSendObj
=
e
,
this
.
game
.
deskPokerObj
=
e
,
this
.
game
.
next
()}},{
key
:
"
deleteFromPokerListAndSendByObj
"
,
value
:
function
(
e
){
var
t
=
[];
if
(
"
pass
"
===
e
.
type
)
return
this
.
sendPoker
(
e
),
!
0
;
for
(
var
r
=
e
.
poker
,
n
=
0
;
n
<
r
.
length
;
n
++
){
var
i
=
this
.
getAndDeleteOnePokerByNumber
(
r
[
n
].
number
);
if
(
!
i
)
return
this
.
listBackToPokerList
(
t
),
!
1
;
t
.
push
(
i
)}
return
this
.
sendPoker
(
e
),
!
0
}},{
key
:
"
getListByList
"
,
value
:
function
(
e
){
var
t
=
[];
if
(
"
pass
"
===
e
[
0
])
return
[
"
pass
"
];
for
(
var
r
=
0
;
r
<
e
.
length
;
r
++
){
var
n
=
e
[
r
],
i
=
this
.
getAndDeleteOnePokerByNumber
(
n
.
number
);
if
(
!
i
)
return
this
.
listBackToPokerList
(
t
),
!
1
;
t
.
push
(
i
)}
return
t
}},{
key
:
"
getListByString
"
,
value
:
function
(
e
){
var
t
=
[];
if
(
"
pass
"
===
e
)
return
[
"
pass
"
];
for
(
var
r
=
0
;
r
<
e
.
length
;
r
++
){
var
n
=
e
[
r
],
i
=
u
.
textToNumber
(
n
),
s
=
this
.
getAndDeleteOnePokerByNumber
(
i
);
if
(
!
s
)
return
this
.
listBackToPokerList
(
t
),
!
1
;
t
.
push
(
s
)}
return
t
}},{
key
:
"
listBackToPokerList
"
,
value
:
function
(
e
){
while
(
e
.
length
>
0
){
var
t
=
e
.
splice
(
0
,
1
)[
0
];
this
.
pokerList
.
push
(
t
)}
this
.
sortPoker
()}},{
key
:
"
handleList
"
,
value
:
function
(
e
){
if
(
e
){
var
t
=
u
.
getObjByPokerList
(
e
);
if
(
t
){
if
(
"
pass
"
===
t
.
type
)
return
this
.
sendPoker
(
t
),
!
0
;
var
r
=
this
.
getLastObj
();
if
(
r
){
if
(
r
.
type
===
t
.
type
){
var
n
=
this
.
compareTwoObj
(
t
,
r
);
return
n
?(
this
.
sendPoker
(
t
),
!
0
):(
this
.
listBackToPokerList
(
e
),
alert
(
"
必须大于
"
+
u
.
pokerListToString
(
r
.
poker
)),
!
1
)}
return
"
sx
"
===
t
.
type
||
"
four
"
===
t
.
type
&&
"
sx
"
!==
r
.
type
?(
this
.
sendPoker
(
t
),
!
0
):(
this
.
listBackToPokerList
(
e
),
alert
(
"
牌型不是
"
+
r
.
type
+
"
!
"
),
!
1
)}
return
this
.
sendPoker
(
t
),
!
0
}
return
this
.
listBackToPokerList
(
e
),
alert
(
"
牌型错误!
"
),
!
1
}
return
alert
(
"
你没有此牌!
"
),
!
1
}},{
key
:
"
playByPokerList
"
,
value
:
function
(
e
){
if
(
this
.
game
.
currentPlayer
!==
this
)
return
alert
(
"
请等待
"
+
this
.
game
.
currentPlayer
.
name
+
"
出牌
"
),
!
1
;
var
t
=
this
.
getListByList
(
e
);
return
this
.
handleList
(
t
)}},{
key
:
"
playByString
"
,
value
:
function
(
e
){
if
(
this
.
game
.
currentPlayer
!==
this
)
return
alert
(
"
请等待
"
+
this
.
game
.
currentPlayer
.
name
+
"
出牌
"
),
!
1
;
var
t
=
this
.
getListByString
(
e
);
return
this
.
handleList
(
t
)}},{
key
:
"
compareTwoObj
"
,
value
:
function
(
e
,
t
){
return
(
!
e
.
list
||!
t
.
list
||
e
.
list
.
length
===
t
.
list
.
length
)
&&
(
"
one
"
===
e
.
type
?
e
.
one
[
0
].
number
>
t
.
one
[
0
].
number
:
"
two
"
===
e
.
type
?
e
.
two
[
0
].
number
>
t
.
two
[
0
].
number
:
"
three
"
===
e
.
type
||
"
threeWithOne
"
===
e
.
type
||
"
threeWithTwo
"
===
e
.
type
?
e
.
three
[
0
].
number
>
t
.
three
[
0
].
number
:
"
fourWithOne
"
===
e
.
type
||
"
fourWithTwo
"
===
e
.
type
?
e
.
four
[
0
].
number
>
t
.
four
[
0
].
number
:
"
threeWithOneList
"
===
e
.
type
||
"
threeWithTwoList
"
===
e
.
type
?
e
.
list
[
0
].
three
[
0
].
number
>
t
.
list
[
0
].
three
[
0
].
number
:
"
oneList
"
===
e
.
type
?
e
.
list
[
0
].
one
[
0
].
number
>
t
.
list
[
0
].
one
[
0
].
number
:
"
twoList
"
===
e
.
type
?
e
.
list
[
0
].
two
[
0
].
number
>
t
.
list
[
0
].
two
[
0
].
number
:
"
threeList
"
===
e
.
type
?
e
.
list
[
0
].
three
[
0
].
number
>
t
.
list
[
0
].
three
[
0
].
number
:
"
four
"
===
e
.
type
?
e
.
four
[
0
].
number
>
t
.
four
[
0
].
number
:
void
0
)}},{
key
:
"
getAndDeleteOnePokerByNumber
"
,
value
:
function
(
e
){
for
(
var
t
=
0
;
t
<
this
.
pokerList
.
length
;
t
++
)
if
(
this
.
pokerList
[
t
].
number
===
e
)
return
this
.
pokerList
.
splice
(
t
,
1
)[
0
];
return
!
1
}},{
key
:
"
pokerListToString
"
,
value
:
function
(){
var
e
=
u
.
pokerListToString
(
this
.
pokerList
);
return
e
}},{
key
:
"
lastSendObjToString
"
,
value
:
function
(){
if
(
!
this
.
lastSendObj
)
return
""
;
var
e
=
u
.
pokerListToString
(
this
.
lastSendObj
.
poker
);
return
e
}}]),
e
}(),
c
=
y
,
k
=
function
(){
function
e
(){
Object
(
a
[
"
a
"
])(
this
,
e
),
this
.
playerList
=
[],
this
.
pokerList
=
[],
this
.
deskPokerObj
=
null
,
this
.
oldPokerList
=
[],
this
.
currentPlayer
=
[],
this
.
dizhu
=
null
,
this
.
MaxSecond
=
60
,
this
.
second
=
this
.
MaxSecond
,
this
.
isOver
=!
0
,
this
.
init
()}
return
Object
(
h
[
"
a
"
])(
e
,[{
key
:
"
init
"
,
value
:
function
(){
this
.
initPokerList
(),
this
.
initPlayerList
(),
this
.
sendPoker
(),
this
.
start
()}},{
key
:
"
resetTime
"
,
value
:
function
(){
this
.
second
=
this
.
MaxSecond
}},{
key
:
"
timeLoop
"
,
value
:
function
(){
if
(
!
this
.
isOver
){
this
.
second
--
,
0
===
this
.
second
&&
this
.
timeout
();
var
e
=
this
;
setTimeout
((
function
(){
e
.
timeLoop
()}),
1
e3
)}}},{
key
:
"
timeout
"
,
value
:
function
(){
this
.
currentPlayer
.
playByString
(
"
pass
"
)}},{
key
:
"
start
"
,
value
:
function
(){
this
.
isOver
=!
1
,
this
.
timeLoop
(),
this
.
currentPlayer
=
this
.
dizhu
,
this
.
currentPlayer
.
isRobot
&&
this
.
currentPlayer
.
playByAI
()}},{
key
:
"
next
"
,
value
:
function
(){
var
e
=
this
.
checkGameOver
();
e
?
this
.
gameOver
():(
this
.
resetTime
(),
this
.
currentPlayer
=
this
.
currentPlayer
.
next
,
this
.
currentPlayer
.
isRobot
&&
this
.
currentPlayer
.
playByAI
())}},{
key
:
"
gameOver
"
,
value
:
function
(){
alert
(
"
游戏结束!
"
+
this
.
currentPlayer
.
name
+
"
[
"
+
this
.
currentPlayer
.
type
+
"
] 胜!
"
),
this
.
isOver
=!
0
}},{
key
:
"
checkGameOver
"
,
value
:
function
(){
if
(
0
===
this
.
currentPlayer
.
pokerList
.
length
)
return
!
0
}},{
key
:
"
clearDesk
"
,
value
:
function
(){
this
.
deskPokerObj
&&
(
this
.
oldPokerList
.
push
(
this
.
deskPokerObj
),
this
.
deskPokerObj
=
null
)}},{
key
:
"
sendPoker
"
,
value
:
function
(){
var
e
=
this
.
playerList
[
0
];
do
{
var
t
=
this
.
getRandomIntInclusive
(
0
,
this
.
pokerList
.
length
-
1
),
r
=
this
.
pokerList
.
splice
(
t
,
1
)[
0
];
e
.
addPoker
(
r
),
e
=
e
.
next
}
while
(
this
.
pokerList
.
length
>
3
);
do
{
var
n
=
this
.
pokerList
.
splice
(
0
,
1
)[
0
];
this
.
dizhu
.
addPoker
(
n
)}
while
(
this
.
pokerList
.
length
>
0
);
for
(
var
i
=
0
;
i
<
this
.
playerList
.
length
;
i
++
)
this
.
playerList
[
i
].
sortPoker
()}},{
key
:
"
initPlayerList
"
,
value
:
function
(){
this
.
playerList
=
[];
var
e
=
new
c
({
name
:
"
player
"
,
isRobot
:
!
1
,
game
:
this
}),
t
=
new
c
({
name
:
"
robot1
"
,
isRobot
:
!
0
,
game
:
this
}),
r
=
new
c
({
name
:
"
robot2
"
,
isRobot
:
!
0
,
game
:
this
});
this
.
playerList
=
[
e
,
t
,
r
],
this
.
playerList
[
0
].
next
=
this
.
playerList
[
1
],
this
.
playerList
[
1
].
next
=
this
.
playerList
[
2
],
this
.
playerList
[
2
].
next
=
this
.
playerList
[
0
],
this
.
playerList
[
0
].
last
=
this
.
playerList
[
2
],
this
.
playerList
[
1
].
last
=
this
.
playerList
[
0
],
this
.
playerList
[
2
].
last
=
this
.
playerList
[
1
];
var
n
=
this
.
getRandomIntInclusive
(
0
,
2
);
this
.
playerList
[
n
].
type
=
"
dizhu
"
,
this
.
dizhu
=
this
.
playerList
[
n
]}},{
key
:
"
initPokerList
"
,
value
:
function
(){
this
.
pokerList
=
[];
for
(
var
e
=
3
;
e
<=
15
;
e
++
)
for
(
var
t
=
0
;
t
<
4
;
t
++
){
var
r
=
new
u
({
number
:
e
,
type
:
t
});
this
.
pokerList
.
push
(
r
)}
for
(
var
n
=
16
;
n
<=
17
;
n
++
){
var
i
=
new
u
({
number
:
n
});
this
.
pokerList
.
push
(
i
)}}},{
key
:
"
pokerListToString
"
,
value
:
function
(){
var
e
=
""
;
e
+=
u
.
pokerListToString
(
this
.
pokerList
),
e
+=
"
\n
"
;
for
(
var
t
=
0
;
t
<
this
.
oldPokerList
.
length
;
t
++
)
e
+=
u
.
pokerListToString
(
this
.
oldPokerList
[
t
].
poker
),
t
<
this
.
oldPokerList
.
length
-
1
&&
(
e
+=
"
,
"
);
return
e
+=
"
\n
"
,
e
+=
this
.
deskPokerObj
?
u
.
pokerListToString
(
this
.
deskPokerObj
.
poker
):
""
,
e
}},{
key
:
"
getRandomIntInclusive
"
,
value
:
function
(
e
,
t
){
return
Math
.
floor
(
Math
.
random
()
*
(
t
-
e
+
1
))
+
e
}}]),
e
}(),
b
=
k
,
m
=
{
name
:
"
HelloWorld
"
,
data
:
function
(){
return
{
data
:
"
fuck1
"
,
game
:
new
b
,
playerStr
:
""
}},
computed
:{
player2Str
:
function
(){
var
e
=
this
.
game
,
t
=
2
;
return
[
e
.
playerList
[
t
].
name
+
"
:
"
+
e
.
playerList
[
t
].
type
+
"
:
"
+
e
.
playerList
[
t
].
pokerList
.
length
,
e
.
playerList
[
t
].
pokerListToString
(),
"
last :
"
+
e
.
playerList
[
t
].
lastSendObjToString
()]},
player1Str
:
function
(){
var
e
=
this
.
game
,
t
=
1
;
return
[
e
.
playerList
[
t
].
name
+
"
:
"
+
e
.
playerList
[
t
].
type
+
"
:
"
+
e
.
playerList
[
t
].
pokerList
.
length
,
e
.
playerList
[
t
].
pokerListToString
(),
"
last :
"
+
e
.
playerList
[
t
].
lastSendObjToString
()]},
player0Str
:
function
(){
var
e
=
this
.
game
,
t
=
0
;
return
[
e
.
playerList
[
t
].
name
+
"
:
"
+
e
.
playerList
[
t
].
type
+
"
:
"
+
e
.
playerList
[
t
].
pokerList
.
length
,
e
.
playerList
[
t
].
pokerListToString
(),
"
last :
"
+
e
.
playerList
[
t
].
lastSendObjToString
()]},
deskStr
:
function
(){
var
e
=
this
.
game
;
return
[
"
desk
"
,
e
.
pokerListToString
()]}},
mounted
:
function
(){
this
.
data
=
this
.
game
.
playerList
[
1
].
name
},
methods
:{
reDraw
:
function
(){},
sendPoker
:
function
(){
var
e
=
this
.
game
,
t
=
e
.
playerList
[
0
].
playByString
(
this
.
playerStr
);
t
&&
(
this
.
playerStr
=
""
)},
pass
:
function
(){
this
.
game
.
playerList
[
0
].
playByString
(
"
pass
"
)},
reStart
:
function
(){
this
.
game
=
new
b
,
this
.
playerStr
=
""
}}},
v
=
m
,
d
=
r
(
"
2877
"
),
L
=
Object
(
d
[
"
a
"
])(
v
,
o
,
l
,
!
1
,
null
,
"
62298b0c
"
,
null
),
x
=
L
.
exports
,
w
=
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
n
=
e
.
_self
.
_c
||
t
;
return
n
(
"
div
"
,{
staticStyle
:{
"
user-select
"
:
"
none
"
,
position
:
"
fixed
"
,
left
:
"
0
"
,
right
:
"
0
"
,
top
:
"
0
"
,
bottom
:
"
0
"
,
"
background-repeat
"
:
"
no-repeat
"
,
"
background-size
"
:
"
cover
"
},
style
:{
backgroundImage
:
"
url(
"
+
r
(
"
00a8
"
)
+
"
)
"
}},[
n
(
"
div
"
,{
directives
:[{
name
:
"
show
"
,
rawName
:
"
v-show
"
,
value
:
!
1
,
expression
:
"
false
"
}],
staticStyle
:{
width
:
"
300px
"
,
height
:
"
300px
"
,
float
:
"
left
"
,
position
:
"
fixed
"
,
left
:
"
0
"
,
top
:
"
0px
"
,
"
background-color
"
:
"
aliceblue
"
,
"
text-align
"
:
"
center
"
}},[
n
(
"
span
"
,[
e
.
_v
(
"
手牌:
"
+
e
.
_s
(
e
.
player2Str
[
1
])
+
"
"
)])]),
n
(
"
div
"
,{
directives
:[{
name
:
"
show
"
,
rawName
:
"
v-show
"
,
value
:
!
1
,
expression
:
"
false
"
}],
staticStyle
:{
width
:
"
300px
"
,
height
:
"
300px
"
,
float
:
"
left
"
,
position
:
"
fixed
"
,
right
:
"
0
"
,
top
:
"
0px
"
,
"
background-color
"
:
"
aliceblue
"
,
"
text-align
"
:
"
center
"
}},[
n
(
"
span
"
,[
e
.
_v
(
"
手牌:
"
+
e
.
_s
(
e
.
player1Str
[
1
])
+
"
"
)])]),
n
(
"
div
"
,{
directives
:[{
name
:
"
show
"
,
rawName
:
"
v-show
"
,
value
:
!
1
,
expression
:
"
false
"
}],
staticStyle
:{
width
:
"
300px
"
,
height
:
"
300px
"
,
float
:
"
left
"
,
position
:
"
fixed
"
,
left
:
"
600px
"
,
top
:
"
0px
"
,
"
background-color
"
:
"
aliceblue
"
,
"
text-align
"
:
"
center
"
}},[
n
(
"
div
"
,{
staticStyle
:{
width
:
"
300px
"
,
"
word-wrap
"
:
"
break-word
"
}},[
e
.
_v
(
"
已出的牌:
"
),
n
(
"
br
"
),
e
.
_v
(
"
"
+
e
.
_s
(
e
.
deskStr
[
1
])
+
"
"
)])]),
n
(
"
div
"
,{
staticStyle
:{
position
:
"
fixed
"
,
left
:
"
10px
"
,
bottom
:
"
10px
"
}},[
n
(
"
button
"
,{
staticStyle
:{
height
:
"
50px
"
,
"
font-size
"
:
"
30px
"
},
on
:{
click
:
e
.
reStart
}},[
e
.
_v
(
"
开始新一局
"
)])]),
n
(
"
div
"
,{
staticStyle
:{
color
:
"
white
"
,
position
:
"
fixed
"
,
bottom
:
"
0
"
,
width
:
"
100%
"
,
height
:
"
200px
"
,
"
line-height
"
:
"
200px
"
},
style
:{
marginLeft
:
e
.
playerMarginLeft
-
150
+
"
px
"
}},[
e
.
_v
(
"
你是
"
),
n
(
"
span
"
,{
staticStyle
:{
color
:
"
red
"
,
"
font-size
"
:
"
20px
"
}},[
e
.
_v
(
e
.
_s
(
"
nongmin
"
===
e
.
game
.
playerList
[
0
].
type
?
"
农民
"
:
"
地主
"
))])]),
n
(
"
div
"
,{
staticStyle
:{
position
:
"
fixed
"
,
bottom
:
"
0
"
,
width
:
"
100%
"
,
height
:
"
200px
"
},
style
:{
marginLeft
:
e
.
playerMarginLeft
+
"
px
"
}},
e
.
_l
(
e
.
game
.
playerList
[
0
].
pokerList
,(
function
(
t
){
return
n
(
"
div
"
,{
staticClass
:
"
poker pokerDesk
"
,
class
:{
selected
:
t
.
selected
,
s
:
16
===
t
.
number
,
x
:
17
===
t
.
number
},
on
:{
mouseenter
:
function
(
r
){
return
e
.
enter
(
r
,
t
)},
mousedown
:
function
(
r
){
return
e
.
pickPoker
(
t
)}}},[
n
(
"
span
"
,{
directives
:[{
name
:
"
show
"
,
rawName
:
"
v-show
"
,
value
:
t
.
number
<
16
,
expression
:
"
item.number<16
"
}]},[
e
.
_v
(
"
"
+
e
.
_s
(
t
.
text
)
+
"
"
)])])})),
0
),
n
(
"
div
"
,{
staticStyle
:{
position
:
"
fixed
"
,
bottom
:
"
200px
"
,
width
:
"
100%
"
,
height
:
"
100px
"
,
"
text-align
"
:
"
left
"
}},[
n
(
"
div
"
,{
staticStyle
:{
width
:
"
400px
"
,
height
:
"
60px
"
},
style
:{
marginLeft
:
e
.
buttonMarginLeft
+
"
px
"
}},[
n
(
"
button
"
,{
staticStyle
:{
height
:
"
60px
"
,
"
border-radius
"
:
"
4px
"
,
float
:
"
left
"
,
"
font-size
"
:
"
40px
"
,
"
background-color
"
:
"
red
"
},
on
:{
click
:
e
.
pass
}},[
e
.
_v
(
"
不出
"
)]),
n
(
"
button
"
,{
staticStyle
:{
height
:
"
60px
"
,
"
border-radius
"
:
"
4px
"
,
float
:
"
right
"
,
"
font-size
"
:
"
40px
"
,
"
background-color
"
:
"
lawngreen
"
},
on
:{
click
:
e
.
sendPoker2
}},[
e
.
_v
(
"
出牌
"
)]),
n
(
"
div
"
,{
directives
:[{
name
:
"
show
"
,
rawName
:
"
v-show
"
,
value
:
e
.
game
.
currentPlayer
===
e
.
game
.
playerList
[
0
],
expression
:
"
game.currentPlayer===game.playerList[0]
"
}],
staticStyle
:{
color
:
"
red
"
,
width
:
"
150px
"
,
border
:
"
solid
"
,
"
border-radius
"
:
"
4px
"
,
float
:
"
left
"
,
"
margin-left
"
:
"
20px
"
}},[
e
.
_v
(
"
请在
"
+
e
.
_s
(
e
.
game
.
second
)
+
"
秒内出牌
"
)])])]),
e
.
game
.
playerList
[
0
].
lastSendObj
&&
e
.
game
.
playerList
[
0
].
lastSendObj
.
poker
[
0
].
text
?
n
(
"
div
"
,{
staticStyle
:{
position
:
"
fixed
"
,
bottom
:
"
350px
"
,
width
:
"
100%
"
,
height
:
"
200px
"
},
style
:{
marginLeft
:
e
.
deskPokerMarginLeft
+
"
px
"
}},
e
.
_l
(
e
.
game
.
playerList
[
0
].
lastSendObj
.
poker
,(
function
(
t
){
return
n
(
"
div
"
,{
staticClass
:
"
pokerDesk
"
,
class
:{
s
:
16
===
t
.
number
,
x
:
17
===
t
.
number
}},[
n
(
"
span
"
,{
directives
:[{
name
:
"
show
"
,
rawName
:
"
v-show
"
,
value
:
t
.
number
<
16
,
expression
:
"
item.number<16
"
}]},[
e
.
_v
(
"
"
+
e
.
_s
(
t
.
text
)
+
"
"
)])])})),
0
):
e
.
_e
(),
e
.
game
.
playerList
[
0
].
lastSendObj
&&!
e
.
game
.
playerList
[
0
].
lastSendObj
.
poker
[
0
].
text
?
n
(
"
div
"
,{
staticStyle
:{
position
:
"
fixed
"
,
bottom
:
"
350px
"
,
width
:
"
100%
"
,
height
:
"
200px
"
},
style
:{
marginLeft
:
e
.
deskPokerMarginLeft
+
"
px
"
}},[
n
(
"
div
"
,{
staticStyle
:{
height
:
"
100%
"
,
width
:
"
100px
"
,
float
:
"
left
"
,
"
margin-left
"
:
"
-50px
"
,
"
font-size
"
:
"
50px
"
}},[
e
.
_v
(
"
pass
"
)])]):
e
.
_e
(),
n
(
"
div
"
,{
staticStyle
:{
position
:
"
fixed
"
,
top
:
"
40px
"
,
left
:
"
20px
"
,
height
:
"
200px
"
,
width
:
"
100px
"
,
border
:
"
solid 1px
"
,
"
border-radius
"
:
"
8px
"
,
"
background-color
"
:
"
azure
"
,
"
text-align
"
:
"
center
"
}},[
n
(
"
p
"
,{
staticStyle
:{
color
:
"
red
"
,
"
font-size
"
:
"
20px
"
}},[
e
.
_v
(
"
"
+
e
.
_s
(
"
nongmin
"
===
e
.
game
.
playerList
[
2
].
type
?
"
农民
"
:
"
地主
"
)
+
"
"
)]),
n
(
"
p
"
,[
e
.
_v
(
"
"
+
e
.
_s
(
e
.
game
.
playerList
[
2
].
name
)
+
"
"
)]),
n
(
"
p
"
,[
e
.
_v
(
"
剩余
"
+
e
.
_s
(
e
.
game
.
playerList
[
2
].
pokerList
.
length
)
+
"
张
"
)]),
n
(
"
div
"
,{
directives
:[{
name
:
"
show
"
,
rawName
:
"
v-show
"
,
value
:
e
.
game
.
currentPlayer
===
e
.
game
.
playerList
[
2
],
expression
:
"
game.currentPlayer===game.playerList[2]
"
}],
staticStyle
:{
color
:
"
red
"
,
width
:
"
150px
"
,
border
:
"
solid
"
,
"
border-radius
"
:
"
4px
"
,
position
:
"
absolute
"
,
bottom
:
"
-50px
"
,
left
:
"
0
"
}},[
e
.
_v
(
"
请在
"
+
e
.
_s
(
e
.
game
.
second
)
+
"
秒内出牌
"
)])]),
e
.
game
.
playerList
[
2
].
lastSendObj
&&
e
.
game
.
playerList
[
2
].
lastSendObj
.
poker
[
0
].
text
?
n
(
"
div
"
,{
staticStyle
:{
position
:
"
fixed
"
,
top
:
"
100px
"
,
left
:
"
200px
"
,
height
:
"
200px
"
}},
e
.
_l
(
e
.
game
.
playerList
[
2
].
lastSendObj
.
poker
,(
function
(
t
){
return
n
(
"
div
"
,{
staticClass
:
"
pokerDesk
"
,
class
:{
s
:
16
===
t
.
number
,
x
:
17
===
t
.
number
}},[
n
(
"
span
"
,{
directives
:[{
name
:
"
show
"
,
rawName
:
"
v-show
"
,
value
:
t
.
number
<
16
,
expression
:
"
item.number<16
"
}]},[
e
.
_v
(
"
"
+
e
.
_s
(
t
.
text
)
+
"
"
)])])})),
0
):
e
.
_e
(),
e
.
game
.
playerList
[
2
].
lastSendObj
&&!
e
.
game
.
playerList
[
2
].
lastSendObj
.
poker
[
0
].
text
?
n
(
"
div
"
,{
staticStyle
:{
position
:
"
fixed
"
,
top
:
"
100px
"
,
left
:
"
200px
"
,
height
:
"
200px
"
}},[
n
(
"
div
"
,{
staticStyle
:{
height
:
"
100%
"
,
width
:
"
100px
"
,
float
:
"
left
"
,
"
margin-left
"
:
"
-50px
"
,
"
font-size
"
:
"
50px
"
}},[
e
.
_v
(
"
pass
"
)])]):
e
.
_e
(),
n
(
"
div
"
,{
staticStyle
:{
position
:
"
fixed
"
,
top
:
"
40px
"
,
right
:
"
20px
"
,
height
:
"
200px
"
,
width
:
"
100px
"
,
border
:
"
solid 1px
"
,
"
border-radius
"
:
"
8px
"
,
"
background-color
"
:
"
azure
"
,
"
text-align
"
:
"
center
"
}},[
n
(
"
p
"
,{
staticStyle
:{
color
:
"
red
"
,
"
font-size
"
:
"
20px
"
}},[
e
.
_v
(
"
"
+
e
.
_s
(
"
nongmin
"
===
e
.
game
.
playerList
[
1
].
type
?
"
农民
"
:
"
地主
"
)
+
"
"
)]),
n
(
"
p
"
,[
e
.
_v
(
"
"
+
e
.
_s
(
e
.
game
.
playerList
[
1
].
name
)
+
"
"
)]),
n
(
"
p
"
,[
e
.
_v
(
"
剩余
"
+
e
.
_s
(
e
.
game
.
playerList
[
1
].
pokerList
.
length
)
+
"
张
"
)]),
n
(
"
div
"
,{
directives
:[{
name
:
"
show
"
,
rawName
:
"
v-show
"
,
value
:
e
.
game
.
currentPlayer
===
e
.
game
.
playerList
[
1
],
expression
:
"
game.currentPlayer===game.playerList[1]
"
}],
staticStyle
:{
color
:
"
red
"
,
width
:
"
150px
"
,
border
:
"
solid
"
,
"
border-radius
"
:
"
4px
"
,
position
:
"
absolute
"
,
bottom
:
"
-50px
"
,
right
:
"
0
"
}},[
e
.
_v
(
"
请在
"
+
e
.
_s
(
e
.
game
.
second
)
+
"
秒内出牌
"
)])]),
e
.
game
.
playerList
[
1
].
lastSendObj
&&
e
.
game
.
playerList
[
1
].
lastSendObj
.
poker
[
0
].
text
?
n
(
"
div
"
,{
staticStyle
:{
position
:
"
fixed
"
,
top
:
"
100px
"
,
right
:
"
200px
"
,
height
:
"
200px
"
}},
e
.
_l
(
e
.
game
.
playerList
[
1
].
lastSendObj
.
poker
,(
function
(
t
){
return
n
(
"
div
"
,{
staticClass
:
"
pokerDesk
"
,
class
:{
s
:
16
===
t
.
number
,
x
:
17
===
t
.
number
}},[
n
(
"
span
"
,{
directives
:[{
name
:
"
show
"
,
rawName
:
"
v-show
"
,
value
:
t
.
number
<
16
,
expression
:
"
item.number<16
"
}]},[
e
.
_v
(
"
"
+
e
.
_s
(
t
.
text
)
+
"
"
)])])})),
0
):
e
.
_e
(),
e
.
game
.
playerList
[
1
].
lastSendObj
&&!
e
.
game
.
playerList
[
1
].
lastSendObj
.
poker
[
0
].
text
?
n
(
"
div
"
,{
staticStyle
:{
position
:
"
fixed
"
,
top
:
"
100px
"
,
right
:
"
200px
"
,
height
:
"
200px
"
}},[
n
(
"
div
"
,{
staticStyle
:{
height
:
"
100%
"
,
width
:
"
100px
"
,
float
:
"
left
"
,
"
margin-left
"
:
"
-50px
"
,
"
font-size
"
:
"
50px
"
}},[
e
.
_v
(
"
pass
"
)])]):
e
.
_e
()])},
S
=
[],
O
=
{
name
:
"
HelloWorld
"
,
data
:
function
(){
return
{
data
:
"
fuck1
"
,
game
:
new
b
,
playerStr
:
""
,
pokerList
:[]}},
computed
:{
playerMarginLeft
:
function
(){
return
(
window
.
innerWidth
-
50
*
this
.
game
.
playerList
[
0
].
pokerList
.
length
)
/
2
},
deskPokerMarginLeft
:
function
(){
return
(
window
.
innerWidth
-
50
*
this
.
game
.
playerList
[
0
].
lastSendObj
.
poker
.
length
)
/
2
},
buttonMarginLeft
:
function
(){
return
(
window
.
innerWidth
-
400
)
/
2
},
deskPoker
:
function
(){
return
this
.
game
.
deskPokerObj
&&
this
.
game
.
deskPokerObj
.
poker
&&
this
.
game
.
deskPokerObj
.
poker
[
0
]
&&
this
.
game
.
deskPokerObj
.
poker
[
0
].
text
?
this
.
game
.
deskPokerObj
.
poker
:[]},
player2Str
:
function
(){
var
e
=
this
.
game
,
t
=
2
;
return
[
e
.
playerList
[
t
].
name
+
"
:
"
+
e
.
playerList
[
t
].
type
+
"
:
"
+
e
.
playerList
[
t
].
pokerList
.
length
,
e
.
playerList
[
t
].
pokerListToString
(),
e
.
playerList
[
t
].
lastSendObjToString
()]},
player1Str
:
function
(){
var
e
=
this
.
game
,
t
=
1
;
return
[
e
.
playerList
[
t
].
name
+
"
:
"
+
e
.
playerList
[
t
].
type
+
"
:
"
+
e
.
playerList
[
t
].
pokerList
.
length
,
e
.
playerList
[
t
].
pokerListToString
(),
e
.
playerList
[
t
].
lastSendObjToString
()]},
player0Str
:
function
(){
var
e
=
this
.
game
,
t
=
0
;
return
[
e
.
playerList
[
t
].
name
+
"
:
"
+
e
.
playerList
[
t
].
type
+
"
:
"
+
e
.
playerList
[
t
].
pokerList
.
length
,
e
.
playerList
[
t
].
pokerListToString
(),
e
.
playerList
[
t
].
lastSendObjToString
()]},
deskStr
:
function
(){
var
e
=
this
.
game
;
return
[
"
desk
"
,
e
.
pokerListToString
()]}},
mounted
:
function
(){
this
.
data
=
this
.
game
.
playerList
[
1
].
name
,
window
.
game
=
this
.
game
},
methods
:{
enter
:
function
(
e
,
t
){
1
===
e
.
buttons
&&
this
.
pickPoker
(
t
)},
pickPoker
:
function
(
e
){
if
(
e
.
selected
){
e
.
selected
=!
1
;
for
(
var
t
=
0
;
t
<
this
.
pokerList
.
length
;
t
++
)
this
.
pokerList
[
t
]
===
e
&&
this
.
pokerList
.
splice
(
t
,
1
)}
else
e
.
selected
=!
0
,
this
.
pokerList
.
push
(
e
)},
sendPoker2
:
function
(){
var
e
=
this
.
game
,
t
=
e
.
playerList
[
0
].
playByPokerList
(
this
.
pokerList
);
t
&&
(
this
.
pokerList
=
[])},
sendPoker
:
function
(){
var
e
=
this
.
game
,
t
=
e
.
playerList
[
0
].
playByString
(
this
.
playerStr
);
t
&&
(
this
.
playerStr
=
""
)},
pass
:
function
(){
this
.
game
.
playerList
[
0
].
playByString
(
"
pass
"
)},
reStart
:
function
(){
this
.
game
=
new
b
,
this
.
playerStr
=
""
}}},
j
=
O
,
P
=
(
r
(
"
e23f
"
),
Object
(
d
[
"
a
"
])(
j
,
w
,
S
,
!
1
,
null
,
"
2ac19fef
"
,
null
)),
_
=
P
.
exports
,
T
=
{
name
:
"
App
"
,
components
:{
HelloWorld
:
x
,
Game
:
_
}},
B
=
T
,
W
=
Object
(
d
[
"
a
"
])(
B
,
i
,
s
,
!
1
,
null
,
null
,
null
),
N
=
W
.
exports
;
n
[
"
a
"
].
config
.
productionTip
=!
1
,
new
n
[
"
a
"
]({
render
:
function
(
e
){
return
e
(
N
)}}).
$mount
(
"
#app
"
)},
e23f
:
function
(
e
,
t
,
r
){
"
use strict
"
;
var
n
=
r
(
"
0f52
"
),
i
=
r
.
n
(
n
);
i
.
a
}});
//# sourceMappingURL=app.b03d0b62.js.map
\ No newline at end of file
(
function
(
e
){
function
t
(
t
){
for
(
var
n
,
o
,
l
=
t
[
0
],
a
=
t
[
1
],
h
=
t
[
2
],
u
=
0
,
g
=
[];
u
<
l
.
length
;
u
++
)
o
=
l
[
u
],
Object
.
prototype
.
hasOwnProperty
.
call
(
i
,
o
)
&&
i
[
o
]
&&
g
.
push
(
i
[
o
][
0
]),
i
[
o
]
=
0
;
for
(
n
in
a
)
Object
.
prototype
.
hasOwnProperty
.
call
(
a
,
n
)
&&
(
e
[
n
]
=
a
[
n
]);
p
&&
p
(
t
);
while
(
g
.
length
)
g
.
shift
()();
return
s
.
push
.
apply
(
s
,
h
||
[]),
r
()}
function
r
(){
for
(
var
e
,
t
=
0
;
t
<
s
.
length
;
t
++
){
for
(
var
r
=
s
[
t
],
n
=!
0
,
l
=
1
;
l
<
r
.
length
;
l
++
){
var
a
=
r
[
l
];
0
!==
i
[
a
]
&&
(
n
=!
1
)}
n
&&
(
s
.
splice
(
t
--
,
1
),
e
=
o
(
o
.
s
=
r
[
0
]))}
return
e
}
var
n
=
{},
i
=
{
app
:
0
},
s
=
[];
function
o
(
t
){
if
(
n
[
t
])
return
n
[
t
].
exports
;
var
r
=
n
[
t
]
=
{
i
:
t
,
l
:
!
1
,
exports
:{}};
return
e
[
t
].
call
(
r
.
exports
,
r
,
r
.
exports
,
o
),
r
.
l
=!
0
,
r
.
exports
}
o
.
m
=
e
,
o
.
c
=
n
,
o
.
d
=
function
(
e
,
t
,
r
){
o
.
o
(
e
,
t
)
||
Object
.
defineProperty
(
e
,
t
,{
enumerable
:
!
0
,
get
:
r
})},
o
.
r
=
function
(
e
){
"
undefined
"
!==
typeof
Symbol
&&
Symbol
.
toStringTag
&&
Object
.
defineProperty
(
e
,
Symbol
.
toStringTag
,{
value
:
"
Module
"
}),
Object
.
defineProperty
(
e
,
"
__esModule
"
,{
value
:
!
0
})},
o
.
t
=
function
(
e
,
t
){
if
(
1
&
t
&&
(
e
=
o
(
e
)),
8
&
t
)
return
e
;
if
(
4
&
t
&&
"
object
"
===
typeof
e
&&
e
&&
e
.
__esModule
)
return
e
;
var
r
=
Object
.
create
(
null
);
if
(
o
.
r
(
r
),
Object
.
defineProperty
(
r
,
"
default
"
,{
enumerable
:
!
0
,
value
:
e
}),
2
&
t
&&
"
string
"
!=
typeof
e
)
for
(
var
n
in
e
)
o
.
d
(
r
,
n
,
function
(
t
){
return
e
[
t
]}.
bind
(
null
,
n
));
return
r
},
o
.
n
=
function
(
e
){
var
t
=
e
&&
e
.
__esModule
?
function
(){
return
e
[
"
default
"
]}:
function
(){
return
e
};
return
o
.
d
(
t
,
"
a
"
,
t
),
t
},
o
.
o
=
function
(
e
,
t
){
return
Object
.
prototype
.
hasOwnProperty
.
call
(
e
,
t
)},
o
.
p
=
""
;
var
l
=
window
[
"
webpackJsonp
"
]
=
window
[
"
webpackJsonp
"
]
||
[],
a
=
l
.
push
.
bind
(
l
);
l
.
push
=
t
,
l
=
l
.
slice
();
for
(
var
h
=
0
;
h
<
l
.
length
;
h
++
)
t
(
l
[
h
]);
var
p
=
a
;
s
.
push
([
0
,
"
chunk-vendors
"
]),
r
()})({
0
:
function
(
e
,
t
,
r
){
e
.
exports
=
r
(
"
56d7
"
)},
"
00a8
"
:
function
(
e
,
t
,
r
){
e
.
exports
=
r
.
p
+
"
img/scene.02780059.jpg
"
},
"
2ff8
"
:
function
(
e
,
t
,
r
){},
"
56d7
"
:
function
(
e
,
t
,
r
){
"
use strict
"
;
r
.
r
(
t
);
r
(
"
e260
"
),
r
(
"
e6cf
"
),
r
(
"
cca6
"
),
r
(
"
a79d
"
);
var
n
=
r
(
"
2b0e
"
),
i
=
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
r
=
e
.
_self
.
_c
||
t
;
return
r
(
"
div
"
,{
attrs
:{
id
:
"
app
"
}},[
r
(
"
Game
"
)],
1
)},
s
=
[],
o
=
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
r
=
e
.
_self
.
_c
||
t
;
return
r
(
"
div
"
,[
r
(
"
div
"
,{
staticStyle
:{
width
:
"
300px
"
,
height
:
"
300px
"
,
float
:
"
left
"
,
position
:
"
fixed
"
,
left
:
"
0px
"
,
top
:
"
0px
"
,
"
background-color
"
:
"
aliceblue
"
,
"
text-align
"
:
"
center
"
}},[
r
(
"
span
"
,[
e
.
_v
(
"
"
+
e
.
_s
(
e
.
player2Str
[
0
])
+
"
"
),
r
(
"
br
"
),
e
.
_v
(
"
"
+
e
.
_s
(
e
.
player2Str
[
1
])
+
"
"
),
r
(
"
br
"
),
r
(
"
br
"
),
e
.
_v
(
"
"
+
e
.
_s
(
e
.
player2Str
[
2
])
+
"
"
)])]),
r
(
"
div
"
,{
staticStyle
:{
width
:
"
300px
"
,
height
:
"
300px
"
,
float
:
"
left
"
,
position
:
"
fixed
"
,
left
:
"
600px
"
,
top
:
"
0px
"
,
"
background-color
"
:
"
aliceblue
"
,
"
text-align
"
:
"
center
"
}},[
r
(
"
span
"
,[
e
.
_v
(
"
"
+
e
.
_s
(
e
.
player1Str
[
0
])
+
"
"
),
r
(
"
br
"
),
e
.
_v
(
"
"
+
e
.
_s
(
e
.
player1Str
[
1
])
+
"
"
),
r
(
"
br
"
),
r
(
"
br
"
),
e
.
_v
(
"
"
+
e
.
_s
(
e
.
player1Str
[
2
])
+
"
"
)])]),
r
(
"
div
"
,{
staticStyle
:{
width
:
"
300px
"
,
height
:
"
300px
"
,
float
:
"
left
"
,
position
:
"
fixed
"
,
left
:
"
300px
"
,
top
:
"
300px
"
,
"
background-color
"
:
"
aliceblue
"
,
"
text-align
"
:
"
center
"
}},[
r
(
"
span
"
,[
e
.
_v
(
"
"
+
e
.
_s
(
e
.
player0Str
[
0
])
+
"
"
),
r
(
"
br
"
),
e
.
_v
(
"
"
+
e
.
_s
(
e
.
player0Str
[
1
])
+
"
"
),
r
(
"
br
"
),
r
(
"
br
"
),
e
.
_v
(
"
"
+
e
.
_s
(
e
.
player0Str
[
2
])
+
"
"
)]),
r
(
"
div
"
,[
r
(
"
input
"
,{
directives
:[{
name
:
"
model
"
,
rawName
:
"
v-model
"
,
value
:
e
.
playerStr
,
expression
:
"
playerStr
"
}],
attrs
:{
type
:
"
text
"
},
domProps
:{
value
:
e
.
playerStr
},
on
:{
input
:
function
(
t
){
t
.
target
.
composing
||
(
e
.
playerStr
=
t
.
target
.
value
)}}}),
r
(
"
button
"
,{
on
:{
click
:
e
.
sendPoker
}},[
e
.
_v
(
"
send
"
)]),
r
(
"
button
"
,{
on
:{
click
:
e
.
pass
}},[
e
.
_v
(
"
pass
"
)])])]),
r
(
"
div
"
,{
staticStyle
:{
width
:
"
300px
"
,
height
:
"
300px
"
,
float
:
"
left
"
,
position
:
"
fixed
"
,
left
:
"
300px
"
,
top
:
"
0px
"
,
"
background-color
"
:
"
aliceblue
"
,
"
text-align
"
:
"
center
"
}},[
r
(
"
div
"
,{
staticStyle
:{
width
:
"
300px
"
,
"
word-wrap
"
:
"
break-word
"
}},[
e
.
_v
(
"
"
+
e
.
_s
(
e
.
deskStr
[
0
])
+
"
"
),
r
(
"
br
"
),
e
.
_v
(
"
"
+
e
.
_s
(
e
.
deskStr
[
1
])
+
"
"
)])]),
r
(
"
div
"
,{
staticStyle
:{
position
:
"
fixed
"
,
left
:
"
300px
"
,
top
:
"
600px
"
}},[
r
(
"
button
"
,{
on
:{
click
:
e
.
reStart
}},[
e
.
_v
(
"
reStart
"
)])])])},
l
=
[],
a
=
(
r
(
"
b0c0
"
),
r
(
"
a434
"
),
r
(
"
d4ec
"
)),
h
=
r
(
"
bee2
"
),
p
=
(
r
(
"
d81d
"
),
r
(
"
d3b7
"
),
r
(
"
25f0
"
),
function
(){
function
e
(
t
){
Object
(
a
[
"
a
"
])(
this
,
e
),
t
.
text
?(
this
.
text
=
t
.
text
,
this
.
number
=
e
.
textToNumber
(
t
.
text
)):(
this
.
number
=
t
.
number
,
this
.
text
=
e
.
numberToText
(
t
.
number
)),
this
.
type
=
t
.
type
,
this
.
selected
=
t
.
selected
}
return
Object
(
h
[
"
a
"
])(
e
,[{
key
:
"
toString
"
,
value
:
function
(){
return
this
.
text
}}],[{
key
:
"
textToNumber
"
,
value
:
function
(
e
){
switch
(
e
){
case
"
3
"
:
return
3
;
case
"
4
"
:
return
4
;
case
"
5
"
:
return
5
;
case
"
6
"
:
return
6
;
case
"
7
"
:
return
7
;
case
"
8
"
:
return
8
;
case
"
9
"
:
return
9
;
case
"
10
"
:
case
"
0
"
:
case
"
T
"
:
case
"
t
"
:
return
10
;
case
"
11
"
:
case
"
j
"
:
case
"
J
"
:
return
11
;
case
"
12
"
:
case
"
q
"
:
case
"
Q
"
:
return
12
;
case
"
13
"
:
case
"
k
"
:
case
"
K
"
:
return
13
;
case
"
1
"
:
case
"
a
"
:
case
"
A
"
:
return
14
;
case
"
2
"
:
return
15
;
case
"
s
"
:
case
"
S
"
:
return
16
;
case
"
x
"
:
case
"
X
"
:
return
17
}}},{
key
:
"
numberToText
"
,
value
:
function
(
e
){
switch
(
e
){
case
3
:
return
"
3
"
;
case
4
:
return
"
4
"
;
case
5
:
return
"
5
"
;
case
6
:
return
"
6
"
;
case
7
:
return
"
7
"
;
case
8
:
return
"
8
"
;
case
9
:
return
"
9
"
;
case
10
:
return
"
10
"
;
case
11
:
return
"
J
"
;
case
12
:
return
"
Q
"
;
case
13
:
return
"
K
"
;
case
14
:
return
"
A
"
;
case
15
:
return
"
2
"
;
case
16
:
return
"
S
"
;
case
17
:
return
"
X
"
}}},{
key
:
"
sortFunction
"
,
value
:
function
(
e
,
t
){
return
e
.
number
-
t
.
number
}},{
key
:
"
getObjByPokerList
"
,
value
:
function
(
t
){
if
(
"
pass
"
===
t
[
0
])
return
{
type
:
"
pass
"
,
poker
:
t
};
t
.
sort
(
e
.
sortFunction
);
for
(
var
r
=
t
[
0
],
n
=
[
r
],
i
=
[],
s
=
1
;
s
<
t
.
length
;
s
++
)
t
[
s
].
number
!==
r
.
number
?(
i
.
push
(
n
),
n
=
[
t
[
s
]]):
n
.
push
(
t
[
s
]),
r
=
t
[
s
];
i
.
push
(
n
);
for
(
var
o
=
[],
l
=
[],
a
=
[],
h
=
[],
p
=
0
;
p
<
i
.
length
;
p
++
)
3
===
i
[
p
].
length
?
a
.
push
(
i
[
p
]):
2
===
i
[
p
].
length
?
l
.
push
(
i
[
p
]):
1
===
i
[
p
].
length
?
o
.
push
(
i
[
p
]):
4
===
i
[
p
].
length
&&
h
.
push
(
i
[
p
]);
if
(
1
===
t
.
length
)
return
{
type
:
"
one
"
,
poker
:
t
,
one
:
t
};
if
(
2
===
t
.
length
){
if
(
1
===
l
.
length
)
return
{
type
:
"
two
"
,
poker
:
t
,
two
:
t
};
if
(
16
===
t
[
0
].
number
&&
17
===
t
[
1
].
number
)
return
{
type
:
"
sx
"
,
poker
:
t
,
sx
:
t
}}
else
if
(
3
===
t
.
length
){
if
(
1
===
a
.
length
)
return
{
type
:
"
three
"
,
poker
:
t
,
three
:
t
}}
else
if
(
4
===
t
.
length
){
if
(
1
===
a
.
length
)
return
{
type
:
"
threeWithOne
"
,
poker
:
t
,
three
:
a
[
0
],
one
:
o
[
0
]};
if
(
1
===
h
.
length
)
return
{
type
:
"
four
"
,
poker
:
t
,
four
:
t
}}
else
if
(
5
===
t
.
length
){
if
(
1
===
a
.
length
&&
1
===
l
.
length
)
return
{
type
:
"
threeWithTwo
"
,
poker
:
t
,
three
:
a
[
0
],
two
:
l
[
0
]}}
else
if
(
6
===
t
.
length
){
if
(
1
===
h
.
length
&&
2
===
o
.
length
)
return
{
type
:
"
fourWithOne
"
,
poker
:
t
,
four
:
h
[
0
]}}
else
if
(
8
===
t
.
length
&&
1
===
h
.
length
&&
2
===
l
.
length
)
return
{
type
:
"
fourWithTwo
"
,
poker
:
t
,
four
:
h
[
0
]};
if
(
a
.
length
>=
2
&&
a
[
a
.
length
-
1
][
0
].
number
<=
14
&&
a
[
0
][
0
].
number
+
a
.
length
-
1
===
a
[
a
.
length
-
1
][
0
].
number
){
if
(
t
.
length
-
3
*
a
.
length
===
a
.
length
)
return
{
type
:
"
threeWithOneList
"
,
poker
:
t
,
list
:
a
.
map
((
function
(
e
){
return
{
three
:
e
}}))};
if
(
l
.
length
===
a
.
length
)
return
{
type
:
"
threeWithTwoList
"
,
poker
:
t
,
list
:
a
.
map
((
function
(
e
){
return
{
three
:
e
}}))}}
return
t
.
length
>=
5
&&
t
[
t
.
length
-
1
].
number
<=
14
&&
o
.
length
===
t
.
length
&&
t
[
0
].
number
+
t
.
length
-
1
===
t
[
t
.
length
-
1
].
number
?{
type
:
"
oneList
"
,
poker
:
t
,
list
:
o
.
map
((
function
(
e
){
return
{
one
:
e
}}))}:
t
.
length
>=
6
&&
t
[
t
.
length
-
1
].
number
<=
14
&&
t
.
length
%
2
===
0
&&
l
.
length
===
t
.
length
/
2
&&
t
[
0
].
number
+
t
.
length
/
2
-
1
===
t
[
t
.
length
-
1
].
number
?{
type
:
"
twoList
"
,
poker
:
t
,
list
:
l
.
map
((
function
(
e
){
return
{
two
:
e
}}))}:
t
.
length
>=
6
&&
t
[
t
.
length
-
1
].
number
<=
14
&&
t
.
length
%
3
===
0
&&
a
.
length
===
t
.
length
/
3
&&
t
[
0
].
number
+
t
.
length
/
3
-
1
===
t
[
t
.
length
-
1
].
number
&&
{
type
:
"
threeList
"
,
poker
:
t
,
list
:
a
.
map
((
function
(
e
){
return
{
three
:
e
}}))}}},{
key
:
"
pokerListToString
"
,
value
:
function
(
e
){
for
(
var
t
=
""
,
r
=
0
;
r
<
e
.
length
;
r
++
){
var
n
=
e
[
r
].
toString
();
t
+=
n
}
return
t
}}]),
e
}()),
u
=
p
,
g
=
(
r
(
"
99af
"
),
r
(
"
0481
"
),
r
(
"
fb6a
"
),
r
(
"
4069
"
),
function
(){
function
e
(
t
){
Object
(
a
[
"
a
"
])(
this
,
e
),
t
=
t
||
{},
this
.
player
=
t
.
player
,
this
.
game
=
t
.
game
}
return
Object
(
h
[
"
a
"
])(
e
,[{
key
:
"
classify
"
,
value
:
function
(
e
){
if
(
e
.
sort
(
this
.
sortFunction
),
0
===
e
.
length
)
return
{
1
:[],
2
:[],
3
:[],
4
:[]};
for
(
var
t
=
e
[
0
],
r
=
[
t
],
n
=
[],
i
=
1
;
i
<
e
.
length
;
i
++
)
e
[
i
].
number
!==
t
.
number
?(
n
.
push
(
r
),
r
=
[
e
[
i
]]):
r
.
push
(
e
[
i
]),
t
=
e
[
i
];
n
.
push
(
r
);
for
(
var
s
=
[],
o
=
[],
l
=
[],
a
=
[],
h
=
0
;
h
<
n
.
length
;
h
++
)
3
===
n
[
h
].
length
?
l
.
push
(
n
[
h
]):
2
===
n
[
h
].
length
?
o
.
push
(
n
[
h
]):
1
===
n
[
h
].
length
?
s
.
push
(
n
[
h
]):
4
===
n
[
h
].
length
&&
a
.
push
(
n
[
h
]);
return
{
1
:
s
,
2
:
o
,
3
:
l
,
4
:
a
}}},{
key
:
"
getClassifyObj
"
,
value
:
function
(
e
){
for
(
var
t
=
[],
r
=
[],
n
=
[],
i
=
e
.
slice
(
0
),
s
=
0
;
s
<
i
.
length
;
s
++
)
if
(
15
===
i
[
s
].
number
){
var
o
=
i
.
splice
(
s
,
1
);
s
--
,
t
.
push
(
o
[
0
])}
else
if
(
16
===
i
[
s
].
number
){
var
l
=
i
.
splice
(
s
,
1
);
s
--
,
r
.
push
(
l
[
0
])}
else
if
(
17
===
i
[
s
].
number
){
var
a
=
i
.
splice
(
s
,
1
);
s
--
,
n
.
push
(
a
[
0
])}
var
h
=
this
.
classify
(
i
),
p
=
h
[
1
],
u
=
h
[
2
],
g
=
h
[
3
],
f
=
h
[
4
],
y
=
f
,
c
=
[],
k
=
[],
b
=
[],
m
=
[],
v
=
[],
d
=
[];
if
(
g
.
length
>
0
){
for
(
var
L
=
[
g
[
0
]],
x
=
[],
w
=
1
;
w
<
g
.
length
;
w
++
)
g
[
w
][
0
].
number
!==
g
[
w
-
1
][
0
].
number
+
1
?(
x
.
push
(
L
),
L
=
[
g
[
w
]]):
L
.
push
(
g
[
w
]);
x
.
push
(
L
);
for
(
var
S
=
0
;
S
<
x
.
length
;
S
++
)
x
[
S
].
length
>
1
?
k
.
push
(
x
[
S
]):
c
.
push
(
x
[
S
][
0
])}
if
(
u
.
length
>
0
){
for
(
var
O
=
[
u
[
0
]],
j
=
[],
P
=
1
;
P
<
u
.
length
;
P
++
)
u
[
P
][
0
].
number
!==
u
[
P
-
1
][
0
].
number
+
1
?(
j
.
push
(
O
),
O
=
[
u
[
P
]]):
O
.
push
(
u
[
P
]);
j
.
push
(
O
);
for
(
var
_
=
0
;
_
<
j
.
length
;
_
++
)
j
[
_
].
length
>
2
?
m
.
push
(
j
[
_
]):
b
=
b
.
concat
(
j
[
_
])}
if
(
p
.
length
>
0
){
for
(
var
T
=
[
p
[
0
]],
B
=
[],
W
=
1
;
W
<
p
.
length
;
W
++
)
p
[
W
][
0
].
number
!==
p
[
W
-
1
][
0
].
number
+
1
?(
B
.
push
(
T
),
T
=
[
p
[
W
]]):
T
.
push
(
p
[
W
]);
B
.
push
(
T
);
for
(
var
N
=
0
;
N
<
B
.
length
;
N
++
)
B
[
N
].
length
>
4
?
d
.
push
(
B
[
N
]):
v
=
v
.
concat
(
B
[
N
])}
if
(
v
.
length
>
0
&&
b
.
length
>
0
){
var
z
=
0
,
A
=
0
;
while
(
1
){
if
(
z
>
v
.
length
-
1
&&
A
>
b
.
length
-
1
)
break
;
var
M
=
void
0
,
F
=
void
0
,
D
=
[],
C
=
[];
if
(
0
===
v
.
length
||
z
>
v
.
length
-
1
)
break
;
0
===
b
.
length
||
A
>
b
.
length
-
1
||
v
[
z
][
0
].
number
<
b
[
A
][
0
].
number
?(
M
=
v
[
z
][
0
].
number
,
D
.
push
(
v
[
z
]),
z
++
):(
M
=
b
[
A
][
0
].
number
,
C
.
push
(
b
[
A
]),
A
++
),
F
=
M
;
do
{
if
(
z
>
v
.
length
-
1
&&
A
>
b
.
length
-
1
)
break
;
if
(
z
<
v
.
length
&&
v
[
z
][
0
].
number
===
F
+
1
)
D
.
push
(
v
[
z
]),
z
++
;
else
{
if
(
!
(
A
<
b
.
length
&&
b
[
A
][
0
].
number
===
F
+
1
))
break
;
C
.
push
(
b
[
A
]),
A
++
}
if
(
F
+=
1
,
F
===
M
+
4
&&
C
.
length
<
4
){
for
(
var
I
=
[],
R
=
0
;
R
<
D
.
length
;
R
++
){
I
.
push
(
D
[
R
]);
for
(
var
G
=
0
;
G
<
v
.
length
;
G
++
)
if
(
v
[
G
]
===
D
[
R
]){
v
.
splice
(
G
,
1
);
break
}}
for
(
var
J
=
0
;
J
<
C
.
length
;
J
++
){
for
(
var
$
=
C
[
J
],
E
=
0
;
E
<
b
.
length
;
E
++
)
if
(
b
[
E
]
===
$
){
b
.
splice
(
E
,
1
);
break
}
var
H
=
$
.
splice
(
0
,
1
);
I
.
push
(
H
),
v
.
push
(
$
)}
I
.
sort
(
this
.
sortArray
),
d
.
push
(
I
),
v
.
sort
(
this
.
sortArray
),
z
=
0
,
A
=
0
;
break
}}
while
(
1
)}}
for
(
var
K
=
0
;
K
<
v
.
length
;
K
++
){
for
(
var
Q
=!
1
,
X
=
0
;
X
<
d
.
length
;
X
++
){
if
(
v
[
K
][
0
].
number
===
d
[
X
][
0
][
0
].
number
-
1
){
d
[
X
].
unshift
(
v
[
K
]),
Q
=!
0
;
break
}
if
(
v
[
K
][
0
].
number
===
d
[
X
][
d
[
X
].
length
-
1
][
0
].
number
+
1
){
d
[
X
].
push
(
v
[
K
]),
Q
=!
0
;
break
}}
Q
&&
(
v
.
splice
(
K
,
1
),
K
--
)}
d
.
sort
(
this
.
sortList
);
for
(
var
q
=
1
;
q
<
d
.
length
;
q
++
)
d
[
q
][
0
][
0
].
number
===
d
[
q
-
1
][
d
[
q
-
1
].
length
-
1
][
0
].
number
+
1
&&
(
d
[
q
-
1
]
=
d
[
q
-
1
].
concat
(
d
[
q
]),
d
.
splice
(
q
,
1
),
q
--
);
return
{
four
:
y
,
three
:
c
,
threeList
:
k
,
two
:
b
,
twoList
:
m
,
one
:
v
,
oneList
:
d
,
poker15
:
t
,
poker16
:
r
,
poker17
:
n
}}},{
key
:
"
getByObj1
"
,
value
:
function
(
e
){
var
t
;
return
t
=
this
.
getSmallestObjByObj
(
e
),
t
||
(
t
=
this
.
getByBoom
(
e
)),
t
}},{
key
:
"
getByObj2
"
,
value
:
function
(
e
){
var
t
;
return
t
=
this
.
getByObj1
(
e
),
t
||
(
t
=
this
.
getBySplit
(
e
)),
t
}},{
key
:
"
getByObj3
"
,
value
:
function
(
e
){
var
t
;
return
t
=
this
.
getSmallestObjNoBig
(
e
),
t
}},{
key
:
"
getByObj4
"
,
value
:
function
(
e
){
var
t
;
return
t
=
"
one
"
===
e
.
type
?
this
.
getByObj5
(
e
):
this
.
getByObj2
(
e
),
t
}},{
key
:
"
getByBoom
"
,
value
:
function
(
e
){
var
t
,
r
,
n
=
this
.
player
.
classifyObj
;
if
(
"
sx
"
===
e
.
type
)
return
null
;
if
(
n
.
four
.
length
>
0
)
if
(
"
four
"
===
e
.
type
){
for
(
var
i
=
0
;
i
<
n
.
four
.
length
;
i
++
)
if
(
n
.
four
[
i
][
0
].
number
>
e
.
four
[
0
].
number
){
r
=
n
.
four
[
i
];
break
}}
else
r
=
n
.
four
[
0
];
return
r
||
4
===
n
.
poker15
.
length
&&
(
r
=
n
.
poker15
),
r
?
t
=
{
type
:
"
four
"
,
poker
:
r
,
four
:
r
}:
n
.
poker16
.
length
>
0
&&
n
.
poker17
.
length
>
0
&&
(
t
=
{
type
:
"
sx
"
,
poker
:
n
.
poker16
.
concat
(
n
.
poker17
),
sx
:
n
.
poker16
.
concat
(
n
.
poker17
)}),
t
}},{
key
:
"
getByObj5
"
,
value
:
function
(
e
){
var
t
=
this
.
getByBoom
(
e
);
return
t
||
this
.
player
.
pokerList
[
this
.
player
.
pokerList
.
length
-
1
].
number
>
e
.
one
[
0
].
number
&&
(
t
=
{
type
:
"
one
"
,
poker
:[
this
.
player
.
pokerList
[
this
.
player
.
pokerList
.
length
-
1
]],
one
:[
this
.
player
.
pokerList
[
this
.
player
.
pokerList
.
length
-
1
]]}),
t
}},{
key
:
"
getByObj6
"
,
value
:
function
(
e
){
var
t
;
return
t
=
"
dizhu
"
===
e
.
player
.
type
?
this
.
getByObj1
(
e
):
this
.
getByObj3
(
e
),
t
}},{
key
:
"
playByObj
"
,
value
:
function
(
e
){
var
t
;
if
(
"
sx
"
===
e
.
type
)
return
t
=
{
type
:
"
pass
"
,
poker
:[
"
pass
"
]},
void
this
.
player
.
deleteFromPokerListAndSendByObj
(
t
);
if
(
"
dizhu
"
===
this
.
player
.
type
)
t
=
1
===
this
.
player
.
next
.
pokerList
.
length
||
1
===
this
.
player
.
last
.
pokerList
.
length
?
this
.
getByObj4
(
e
):
this
.
getByObj1
(
e
);
else
if
(
this
.
player
.
next
.
type
===
this
.
player
.
type
)
t
=
this
.
getByObj6
(
e
);
else
if
(
1
===
this
.
player
.
next
.
pokerList
.
length
){
if
(
"
dizhu
"
===
e
.
player
.
type
)
t
=
this
.
getByObj4
(
e
);
else
if
(
"
one
"
===
e
.
type
){
var
r
=
this
.
isPlayerCanNotGetOne
(
e
);
r
||
(
t
=
this
.
getByObj5
(
e
))}}
else
t
=
this
.
getByObj6
(
e
);
t
||
(
t
=
{
type
:
"
pass
"
,
poker
:[
"
pass
"
]}),
this
.
player
.
deleteFromPokerListAndSendByObj
(
t
)}},{
key
:
"
isPlayerCanNotGetOne
"
,
value
:
function
(
e
){
for
(
var
t
=
{
3
:
0
,
4
:
0
,
5
:
0
,
6
:
0
,
7
:
0
,
8
:
0
,
9
:
0
,
10
:
0
,
11
:
0
,
12
:
0
,
13
:
0
,
14
:
0
,
15
:
0
,
16
:
0
,
17
:
0
},
r
=
this
.
game
.
oldPokerList
,
n
=
0
;
n
<
r
.
length
;
n
++
)
for
(
var
i
=
0
;
i
<
r
[
n
].
poker
.
length
;
i
++
)
t
[
r
[
n
].
poker
[
i
].
number
]
++
;
for
(
var
s
=
this
.
game
.
deskPokerObj
,
o
=
0
;
o
<
s
.
poker
.
length
;
o
++
)
t
[
s
.
poker
[
o
].
number
]
++
;
for
(
var
l
=
this
.
player
.
pokerList
,
a
=
0
;
a
<
l
.
length
;
a
++
)
t
[
l
[
a
].
number
]
++
;
var
h
=
e
.
one
[
0
].
number
;
if
(
16
===
h
){
if
(
1
!==
t
[
17
])
return
!
1
}
else
if
(
15
===
h
){
if
(
1
!==
t
[
16
]
||
1
!==
t
[
17
])
return
!
1
}
else
for
(
var
p
=
h
+
1
;
p
<=
15
;
p
++
)
if
(
4
!==
t
[
p
])
return
!
1
;
return
!
0
}},{
key
:
"
playByTypys1
"
,
value
:
function
(){
for
(
var
e
=
[
"
threeWithTwoList
"
,
"
threeWithOneList
"
,
"
threeList
"
,
"
twoList
"
,
"
oneList
"
,
"
threeWithTwo
"
,
"
threeWithOne
"
,
"
three
"
,
"
two
"
,
"
one
"
,
"
four
"
,
"
sx
"
],
t
=
0
;
t
<
e
.
length
;
t
++
){
var
r
=
this
.
getSmallestObjByType
(
e
[
t
]);
if
(
r
){
this
.
player
.
deleteFromPokerListAndSendByObj
(
r
);
break
}}}},{
key
:
"
playByTypys2
"
,
value
:
function
(){
for
(
var
e
=
[
"
threeWithTwoList
"
,
"
threeWithOneList
"
,
"
threeList
"
,
"
twoList
"
,
"
oneList
"
,
"
threeWithTwo
"
,
"
threeWithOne
"
,
"
three
"
,
"
two
"
,
"
four
"
,
"
sx
"
,
"
one
"
],
t
=
0
;
t
<
e
.
length
;
t
++
){
var
r
=
this
.
getSmallestObjByType
(
e
[
t
],
!
0
);
if
(
r
){
this
.
player
.
deleteFromPokerListAndSendByObj
(
r
);
break
}}}},{
key
:
"
playSmallestOne
"
,
value
:
function
(){
var
e
=
{
type
:
"
one
"
,
poker
:[
this
.
player
.
pokerList
[
0
]],
one
:[
this
.
player
.
pokerList
[
0
]]};
this
.
player
.
deleteFromPokerListAndSendByObj
(
e
)}},{
key
:
"
playByAllType
"
,
value
:
function
(){
"
dizhu
"
===
this
.
player
.
type
?
1
===
this
.
player
.
next
.
pokerList
.
length
||
1
===
this
.
player
.
last
.
pokerList
.
length
?
this
.
playByTypys2
():
this
.
playByTypys1
():
"
nongmin
"
===
this
.
player
.
next
.
type
?
1
===
this
.
player
.
next
.
pokerList
.
length
?
this
.
playSmallestOne
():
this
.
playByTypys1
():
1
===
this
.
player
.
next
.
pokerList
.
length
?
this
.
playByTypys2
():
this
.
playByTypys1
()}},{
key
:
"
getSmallestObjNoBig
"
,
value
:
function
(
e
){
var
t
=
this
.
player
.
classifyObj
,
r
=
e
.
type
,
n
=
null
;
if
(
"
one
"
===
r
){
var
i
;
if
(
t
.
one
.
length
>
0
)
for
(
var
s
=
0
;
s
<
t
.
one
.
length
;
s
++
)
if
(
t
.
one
[
s
][
0
].
number
>
e
.
one
[
0
].
number
){
i
=
t
.
one
[
s
];
break
}
i
&&
(
n
=
{
type
:
r
,
poker
:
i
,
one
:
i
})}
else
if
(
"
two
"
===
r
){
var
o
;
if
(
t
.
two
.
length
>
0
)
for
(
var
l
=
0
;
l
<
t
.
two
.
length
;
l
++
)
if
(
t
.
two
[
l
][
0
].
number
>
e
.
two
[
0
].
number
){
o
=
t
.
two
[
l
];
break
}
o
&&
(
n
=
{
type
:
r
,
poker
:
o
,
two
:
o
})}
else
if
(
"
three
"
===
r
){
var
a
;
if
(
t
.
three
.
length
>
0
)
for
(
var
h
=
0
;
h
<
t
.
three
.
length
;
h
++
)
if
(
t
.
three
[
h
][
0
].
number
>
e
.
three
[
0
].
number
){
t
.
three
[
h
][
0
].
number
<=
13
&&
(
a
=
t
.
three
[
h
]);
break
}
a
&&
(
n
=
{
type
:
r
,
poker
:
a
,
three
:
a
})}
else
if
(
"
threeWithOne
"
===
r
){
var
p
,
u
;
if
(
t
.
three
.
length
>
0
&&
t
.
three
.
length
>
0
)
for
(
var
g
=
0
;
g
<
t
.
three
.
length
;
g
++
)
if
(
t
.
three
[
g
][
0
].
number
>
e
.
three
[
0
].
number
){
t
.
three
[
g
][
0
].
number
<=
13
&&
(
p
=
t
.
three
[
g
]);
break
}
t
.
one
.
length
>
0
&&
(
u
=
t
.
one
[
0
]),
p
&&
u
&&
(
n
=
{
type
:
r
,
poker
:
p
.
concat
(
u
),
three
:
p
,
one
:
u
})}
else
if
(
"
threeWithTwo
"
===
r
){
var
f
,
y
;
if
(
t
.
three
.
length
>
0
&&
t
.
three
.
length
>
0
)
for
(
var
c
=
0
;
c
<
t
.
three
.
length
;
c
++
)
if
(
t
.
three
[
c
][
0
].
number
>
e
.
three
[
0
].
number
){
t
.
three
[
c
][
0
].
number
<=
13
&&
(
f
=
t
.
three
[
c
]);
break
}
t
.
two
.
length
>
0
&&
(
y
=
t
.
two
[
0
]),
f
&&
y
&&
(
n
=
{
type
:
r
,
poker
:
f
.
concat
(
y
),
three
:
f
,
two
:
y
})}
return
n
}},{
key
:
"
getSmallestObjByObj
"
,
value
:
function
(
e
){
var
t
=
this
.
player
.
classifyObj
,
r
=
e
.
type
,
n
=
null
;
if
(
"
one
"
===
r
){
var
i
;
if
(
t
.
one
.
length
>
0
)
for
(
var
s
=
0
;
s
<
t
.
one
.
length
;
s
++
)
if
(
t
.
one
[
s
][
0
].
number
>
e
.
one
[
0
].
number
){
i
=
t
.
one
[
s
];
break
}
i
||
(
e
.
one
[
0
].
number
<
15
&&
t
.
poker15
.
length
>
0
?
i
=
t
.
poker15
.
slice
(
0
,
1
):
0
!==
t
.
poker17
.
length
&&
0
!==
t
.
poker16
.
length
||
(
e
.
one
[
0
].
number
<
16
&&
t
.
poker16
.
length
>
0
?
i
=
t
.
poker16
:
e
.
one
[
0
].
number
<
17
&&
t
.
poker17
.
length
>
0
&&
(
i
=
t
.
poker17
))),
i
&&
(
n
=
{
type
:
r
,
poker
:
i
,
one
:
i
})}
else
if
(
"
two
"
===
r
){
var
o
;
if
(
t
.
two
.
length
>
0
)
for
(
var
l
=
0
;
l
<
t
.
two
.
length
;
l
++
)
if
(
t
.
two
[
l
][
0
].
number
>
e
.
two
[
0
].
number
){
o
=
t
.
two
[
l
];
break
}
o
||
e
.
two
[
0
].
number
<
15
&&
t
.
poker15
.
length
>
1
&&
(
o
=
t
.
poker15
.
slice
(
0
,
2
)),
o
&&
(
n
=
{
type
:
r
,
poker
:
o
,
two
:
o
})}
else
if
(
"
three
"
===
r
){
var
a
;
if
(
t
.
three
.
length
>
0
)
for
(
var
h
=
0
;
h
<
t
.
three
.
length
;
h
++
)
if
(
t
.
three
[
h
][
0
].
number
>
e
.
three
[
0
].
number
){
a
=
t
.
three
[
h
];
break
}
a
||
e
.
three
[
0
].
number
<
15
&&
3
===
t
.
poker15
.
length
&&
(
a
=
t
.
poker15
),
a
&&
(
n
=
{
type
:
r
,
poker
:
a
,
three
:
a
})}
else
if
(
"
threeWithOne
"
===
r
){
var
p
,
u
;
if
(
t
.
three
.
length
>
0
&&
t
.
three
.
length
>
0
)
for
(
var
g
=
0
;
g
<
t
.
three
.
length
;
g
++
)
if
(
t
.
three
[
g
][
0
].
number
>
e
.
three
[
0
].
number
){
p
=
t
.
three
[
g
];
break
}
p
||
e
.
three
[
0
].
number
<
15
&&
3
===
t
.
poker15
.
length
&&
(
p
=
t
.
poker15
),
t
.
one
.
length
>
0
&&
(
u
=
t
.
one
[
0
]),
!
u
&&
t
.
poker15
.
length
>
0
&&
(
u
=
t
.
poker15
.
slice
(
0
,
1
)),
p
&&
u
&&
(
n
=
{
type
:
r
,
poker
:
p
.
concat
(
u
),
three
:
p
,
one
:
u
})}
else
if
(
"
threeWithTwo
"
===
r
){
var
f
,
y
;
if
(
t
.
three
.
length
>
0
&&
t
.
three
.
length
>
0
)
for
(
var
c
=
0
;
c
<
t
.
three
.
length
;
c
++
)
if
(
t
.
three
[
c
][
0
].
number
>
e
.
three
[
0
].
number
){
f
=
t
.
three
[
c
];
break
}
f
||
e
.
three
[
0
].
number
<
15
&&
3
===
t
.
poker15
.
length
&&
(
f
=
t
.
poker15
),
t
.
two
.
length
>
0
&&
(
y
=
t
.
two
[
0
]),
!
y
&&
t
.
poker15
.
length
>
1
&&
(
y
=
t
.
poker15
.
slice
(
0
,
2
)),
f
&&
y
&&
(
n
=
{
type
:
r
,
poker
:
f
.
concat
(
y
),
three
:
f
,
two
:
y
})}
else
if
(
"
four
"
===
r
){
var
k
;
if
(
t
.
four
.
length
>
0
)
for
(
var
b
=
0
;
b
<
t
.
four
.
length
;
b
++
)
if
(
t
.
four
[
b
][
0
].
number
>
e
.
four
[
0
].
number
){
k
=
t
.
four
[
b
];
break
}
k
||
4
===
t
.
poker15
.
length
&&
(
k
=
t
.
poker15
),
k
&&
(
n
=
{
type
:
r
,
poker
:
k
,
four
:
k
})}
else
if
(
"
fourWithOne
"
===
r
){
var
m
,
v
,
d
;
if
(
t
.
four
.
length
>
0
)
for
(
var
L
=
0
;
L
<
t
.
four
.
length
;
L
++
)
if
(
t
.
four
[
L
][
0
].
number
>
e
.
four
[
0
].
number
){
m
=
t
.
four
[
L
];
break
}
t
.
one
.
length
>
1
&&
(
v
=
t
.
one
[
0
],
d
=
t
.
one
[
1
]),
m
&&
v
&&
d
&&
(
n
=
{
type
:
r
,
poker
:
m
.
concat
(
v
).
concat
(
d
),
four
:
m
})}
else
if
(
"
fourWithTwo
"
===
r
){
var
x
,
w
,
S
;
if
(
t
.
four
.
length
>
0
)
for
(
var
O
=
0
;
O
<
t
.
four
.
length
;
O
++
)
if
(
t
.
four
[
O
][
0
].
number
>
e
.
four
[
0
].
number
){
x
=
t
.
four
[
O
];
break
}
t
.
two
.
length
>
1
&&
(
w
=
t
.
two
[
0
],
S
=
t
.
two
[
1
]),
x
&&
w
&&
S
&&
(
n
=
{
type
:
r
,
poker
:
x
.
concat
(
w
).
concat
(
S
),
four
:
x
})}
else
if
(
"
threeWithOneList
"
===
r
){
if
(
t
.
threeList
.
length
>
0
)
for
(
var
j
=
0
;
j
<
t
.
threeList
.
length
;
j
++
)
if
(
t
.
threeList
[
j
].
length
===
e
.
list
.
length
&&
t
.
threeList
[
j
][
0
][
0
].
number
>
e
.
list
[
0
].
three
[
0
].
number
){
if
(
t
.
one
.
length
>=
t
.
threeList
[
j
].
length
){
var
P
=
t
.
threeList
[
j
].
flat
(
1
),
_
=
t
.
one
.
slice
(
0
,
t
.
threeList
[
j
].
length
).
flat
(
1
);
n
=
{
type
:
r
,
poker
:
P
.
concat
(
_
),
list
:
t
.
threeList
[
j
].
map
((
function
(
e
){
return
{
three
:
e
}}))}}
break
}}
else
if
(
"
threeWithTwoList
"
===
r
){
if
(
t
.
threeList
.
length
>
0
)
for
(
var
T
=
0
;
T
<
t
.
threeList
.
length
;
T
++
)
if
(
t
.
threeList
[
T
].
length
===
e
.
list
.
length
&&
t
.
threeList
[
T
][
0
][
0
].
number
>
e
.
list
[
0
].
three
[
0
].
number
){
if
(
t
.
two
.
length
>=
t
.
threeList
[
T
].
length
){
var
B
=
t
.
threeList
[
T
].
flat
(
1
),
W
=
t
.
two
.
slice
(
0
,
t
.
threeList
[
T
].
length
).
flat
(
1
);
n
=
{
type
:
r
,
poker
:
B
.
concat
(
W
),
list
:
t
.
threeList
[
T
].
map
((
function
(
e
){
return
{
three
:
e
}}))}}
break
}}
else
if
(
"
oneList
"
===
r
){
if
(
t
.
oneList
.
length
>
0
)
for
(
var
N
=
0
;
N
<
t
.
oneList
.
length
;
N
++
)
if
(
t
.
oneList
[
N
].
length
===
e
.
list
.
length
&&
t
.
oneList
[
N
][
0
][
0
].
number
>
e
.
list
[
0
].
one
[
0
].
number
){
n
=
{
type
:
r
,
poker
:
t
.
oneList
[
N
].
flat
(
1
),
list
:
t
.
oneList
[
N
].
map
((
function
(
e
){
return
{
one
:
e
}}))};
break
}}
else
if
(
"
twoList
"
===
r
){
if
(
t
.
twoList
.
length
>
0
)
for
(
var
z
=
0
;
z
<
t
.
twoList
.
length
;
z
++
)
if
(
t
.
twoList
[
z
].
length
===
e
.
list
.
length
&&
t
.
twoList
[
z
][
0
][
0
].
number
>
e
.
list
[
0
].
two
[
0
].
number
){
n
=
{
type
:
r
,
poker
:
t
.
twoList
[
z
].
flat
(
1
),
list
:
t
.
twoList
[
z
].
map
((
function
(
e
){
return
{
two
:
e
}}))};
break
}}
else
if
(
"
threeList
"
===
r
){
if
(
t
.
threeList
.
length
>
0
)
for
(
var
A
=
0
;
A
<
t
.
threeList
.
length
;
A
++
)
if
(
t
.
threeList
[
A
].
length
===
e
.
list
.
length
&&
t
.
threeList
[
A
][
0
][
0
].
number
>
e
.
list
[
0
].
three
[
0
].
number
){
n
=
{
type
:
r
,
poker
:
t
.
threeList
[
A
].
flat
(
1
),
list
:
t
.
threeList
[
A
].
map
((
function
(
e
){
return
{
three
:
e
}}))};
break
}}
else
if
(
"
sx
"
===
r
&&
t
.
poker16
.
length
>
0
&&
t
.
poker17
.
length
>
0
)
return
{
type
:
r
,
poker
:
t
.
poker16
.
concat
(
t
.
poker17
),
sx
:
t
.
poker16
.
concat
(
t
.
poker17
)};
return
n
}},{
key
:
"
getSmallestObjByType
"
,
value
:
function
(
e
,
t
){
var
r
,
n
,
i
=
this
.
player
.
classifyObj
,
s
=
null
;
if
(
"
one
"
===
e
)
t
?(
r
=
i
.
poker17
.
length
>
0
?
i
.
poker17
:
i
.
poker16
.
length
>
0
?
i
.
poker16
:
i
.
poker15
.
length
>
0
?
i
.
poker15
.
slice
(
0
,
1
):
i
.
one
[
i
.
one
.
length
-
1
],
s
=
{
type
:
e
,
poker
:
r
,
one
:
r
}):(
i
.
one
.
length
>
0
?
n
=
i
.
one
[
0
]:
i
.
poker15
.
length
>
0
&&
i
.
poker15
.
length
<
4
?
n
=
i
.
poker15
.
slice
(
0
,
1
):
0
!==
i
.
poker17
.
length
&&
0
!==
i
.
poker16
.
length
||
(
i
.
poker16
.
length
>
0
?
n
=
i
.
poker16
:
i
.
poker17
.
length
>
0
&&
(
n
=
i
.
poker17
)),
n
&&
(
s
=
{
type
:
e
,
poker
:
n
,
one
:
n
}));
else
if
(
"
two
"
===
e
){
var
o
;
t
?
i
.
two
.
length
>
0
?
o
=
i
.
two
[
0
]:
2
===
i
.
poker15
.
length
&&
(
o
=
i
.
poker15
):
i
.
two
.
length
>
0
&&
(
o
=
i
.
two
[
0
]),
o
&&
(
s
=
{
type
:
e
,
poker
:
o
,
two
:
o
})}
else
if
(
"
three
"
===
e
){
var
l
;
t
?
i
.
three
.
length
>
0
?
l
=
i
.
three
[
0
]:
3
===
i
.
poker15
.
length
&&
(
l
=
i
.
poker15
):
i
.
three
.
length
>
0
&&
(
l
=
i
.
three
[
0
]),
l
&&
(
s
=
{
type
:
e
,
poker
:
l
,
three
:
l
})}
else
if
(
"
threeWithOne
"
===
e
){
var
a
,
h
;
i
.
three
.
length
>
0
&&
(
a
=
i
.
three
[
0
]),
i
.
one
.
length
>
0
&&
(
h
=
i
.
one
[
0
]),
t
&&
(
a
||
3
!==
i
.
poker15
.
length
||
(
a
=
i
.
poker15
),
h
||
1
!==
i
.
poker15
.
length
||
(
h
=
i
.
poker15
)),
a
&&
h
&&
(
s
=
{
type
:
e
,
poker
:
a
.
concat
(
h
),
three
:
a
,
one
:
h
})}
else
if
(
"
four
"
===
e
){
var
p
;
t
?
i
.
four
.
length
>
0
?
p
=
i
.
four
[
0
]:
4
===
i
.
poker15
.
length
&&
(
p
=
i
.
poker15
):
i
.
four
.
length
>
0
&&
(
p
=
i
.
four
[
0
]),
p
&&
(
s
=
{
type
:
e
,
poker
:
p
,
four
:
p
})}
else
if
(
"
threeWithTwo
"
===
e
){
var
u
,
g
;
i
.
three
.
length
>
0
&&
(
u
=
i
.
three
[
0
]),
i
.
two
.
length
>
0
&&
(
g
=
i
.
two
[
0
]),
t
&&
(
u
||
3
!==
i
.
poker15
.
length
||
(
u
=
i
.
poker15
),
g
||
2
!==
i
.
poker15
.
length
||
(
g
=
i
.
poker15
)),
u
&&
g
&&
(
s
=
{
type
:
e
,
poker
:
u
.
concat
(
g
),
three
:
u
,
two
:
g
})}
else
if
(
"
threeWithOneList
"
===
e
){
if
(
i
.
threeList
.
length
>
0
&&
i
.
one
.
length
>=
i
.
threeList
[
0
].
length
){
var
f
=
i
.
threeList
[
0
].
flat
(
1
),
y
=
i
.
one
.
slice
(
0
,
i
.
threeList
[
0
].
length
).
flat
(
1
);
s
=
{
type
:
e
,
poker
:
f
.
concat
(
y
),
list
:
i
.
threeList
[
0
].
map
((
function
(
e
){
return
{
three
:
e
}}))}}}
else
if
(
"
threeWithTwoList
"
===
e
){
if
(
i
.
threeList
.
length
>
0
&&
i
.
two
.
length
>=
i
.
threeList
[
0
].
length
){
var
c
=
i
.
threeList
[
0
].
flat
(
1
),
k
=
i
.
two
.
slice
(
0
,
i
.
threeList
[
0
].
length
).
flat
(
1
);
s
=
{
type
:
e
,
poker
:
c
.
concat
(
k
),
list
:
i
.
threeList
[
0
].
map
((
function
(
e
){
return
{
three
:
e
}}))}}}
else
if
(
"
oneList
"
===
e
)
i
.
oneList
.
length
>
0
&&
(
s
=
{
type
:
e
,
poker
:
i
.
oneList
[
0
].
flat
(
1
),
list
:
i
.
oneList
[
0
].
map
((
function
(
e
){
return
{
one
:
e
}}))});
else
if
(
"
twoList
"
===
e
)
i
.
twoList
.
length
>
0
&&
(
s
=
{
type
:
e
,
poker
:
i
.
twoList
[
0
].
flat
(
1
),
list
:
i
.
twoList
[
0
].
map
((
function
(
e
){
return
{
two
:
e
}}))});
else
if
(
"
threeList
"
===
e
)
i
.
threeList
.
length
>
0
&&
(
s
=
{
type
:
e
,
poker
:
i
.
threeList
[
0
].
flat
(
1
),
list
:
i
.
threeList
[
0
].
map
((
function
(
e
){
return
{
three
:
e
}}))});
else
if
(
"
sx
"
===
e
&&
i
.
poker16
.
length
>
0
&&
i
.
poker17
.
length
>
0
)
return
{
type
:
e
,
poker
:
i
.
poker16
.
concat
(
i
.
poker17
),
sx
:
i
.
poker16
.
concat
(
i
.
poker17
)};
return
s
}},{
key
:
"
getBySplit
"
,
value
:
function
(
e
){
for
(
var
t
=
this
.
player
.
pokerList
,
r
=
t
[
0
],
n
=
[
r
],
i
=
[],
s
=
1
;
s
<
t
.
length
;
s
++
)
t
[
s
].
number
!==
r
.
number
?(
i
.
push
(
n
),
n
=
[
t
[
s
]]):
n
.
push
(
t
[
s
]),
r
=
t
[
s
];
i
.
push
(
n
);
for
(
var
o
=
[],
l
=
[],
a
=
[],
h
=
[],
p
=
0
;
p
<
i
.
length
;
p
++
)
3
===
i
[
p
].
length
?
a
.
push
(
i
[
p
]):
2
===
i
[
p
].
length
?
l
.
push
(
i
[
p
]):
1
===
i
[
p
].
length
?
o
.
push
(
i
[
p
]):
4
===
i
[
p
].
length
&&
h
.
push
(
i
[
p
]);
var
u
=
e
.
type
,
g
=
null
;
if
(
"
two
"
===
u
){
if
(
l
.
length
>
0
){
for
(
var
f
=
0
;
f
<
l
.
length
;
f
++
)
if
(
l
[
f
][
0
].
number
>
e
.
two
[
0
].
number
){
g
=
{
type
:
u
,
poker
:
l
[
f
],
two
:
l
[
f
]};
break
}}
else
if
(
a
.
length
>
0
)
for
(
var
y
=
0
;
y
<
a
.
length
;
y
++
)
if
(
a
[
y
][
0
].
number
>
e
.
two
[
0
].
number
){
var
c
=
a
[
y
].
slice
(
0
,
2
);
g
=
{
type
:
u
,
poker
:
c
,
two
:
c
};
break
}}
else
if
(
"
threeWithOne
"
===
u
){
if
(
a
.
length
>
0
)
for
(
var
k
=
0
;
k
<
a
.
length
;
k
++
)
if
(
a
[
k
][
0
].
number
>
e
.
three
[
0
].
number
){
var
b
=
void
0
;
if
(
o
.
length
>
0
)
b
=
o
[
0
];
else
if
(
l
.
length
>
0
)
b
=
l
[
0
].
slice
(
0
,
1
);
else
if
(
a
.
length
>
0
)
for
(
var
m
=
0
;
m
<
a
.
length
;
m
++
)
m
!==
k
&&
(
b
=
a
[
m
].
slice
(
0
,
1
));
b
&&
(
g
=
{
type
:
u
,
poker
:
a
[
k
].
concat
(
b
),
three
:
a
[
k
],
one
:
b
});
break
}}
else
if
(
"
threeWithTwo
"
===
u
){
if
(
a
.
length
>
0
)
for
(
var
v
=
0
;
v
<
a
.
length
;
v
++
)
if
(
a
[
v
][
0
].
number
>
e
.
three
[
0
].
number
){
var
d
=
void
0
;
if
(
l
.
length
>
0
)
d
=
l
[
0
];
else
if
(
a
.
length
>
0
)
for
(
var
L
=
0
;
L
<
a
.
length
;
L
++
)
L
!==
v
&&
(
d
=
a
[
L
].
slice
(
0
,
2
));
d
&&
(
g
=
{
type
:
u
,
poker
:
a
[
v
].
concat
(
d
),
three
:
a
[
v
],
two
:
d
});
break
}}
else
if
(
"
threeWithOneList
"
===
u
){
if
(
a
.
length
>=
e
.
list
.
length
)
for
(
var
x
=
0
;
x
<
a
.
length
-
e
.
list
.
length
+
1
;
x
++
)
if
(
a
[
x
][
0
].
number
>
e
.
list
[
0
].
three
[
0
].
number
&&
a
[
x
][
0
].
number
+
e
.
list
.
length
-
1
===
a
[
x
+
e
.
list
.
length
-
1
][
0
].
number
&&
a
[
x
+
e
.
list
.
length
-
1
][
0
].
number
<=
14
){
for
(
var
w
=
[],
S
=
0
;
S
<
o
.
length
&&
w
.
length
<
e
.
list
.
length
;
S
++
)
w
.
push
(
o
[
S
]);
for
(
var
O
=
0
;
O
<
l
.
length
&&
w
.
length
<
e
.
list
.
length
;
O
++
)
w
.
push
(
l
[
O
].
slice
(
0
,
1
)),
w
.
length
<
e
.
list
.
length
&&
w
.
push
(
l
[
O
].
slice
(
1
,
2
));
for
(
var
j
=
0
;
j
<
a
.
length
&&
w
.
length
<
e
.
list
.
length
;
j
++
)
j
>=
x
&&
j
<=
x
+
e
.
list
.
length
-
1
||
(
w
.
push
(
a
[
j
].
slice
(
0
,
1
)),
w
.
length
<
e
.
list
.
length
&&
w
.
push
(
a
[
j
].
slice
(
1
,
2
)),
w
.
length
<
e
.
list
.
length
&&
w
.
push
(
a
[
j
].
slice
(
2
,
3
)));
if
(
w
.
length
===
e
.
list
.
length
){
for
(
var
P
=
[],
_
=
[],
T
=
0
;
T
<
e
.
list
.
length
;
T
++
){
P
.
concat
(
a
[
x
+
T
]),
P
.
concat
(
w
[
x
]);
var
B
=
{
three
:
a
[
x
+
T
],
one
:
w
[
x
]};
_
.
push
(
B
)}
g
=
{
type
:
u
,
poker
:
P
,
list
:
_
}}
break
}}
else
if
(
"
threeWithTwoList
"
===
u
){
if
(
a
.
length
>=
e
.
list
.
length
)
for
(
var
W
=
0
;
W
<
a
.
length
-
e
.
list
.
length
+
1
;
W
++
)
if
(
a
[
W
][
0
].
number
>
e
.
list
[
0
].
three
[
0
].
number
&&
a
[
W
][
0
].
number
+
e
.
list
.
length
-
1
===
a
[
W
+
e
.
list
.
length
-
1
][
0
].
number
&&
a
[
W
+
e
.
list
.
length
-
1
][
0
].
number
<=
14
){
for
(
var
N
=
[],
z
=
0
;
z
<
l
.
length
&&
N
.
length
<
e
.
list
.
length
;
z
++
)
N
.
push
(
l
);
for
(
var
A
=
0
;
A
<
a
.
length
&&
N
.
length
<
e
.
list
.
length
;
A
++
)
A
>=
W
&&
A
<=
W
+
e
.
list
.
length
-
1
||
N
.
push
(
a
[
A
].
slice
(
0
,
2
));
if
(
N
.
length
===
e
.
list
.
length
){
for
(
var
M
=
[],
F
=
[],
D
=
0
;
D
<
e
.
list
.
length
;
D
++
){
M
.
concat
(
a
[
W
+
D
]),
M
.
concat
(
N
[
W
]);
var
C
=
{
three
:
a
[
W
+
D
],
two
:
N
[
W
]};
F
.
push
(
C
)}
g
=
{
type
:
u
,
poker
:
M
,
list
:
F
}}
break
}}
else
if
(
"
oneList
"
===
u
){
if
(
o
.
length
>=
e
.
list
.
length
)
for
(
var
I
=
0
;
I
<
o
.
length
-
e
.
list
.
length
+
1
;
I
++
)
if
(
o
[
I
][
0
].
number
>
e
.
list
[
0
].
one
[
0
].
number
&&
o
[
I
][
0
].
number
+
e
.
list
.
length
-
1
===
o
[
I
+
e
.
list
.
length
-
1
][
0
].
number
&&
o
[
I
+
e
.
list
.
length
-
1
][
0
].
number
<=
14
){
var
R
=
o
.
slice
(
I
,
I
+
e
.
list
.
length
);
g
=
{
type
:
u
,
poker
:
R
.
flat
(
1
),
list
:
R
.
map
((
function
(
e
){
return
{
one
:
e
}}))};
break
}}
else
if
(
"
twoList
"
===
u
){
if
(
l
.
length
>=
e
.
list
.
length
)
for
(
var
G
=
0
;
G
<
l
.
length
-
e
.
list
.
length
+
1
;
G
++
)
if
(
l
[
G
][
0
].
number
>
e
.
list
[
0
].
two
[
0
].
number
&&
l
[
G
][
0
].
number
+
e
.
list
.
length
-
1
===
l
[
G
+
e
.
list
.
length
-
1
][
0
].
number
&&
l
[
G
+
e
.
list
.
length
-
1
][
0
].
number
<=
14
){
var
J
=
l
.
slice
(
G
,
G
+
e
.
list
.
length
);
g
=
{
type
:
u
,
poker
:
J
.
flat
(
1
),
list
:
J
.
map
((
function
(
e
){
return
{
two
:
e
}}))};
break
}}
else
if
(
"
threeList
"
===
u
&&
a
.
length
>=
e
.
list
.
length
)
for
(
var
$
=
0
;
$
<
a
.
length
-
e
.
list
.
length
+
1
;
$
++
)
if
(
a
[
$
][
0
].
number
>
e
.
list
[
0
].
two
[
0
].
number
&&
a
[
$
][
0
].
number
+
e
.
list
.
length
-
1
===
a
[
$
+
e
.
list
.
length
-
1
][
0
].
number
&&
a
[
$
+
e
.
list
.
length
-
1
][
0
].
number
<=
14
){
var
E
=
a
.
slice
(
$
,
$
+
e
.
list
.
length
);
g
=
{
type
:
u
,
poker
:
E
.
flat
(
1
),
list
:
E
.
map
((
function
(
e
){
return
{
three
:
e
}}))};
break
}
return
g
}},{
key
:
"
sortFunction
"
,
value
:
function
(
e
,
t
){
return
e
.
number
-
t
.
number
}},{
key
:
"
sortArray
"
,
value
:
function
(
e
,
t
){
return
e
[
0
].
number
-
t
[
0
].
number
}},{
key
:
"
sortList
"
,
value
:
function
(
e
,
t
){
return
e
[
0
][
0
].
number
-
t
[
0
][
0
].
number
}}]),
e
}()),
f
=
g
,
y
=
function
(){
function
e
(
t
){
Object
(
a
[
"
a
"
])(
this
,
e
),
t
=
t
||
{},
this
.
pokerList
=
[],
this
.
name
=
t
.
name
||
"
noName
"
+
Math
.
random
(),
this
.
type
=
t
.
type
||
"
nongmin
"
,
this
.
last
=
null
,
this
.
next
=
null
,
this
.
isRobot
=
t
.
isRobot
,
this
.
game
=
t
.
game
,
this
.
ai
=
new
f
({
player
:
this
,
game
:
t
.
game
}),
this
.
classifyObj
=
null
,
this
.
lastSendObj
=
null
}
return
Object
(
h
[
"
a
"
])(
e
,[{
key
:
"
getClassifyObj
"
,
value
:
function
(){
this
.
classifyObj
=
this
.
ai
.
getClassifyObj
(
this
.
pokerList
),
console
.
log
(
this
.
classifyObj
)}},{
key
:
"
addPoker
"
,
value
:
function
(
e
){
this
.
pokerList
.
push
(
e
)}},{
key
:
"
sortPoker
"
,
value
:
function
(){
this
.
pokerList
.
sort
(
this
.
sortFunction
)}},{
key
:
"
sortFunction
"
,
value
:
function
(
e
,
t
){
return
e
.
number
-
t
.
number
}},{
key
:
"
getLastObj
"
,
value
:
function
(){
var
e
=
this
.
last
.
lastSendObj
;
return
!!
(
e
&&
"
pass
"
!==
e
.
type
||
(
e
=
this
.
next
.
lastSendObj
,
e
&&
"
pass
"
!==
e
.
type
))
&&
e
}},{
key
:
"
playByAI
"
,
value
:
function
(){
var
e
=
this
;
e
.
getClassifyObj
(),
setTimeout
((
function
(){
var
t
=
e
.
getLastObj
();
t
?
e
.
ai
.
playByObj
(
t
):
e
.
ai
.
playByAllType
()}),
1
e3
)}},{
key
:
"
sendPoker
"
,
value
:
function
(
e
){
e
.
player
=
this
,
this
.
game
.
clearDesk
(),
this
.
lastSendObj
=
e
,
this
.
game
.
deskPokerObj
=
e
,
this
.
game
.
next
()}},{
key
:
"
deleteFromPokerListAndSendByObj
"
,
value
:
function
(
e
){
var
t
=
[];
if
(
"
pass
"
===
e
.
type
)
return
this
.
sendPoker
(
e
),
!
0
;
for
(
var
r
=
e
.
poker
,
n
=
0
;
n
<
r
.
length
;
n
++
){
var
i
=
this
.
getAndDeleteOnePokerByNumber
(
r
[
n
].
number
);
if
(
!
i
)
return
this
.
listBackToPokerList
(
t
),
!
1
;
t
.
push
(
i
)}
return
this
.
sendPoker
(
e
),
!
0
}},{
key
:
"
getListByList
"
,
value
:
function
(
e
){
var
t
=
[];
if
(
"
pass
"
===
e
[
0
])
return
[
"
pass
"
];
for
(
var
r
=
0
;
r
<
e
.
length
;
r
++
){
var
n
=
e
[
r
],
i
=
this
.
getAndDeleteOnePokerByNumber
(
n
.
number
);
if
(
!
i
)
return
this
.
listBackToPokerList
(
t
),
!
1
;
t
.
push
(
i
)}
return
t
}},{
key
:
"
getListByString
"
,
value
:
function
(
e
){
var
t
=
[];
if
(
"
pass
"
===
e
)
return
[
"
pass
"
];
for
(
var
r
=
0
;
r
<
e
.
length
;
r
++
){
var
n
=
e
[
r
],
i
=
u
.
textToNumber
(
n
),
s
=
this
.
getAndDeleteOnePokerByNumber
(
i
);
if
(
!
s
)
return
this
.
listBackToPokerList
(
t
),
!
1
;
t
.
push
(
s
)}
return
t
}},{
key
:
"
listBackToPokerList
"
,
value
:
function
(
e
){
while
(
e
.
length
>
0
){
var
t
=
e
.
splice
(
0
,
1
)[
0
];
this
.
pokerList
.
push
(
t
)}
this
.
sortPoker
()}},{
key
:
"
handleList
"
,
value
:
function
(
e
){
if
(
e
){
var
t
=
u
.
getObjByPokerList
(
e
);
if
(
t
){
if
(
"
pass
"
===
t
.
type
)
return
this
.
sendPoker
(
t
),
!
0
;
var
r
=
this
.
getLastObj
();
if
(
r
){
if
(
r
.
type
===
t
.
type
){
var
n
=
this
.
compareTwoObj
(
t
,
r
);
return
n
?(
this
.
sendPoker
(
t
),
!
0
):(
this
.
listBackToPokerList
(
e
),
alert
(
"
必须大于
"
+
u
.
pokerListToString
(
r
.
poker
)),
!
1
)}
return
"
sx
"
===
t
.
type
||
"
four
"
===
t
.
type
&&
"
sx
"
!==
r
.
type
?(
this
.
sendPoker
(
t
),
!
0
):(
this
.
listBackToPokerList
(
e
),
alert
(
"
牌型不是
"
+
r
.
type
+
"
!
"
),
!
1
)}
return
this
.
sendPoker
(
t
),
!
0
}
return
this
.
listBackToPokerList
(
e
),
alert
(
"
牌型错误!
"
),
!
1
}
return
alert
(
"
你没有此牌!
"
),
!
1
}},{
key
:
"
playByPokerList
"
,
value
:
function
(
e
){
if
(
this
.
game
.
currentPlayer
!==
this
)
return
alert
(
"
请等待
"
+
this
.
game
.
currentPlayer
.
name
+
"
出牌
"
),
!
1
;
var
t
=
this
.
getListByList
(
e
);
return
this
.
handleList
(
t
)}},{
key
:
"
playByString
"
,
value
:
function
(
e
){
if
(
this
.
game
.
currentPlayer
!==
this
)
return
alert
(
"
请等待
"
+
this
.
game
.
currentPlayer
.
name
+
"
出牌
"
),
!
1
;
var
t
=
this
.
getListByString
(
e
);
return
this
.
handleList
(
t
)}},{
key
:
"
compareTwoObj
"
,
value
:
function
(
e
,
t
){
return
(
!
e
.
list
||!
t
.
list
||
e
.
list
.
length
===
t
.
list
.
length
)
&&
(
"
one
"
===
e
.
type
?
e
.
one
[
0
].
number
>
t
.
one
[
0
].
number
:
"
two
"
===
e
.
type
?
e
.
two
[
0
].
number
>
t
.
two
[
0
].
number
:
"
three
"
===
e
.
type
||
"
threeWithOne
"
===
e
.
type
||
"
threeWithTwo
"
===
e
.
type
?
e
.
three
[
0
].
number
>
t
.
three
[
0
].
number
:
"
fourWithOne
"
===
e
.
type
||
"
fourWithTwo
"
===
e
.
type
?
e
.
four
[
0
].
number
>
t
.
four
[
0
].
number
:
"
threeWithOneList
"
===
e
.
type
||
"
threeWithTwoList
"
===
e
.
type
?
e
.
list
[
0
].
three
[
0
].
number
>
t
.
list
[
0
].
three
[
0
].
number
:
"
oneList
"
===
e
.
type
?
e
.
list
[
0
].
one
[
0
].
number
>
t
.
list
[
0
].
one
[
0
].
number
:
"
twoList
"
===
e
.
type
?
e
.
list
[
0
].
two
[
0
].
number
>
t
.
list
[
0
].
two
[
0
].
number
:
"
threeList
"
===
e
.
type
?
e
.
list
[
0
].
three
[
0
].
number
>
t
.
list
[
0
].
three
[
0
].
number
:
"
four
"
===
e
.
type
?
e
.
four
[
0
].
number
>
t
.
four
[
0
].
number
:
void
0
)}},{
key
:
"
getAndDeleteOnePokerByNumber
"
,
value
:
function
(
e
){
for
(
var
t
=
0
;
t
<
this
.
pokerList
.
length
;
t
++
)
if
(
this
.
pokerList
[
t
].
number
===
e
)
return
this
.
pokerList
.
splice
(
t
,
1
)[
0
];
return
!
1
}},{
key
:
"
pokerListToString
"
,
value
:
function
(){
var
e
=
u
.
pokerListToString
(
this
.
pokerList
);
return
e
}},{
key
:
"
lastSendObjToString
"
,
value
:
function
(){
if
(
!
this
.
lastSendObj
)
return
""
;
var
e
=
u
.
pokerListToString
(
this
.
lastSendObj
.
poker
);
return
e
}}]),
e
}(),
c
=
y
,
k
=
function
(){
function
e
(){
Object
(
a
[
"
a
"
])(
this
,
e
),
this
.
playerList
=
[],
this
.
pokerList
=
[],
this
.
deskPokerObj
=
null
,
this
.
oldPokerList
=
[],
this
.
currentPlayer
=
[],
this
.
dizhu
=
null
,
this
.
MaxSecond
=
60
,
this
.
second
=
this
.
MaxSecond
,
this
.
isOver
=!
0
,
this
.
init
()}
return
Object
(
h
[
"
a
"
])(
e
,[{
key
:
"
init
"
,
value
:
function
(){
this
.
initPokerList
(),
this
.
initPlayerList
(),
this
.
sendPoker
(),
this
.
start
()}},{
key
:
"
resetTime
"
,
value
:
function
(){
this
.
second
=
this
.
MaxSecond
}},{
key
:
"
timeLoop
"
,
value
:
function
(){
if
(
!
this
.
isOver
){
this
.
second
--
,
0
===
this
.
second
&&
this
.
timeout
();
var
e
=
this
;
setTimeout
((
function
(){
e
.
timeLoop
()}),
1
e3
)}}},{
key
:
"
timeout
"
,
value
:
function
(){
this
.
currentPlayer
.
playByString
(
"
pass
"
)}},{
key
:
"
start
"
,
value
:
function
(){
this
.
isOver
=!
1
,
this
.
timeLoop
(),
this
.
currentPlayer
=
this
.
dizhu
,
this
.
currentPlayer
.
isRobot
&&
this
.
currentPlayer
.
playByAI
()}},{
key
:
"
next
"
,
value
:
function
(){
var
e
=
this
.
checkGameOver
();
e
?
this
.
gameOver
():(
this
.
resetTime
(),
this
.
currentPlayer
=
this
.
currentPlayer
.
next
,
this
.
currentPlayer
.
isRobot
&&
this
.
currentPlayer
.
playByAI
())}},{
key
:
"
gameOver
"
,
value
:
function
(){
alert
(
"
游戏结束!
"
+
this
.
currentPlayer
.
name
+
"
[
"
+
this
.
currentPlayer
.
type
+
"
] 胜!
"
),
this
.
isOver
=!
0
}},{
key
:
"
checkGameOver
"
,
value
:
function
(){
if
(
0
===
this
.
currentPlayer
.
pokerList
.
length
)
return
!
0
}},{
key
:
"
clearDesk
"
,
value
:
function
(){
this
.
deskPokerObj
&&
(
this
.
oldPokerList
.
push
(
this
.
deskPokerObj
),
this
.
deskPokerObj
=
null
)}},{
key
:
"
sendPoker
"
,
value
:
function
(){
var
e
=
this
.
playerList
[
0
];
do
{
var
t
=
this
.
getRandomIntInclusive
(
0
,
this
.
pokerList
.
length
-
1
),
r
=
this
.
pokerList
.
splice
(
t
,
1
)[
0
];
e
.
addPoker
(
r
),
e
=
e
.
next
}
while
(
this
.
pokerList
.
length
>
3
);
do
{
var
n
=
this
.
pokerList
.
splice
(
0
,
1
)[
0
];
this
.
dizhu
.
addPoker
(
n
)}
while
(
this
.
pokerList
.
length
>
0
);
for
(
var
i
=
0
;
i
<
this
.
playerList
.
length
;
i
++
)
this
.
playerList
[
i
].
sortPoker
()}},{
key
:
"
initPlayerList
"
,
value
:
function
(){
this
.
playerList
=
[];
var
e
=
new
c
({
name
:
"
player
"
,
isRobot
:
!
1
,
game
:
this
}),
t
=
new
c
({
name
:
"
robot1
"
,
isRobot
:
!
0
,
game
:
this
}),
r
=
new
c
({
name
:
"
robot2
"
,
isRobot
:
!
0
,
game
:
this
});
this
.
playerList
=
[
e
,
t
,
r
],
this
.
playerList
[
0
].
next
=
this
.
playerList
[
1
],
this
.
playerList
[
1
].
next
=
this
.
playerList
[
2
],
this
.
playerList
[
2
].
next
=
this
.
playerList
[
0
],
this
.
playerList
[
0
].
last
=
this
.
playerList
[
2
],
this
.
playerList
[
1
].
last
=
this
.
playerList
[
0
],
this
.
playerList
[
2
].
last
=
this
.
playerList
[
1
];
var
n
=
this
.
getRandomIntInclusive
(
0
,
2
);
this
.
playerList
[
n
].
type
=
"
dizhu
"
,
this
.
dizhu
=
this
.
playerList
[
n
]}},{
key
:
"
initPokerList
"
,
value
:
function
(){
this
.
pokerList
=
[];
for
(
var
e
=
3
;
e
<=
15
;
e
++
)
for
(
var
t
=
0
;
t
<
4
;
t
++
){
var
r
=
new
u
({
number
:
e
,
type
:
t
});
this
.
pokerList
.
push
(
r
)}
for
(
var
n
=
16
;
n
<=
17
;
n
++
){
var
i
=
new
u
({
number
:
n
});
this
.
pokerList
.
push
(
i
)}}},{
key
:
"
pokerListToString
"
,
value
:
function
(){
var
e
=
""
;
e
+=
u
.
pokerListToString
(
this
.
pokerList
),
e
+=
"
\n
"
;
for
(
var
t
=
0
;
t
<
this
.
oldPokerList
.
length
;
t
++
)
e
+=
u
.
pokerListToString
(
this
.
oldPokerList
[
t
].
poker
),
t
<
this
.
oldPokerList
.
length
-
1
&&
(
e
+=
"
,
"
);
return
e
+=
"
\n
"
,
e
+=
this
.
deskPokerObj
?
u
.
pokerListToString
(
this
.
deskPokerObj
.
poker
):
""
,
e
}},{
key
:
"
getRandomIntInclusive
"
,
value
:
function
(
e
,
t
){
return
Math
.
floor
(
Math
.
random
()
*
(
t
-
e
+
1
))
+
e
}}]),
e
}(),
b
=
k
,
m
=
{
name
:
"
HelloWorld
"
,
data
:
function
(){
return
{
data
:
"
fuck1
"
,
game
:
new
b
,
playerStr
:
""
}},
computed
:{
player2Str
:
function
(){
var
e
=
this
.
game
,
t
=
2
;
return
[
e
.
playerList
[
t
].
name
+
"
:
"
+
e
.
playerList
[
t
].
type
+
"
:
"
+
e
.
playerList
[
t
].
pokerList
.
length
,
e
.
playerList
[
t
].
pokerListToString
(),
"
last :
"
+
e
.
playerList
[
t
].
lastSendObjToString
()]},
player1Str
:
function
(){
var
e
=
this
.
game
,
t
=
1
;
return
[
e
.
playerList
[
t
].
name
+
"
:
"
+
e
.
playerList
[
t
].
type
+
"
:
"
+
e
.
playerList
[
t
].
pokerList
.
length
,
e
.
playerList
[
t
].
pokerListToString
(),
"
last :
"
+
e
.
playerList
[
t
].
lastSendObjToString
()]},
player0Str
:
function
(){
var
e
=
this
.
game
,
t
=
0
;
return
[
e
.
playerList
[
t
].
name
+
"
:
"
+
e
.
playerList
[
t
].
type
+
"
:
"
+
e
.
playerList
[
t
].
pokerList
.
length
,
e
.
playerList
[
t
].
pokerListToString
(),
"
last :
"
+
e
.
playerList
[
t
].
lastSendObjToString
()]},
deskStr
:
function
(){
var
e
=
this
.
game
;
return
[
"
desk
"
,
e
.
pokerListToString
()]}},
mounted
:
function
(){
this
.
data
=
this
.
game
.
playerList
[
1
].
name
},
methods
:{
reDraw
:
function
(){},
sendPoker
:
function
(){
var
e
=
this
.
game
,
t
=
e
.
playerList
[
0
].
playByString
(
this
.
playerStr
);
t
&&
(
this
.
playerStr
=
""
)},
pass
:
function
(){
this
.
game
.
playerList
[
0
].
playByString
(
"
pass
"
)},
reStart
:
function
(){
this
.
game
=
new
b
,
this
.
playerStr
=
""
}}},
v
=
m
,
d
=
r
(
"
2877
"
),
L
=
Object
(
d
[
"
a
"
])(
v
,
o
,
l
,
!
1
,
null
,
"
62298b0c
"
,
null
),
x
=
L
.
exports
,
w
=
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
n
=
e
.
_self
.
_c
||
t
;
return
n
(
"
div
"
,{
staticStyle
:{
"
user-select
"
:
"
none
"
,
position
:
"
fixed
"
,
left
:
"
0
"
,
right
:
"
0
"
,
top
:
"
0
"
,
bottom
:
"
0
"
,
"
background-repeat
"
:
"
no-repeat
"
,
"
background-size
"
:
"
cover
"
},
style
:{
backgroundImage
:
"
url(
"
+
r
(
"
00a8
"
)
+
"
)
"
}},[
n
(
"
div
"
,{
directives
:[{
name
:
"
show
"
,
rawName
:
"
v-show
"
,
value
:
!
1
,
expression
:
"
false
"
}],
staticStyle
:{
width
:
"
300px
"
,
height
:
"
300px
"
,
float
:
"
left
"
,
position
:
"
fixed
"
,
left
:
"
0
"
,
top
:
"
0px
"
,
"
background-color
"
:
"
aliceblue
"
,
"
text-align
"
:
"
center
"
}},[
n
(
"
span
"
,[
e
.
_v
(
"
手牌:
"
+
e
.
_s
(
e
.
player2Str
[
1
])
+
"
"
)])]),
n
(
"
div
"
,{
directives
:[{
name
:
"
show
"
,
rawName
:
"
v-show
"
,
value
:
!
1
,
expression
:
"
false
"
}],
staticStyle
:{
width
:
"
300px
"
,
height
:
"
300px
"
,
float
:
"
left
"
,
position
:
"
fixed
"
,
right
:
"
0
"
,
top
:
"
0px
"
,
"
background-color
"
:
"
aliceblue
"
,
"
text-align
"
:
"
center
"
}},[
n
(
"
span
"
,[
e
.
_v
(
"
手牌:
"
+
e
.
_s
(
e
.
player1Str
[
1
])
+
"
"
)])]),
n
(
"
div
"
,{
directives
:[{
name
:
"
show
"
,
rawName
:
"
v-show
"
,
value
:
!
1
,
expression
:
"
false
"
}],
staticStyle
:{
width
:
"
300px
"
,
height
:
"
300px
"
,
float
:
"
left
"
,
position
:
"
fixed
"
,
left
:
"
600px
"
,
top
:
"
0px
"
,
"
background-color
"
:
"
aliceblue
"
,
"
text-align
"
:
"
center
"
}},[
n
(
"
div
"
,{
staticStyle
:{
width
:
"
300px
"
,
"
word-wrap
"
:
"
break-word
"
}},[
e
.
_v
(
"
已出的牌:
"
),
n
(
"
br
"
),
e
.
_v
(
"
"
+
e
.
_s
(
e
.
deskStr
[
1
])
+
"
"
)])]),
n
(
"
div
"
,{
staticStyle
:{
position
:
"
fixed
"
,
left
:
"
10px
"
,
bottom
:
"
10px
"
}},[
n
(
"
button
"
,{
staticStyle
:{
height
:
"
50px
"
,
"
font-size
"
:
"
30px
"
},
on
:{
click
:
e
.
reStart
}},[
e
.
_v
(
"
开始新一局
"
)])]),
n
(
"
div
"
,{
staticStyle
:{
color
:
"
white
"
,
position
:
"
fixed
"
,
bottom
:
"
0
"
,
width
:
"
100%
"
,
height
:
"
200px
"
,
"
line-height
"
:
"
200px
"
},
style
:{
marginLeft
:
e
.
playerMarginLeft
-
150
+
"
px
"
}},[
e
.
_v
(
"
你是
"
),
n
(
"
span
"
,{
staticStyle
:{
color
:
"
red
"
,
"
font-size
"
:
"
20px
"
}},[
e
.
_v
(
e
.
_s
(
"
nongmin
"
===
e
.
game
.
playerList
[
0
].
type
?
"
农民
"
:
"
地主
"
))])]),
n
(
"
div
"
,{
staticStyle
:{
position
:
"
fixed
"
,
bottom
:
"
0
"
,
width
:
"
100%
"
,
height
:
"
200px
"
},
style
:{
marginLeft
:
e
.
playerMarginLeft
+
"
px
"
}},
e
.
_l
(
e
.
game
.
playerList
[
0
].
pokerList
,(
function
(
t
){
return
n
(
"
div
"
,{
staticClass
:
"
poker pokerDesk
"
,
class
:{
selected
:
t
.
selected
,
s
:
16
===
t
.
number
,
x
:
17
===
t
.
number
},
on
:{
mouseenter
:
function
(
r
){
return
e
.
enter
(
r
,
t
)},
mousedown
:
function
(
r
){
return
e
.
pickPoker
(
t
)}}},[
n
(
"
span
"
,{
directives
:[{
name
:
"
show
"
,
rawName
:
"
v-show
"
,
value
:
t
.
number
<
16
,
expression
:
"
item.number<16
"
}]},[
e
.
_v
(
"
"
+
e
.
_s
(
t
.
text
)
+
"
"
)])])})),
0
),
n
(
"
div
"
,{
staticStyle
:{
position
:
"
fixed
"
,
bottom
:
"
200px
"
,
width
:
"
100%
"
,
height
:
"
100px
"
,
"
text-align
"
:
"
left
"
}},[
n
(
"
div
"
,{
staticStyle
:{
width
:
"
400px
"
,
height
:
"
60px
"
},
style
:{
marginLeft
:
e
.
buttonMarginLeft
+
"
px
"
}},[
n
(
"
button
"
,{
staticStyle
:{
height
:
"
60px
"
,
"
border-radius
"
:
"
4px
"
,
float
:
"
left
"
,
"
font-size
"
:
"
40px
"
,
"
background-color
"
:
"
red
"
},
on
:{
click
:
e
.
pass
}},[
e
.
_v
(
"
不出
"
)]),
n
(
"
button
"
,{
staticStyle
:{
height
:
"
60px
"
,
"
border-radius
"
:
"
4px
"
,
float
:
"
right
"
,
"
font-size
"
:
"
40px
"
,
"
background-color
"
:
"
lawngreen
"
},
on
:{
click
:
e
.
sendPoker2
}},[
e
.
_v
(
"
出牌
"
)]),
n
(
"
div
"
,{
directives
:[{
name
:
"
show
"
,
rawName
:
"
v-show
"
,
value
:
e
.
game
.
currentPlayer
===
e
.
game
.
playerList
[
0
],
expression
:
"
game.currentPlayer===game.playerList[0]
"
}],
staticStyle
:{
color
:
"
red
"
,
width
:
"
150px
"
,
border
:
"
solid
"
,
"
border-radius
"
:
"
4px
"
,
float
:
"
left
"
,
"
margin-left
"
:
"
20px
"
}},[
e
.
_v
(
"
请在
"
+
e
.
_s
(
e
.
game
.
second
)
+
"
秒内出牌
"
)])])]),
e
.
game
.
playerList
[
0
].
lastSendObj
&&
e
.
game
.
playerList
[
0
].
lastSendObj
.
poker
[
0
].
text
?
n
(
"
div
"
,{
staticStyle
:{
position
:
"
fixed
"
,
bottom
:
"
350px
"
,
width
:
"
100%
"
,
height
:
"
200px
"
},
style
:{
marginLeft
:
e
.
deskPokerMarginLeft
+
"
px
"
}},
e
.
_l
(
e
.
game
.
playerList
[
0
].
lastSendObj
.
poker
,(
function
(
t
){
return
n
(
"
div
"
,{
staticClass
:
"
pokerDesk
"
,
class
:{
s
:
16
===
t
.
number
,
x
:
17
===
t
.
number
}},[
n
(
"
span
"
,{
directives
:[{
name
:
"
show
"
,
rawName
:
"
v-show
"
,
value
:
t
.
number
<
16
,
expression
:
"
item.number<16
"
}]},[
e
.
_v
(
"
"
+
e
.
_s
(
t
.
text
)
+
"
"
)])])})),
0
):
e
.
_e
(),
e
.
game
.
playerList
[
0
].
lastSendObj
&&!
e
.
game
.
playerList
[
0
].
lastSendObj
.
poker
[
0
].
text
?
n
(
"
div
"
,{
staticStyle
:{
position
:
"
fixed
"
,
bottom
:
"
350px
"
,
width
:
"
100%
"
,
height
:
"
200px
"
},
style
:{
marginLeft
:
e
.
deskPokerMarginLeft
+
"
px
"
}},[
n
(
"
div
"
,{
staticStyle
:{
height
:
"
100%
"
,
width
:
"
100px
"
,
float
:
"
left
"
,
"
margin-left
"
:
"
-50px
"
,
"
font-size
"
:
"
50px
"
,
color
:
"
#ff0000
"
}},[
e
.
_v
(
"
pass
"
)])]):
e
.
_e
(),
n
(
"
div
"
,{
staticStyle
:{
position
:
"
fixed
"
,
top
:
"
40px
"
,
left
:
"
20px
"
,
height
:
"
200px
"
,
width
:
"
100px
"
,
border
:
"
solid 1px
"
,
"
border-radius
"
:
"
8px
"
,
"
background-color
"
:
"
azure
"
,
"
text-align
"
:
"
center
"
}},[
n
(
"
p
"
,{
staticStyle
:{
color
:
"
red
"
,
"
font-size
"
:
"
20px
"
}},[
e
.
_v
(
"
"
+
e
.
_s
(
"
nongmin
"
===
e
.
game
.
playerList
[
2
].
type
?
"
农民
"
:
"
地主
"
)
+
"
"
)]),
n
(
"
p
"
,[
e
.
_v
(
"
"
+
e
.
_s
(
e
.
game
.
playerList
[
2
].
name
)
+
"
"
)]),
n
(
"
p
"
,[
e
.
_v
(
"
剩余
"
+
e
.
_s
(
e
.
game
.
playerList
[
2
].
pokerList
.
length
)
+
"
张
"
)]),
n
(
"
div
"
,{
directives
:[{
name
:
"
show
"
,
rawName
:
"
v-show
"
,
value
:
e
.
game
.
currentPlayer
===
e
.
game
.
playerList
[
2
],
expression
:
"
game.currentPlayer===game.playerList[2]
"
}],
staticStyle
:{
color
:
"
red
"
,
width
:
"
150px
"
,
border
:
"
solid
"
,
"
border-radius
"
:
"
4px
"
,
position
:
"
absolute
"
,
bottom
:
"
-50px
"
,
left
:
"
0
"
}},[
e
.
_v
(
"
请在
"
+
e
.
_s
(
e
.
game
.
second
)
+
"
秒内出牌
"
)])]),
e
.
game
.
playerList
[
2
].
lastSendObj
&&
e
.
game
.
playerList
[
2
].
lastSendObj
.
poker
[
0
].
text
?
n
(
"
div
"
,{
staticStyle
:{
position
:
"
fixed
"
,
top
:
"
100px
"
,
left
:
"
200px
"
,
height
:
"
200px
"
}},
e
.
_l
(
e
.
game
.
playerList
[
2
].
lastSendObj
.
poker
,(
function
(
t
){
return
n
(
"
div
"
,{
staticClass
:
"
pokerDesk
"
,
class
:{
s
:
16
===
t
.
number
,
x
:
17
===
t
.
number
}},[
n
(
"
span
"
,{
directives
:[{
name
:
"
show
"
,
rawName
:
"
v-show
"
,
value
:
t
.
number
<
16
,
expression
:
"
item.number<16
"
}]},[
e
.
_v
(
"
"
+
e
.
_s
(
t
.
text
)
+
"
"
)])])})),
0
):
e
.
_e
(),
e
.
game
.
playerList
[
2
].
lastSendObj
&&!
e
.
game
.
playerList
[
2
].
lastSendObj
.
poker
[
0
].
text
?
n
(
"
div
"
,{
staticStyle
:{
position
:
"
fixed
"
,
top
:
"
100px
"
,
left
:
"
200px
"
,
height
:
"
200px
"
}},[
n
(
"
div
"
,{
staticStyle
:{
height
:
"
100%
"
,
width
:
"
100px
"
,
float
:
"
left
"
,
"
margin-left
"
:
"
-50px
"
,
"
font-size
"
:
"
50px
"
,
color
:
"
#ff0000
"
}},[
e
.
_v
(
"
pass
"
)])]):
e
.
_e
(),
n
(
"
div
"
,{
staticStyle
:{
position
:
"
fixed
"
,
top
:
"
40px
"
,
right
:
"
20px
"
,
height
:
"
200px
"
,
width
:
"
100px
"
,
border
:
"
solid 1px
"
,
"
border-radius
"
:
"
8px
"
,
"
background-color
"
:
"
azure
"
,
"
text-align
"
:
"
center
"
}},[
n
(
"
p
"
,{
staticStyle
:{
color
:
"
red
"
,
"
font-size
"
:
"
20px
"
}},[
e
.
_v
(
"
"
+
e
.
_s
(
"
nongmin
"
===
e
.
game
.
playerList
[
1
].
type
?
"
农民
"
:
"
地主
"
)
+
"
"
)]),
n
(
"
p
"
,[
e
.
_v
(
"
"
+
e
.
_s
(
e
.
game
.
playerList
[
1
].
name
)
+
"
"
)]),
n
(
"
p
"
,[
e
.
_v
(
"
剩余
"
+
e
.
_s
(
e
.
game
.
playerList
[
1
].
pokerList
.
length
)
+
"
张
"
)]),
n
(
"
div
"
,{
directives
:[{
name
:
"
show
"
,
rawName
:
"
v-show
"
,
value
:
e
.
game
.
currentPlayer
===
e
.
game
.
playerList
[
1
],
expression
:
"
game.currentPlayer===game.playerList[1]
"
}],
staticStyle
:{
color
:
"
red
"
,
width
:
"
150px
"
,
border
:
"
solid
"
,
"
border-radius
"
:
"
4px
"
,
position
:
"
absolute
"
,
bottom
:
"
-50px
"
,
right
:
"
0
"
}},[
e
.
_v
(
"
请在
"
+
e
.
_s
(
e
.
game
.
second
)
+
"
秒内出牌
"
)])]),
e
.
game
.
playerList
[
1
].
lastSendObj
&&
e
.
game
.
playerList
[
1
].
lastSendObj
.
poker
[
0
].
text
?
n
(
"
div
"
,{
staticStyle
:{
position
:
"
fixed
"
,
top
:
"
100px
"
,
right
:
"
200px
"
,
height
:
"
200px
"
}},
e
.
_l
(
e
.
game
.
playerList
[
1
].
lastSendObj
.
poker
,(
function
(
t
){
return
n
(
"
div
"
,{
staticClass
:
"
pokerDesk
"
,
class
:{
s
:
16
===
t
.
number
,
x
:
17
===
t
.
number
}},[
n
(
"
span
"
,{
directives
:[{
name
:
"
show
"
,
rawName
:
"
v-show
"
,
value
:
t
.
number
<
16
,
expression
:
"
item.number<16
"
}]},[
e
.
_v
(
"
"
+
e
.
_s
(
t
.
text
)
+
"
"
)])])})),
0
):
e
.
_e
(),
e
.
game
.
playerList
[
1
].
lastSendObj
&&!
e
.
game
.
playerList
[
1
].
lastSendObj
.
poker
[
0
].
text
?
n
(
"
div
"
,{
staticStyle
:{
position
:
"
fixed
"
,
top
:
"
100px
"
,
right
:
"
200px
"
,
height
:
"
200px
"
}},[
n
(
"
div
"
,{
staticStyle
:{
height
:
"
100%
"
,
width
:
"
100px
"
,
float
:
"
left
"
,
"
margin-left
"
:
"
-50px
"
,
"
font-size
"
:
"
50px
"
,
color
:
"
#ff0000
"
}},[
e
.
_v
(
"
pass
"
)])]):
e
.
_e
()])},
S
=
[],
O
=
{
name
:
"
HelloWorld
"
,
data
:
function
(){
return
{
data
:
"
fuck1
"
,
game
:
new
b
,
playerStr
:
""
,
pokerList
:[]}},
computed
:{
playerMarginLeft
:
function
(){
return
(
window
.
innerWidth
-
50
*
this
.
game
.
playerList
[
0
].
pokerList
.
length
)
/
2
},
deskPokerMarginLeft
:
function
(){
return
(
window
.
innerWidth
-
50
*
this
.
game
.
playerList
[
0
].
lastSendObj
.
poker
.
length
)
/
2
},
buttonMarginLeft
:
function
(){
return
(
window
.
innerWidth
-
400
)
/
2
},
deskPoker
:
function
(){
return
this
.
game
.
deskPokerObj
&&
this
.
game
.
deskPokerObj
.
poker
&&
this
.
game
.
deskPokerObj
.
poker
[
0
]
&&
this
.
game
.
deskPokerObj
.
poker
[
0
].
text
?
this
.
game
.
deskPokerObj
.
poker
:[]},
player2Str
:
function
(){
var
e
=
this
.
game
,
t
=
2
;
return
[
e
.
playerList
[
t
].
name
+
"
:
"
+
e
.
playerList
[
t
].
type
+
"
:
"
+
e
.
playerList
[
t
].
pokerList
.
length
,
e
.
playerList
[
t
].
pokerListToString
(),
e
.
playerList
[
t
].
lastSendObjToString
()]},
player1Str
:
function
(){
var
e
=
this
.
game
,
t
=
1
;
return
[
e
.
playerList
[
t
].
name
+
"
:
"
+
e
.
playerList
[
t
].
type
+
"
:
"
+
e
.
playerList
[
t
].
pokerList
.
length
,
e
.
playerList
[
t
].
pokerListToString
(),
e
.
playerList
[
t
].
lastSendObjToString
()]},
player0Str
:
function
(){
var
e
=
this
.
game
,
t
=
0
;
return
[
e
.
playerList
[
t
].
name
+
"
:
"
+
e
.
playerList
[
t
].
type
+
"
:
"
+
e
.
playerList
[
t
].
pokerList
.
length
,
e
.
playerList
[
t
].
pokerListToString
(),
e
.
playerList
[
t
].
lastSendObjToString
()]},
deskStr
:
function
(){
var
e
=
this
.
game
;
return
[
"
desk
"
,
e
.
pokerListToString
()]}},
mounted
:
function
(){
this
.
data
=
this
.
game
.
playerList
[
1
].
name
,
window
.
game
=
this
.
game
},
methods
:{
enter
:
function
(
e
,
t
){
1
===
e
.
buttons
&&
this
.
pickPoker
(
t
)},
pickPoker
:
function
(
e
){
if
(
e
.
selected
){
e
.
selected
=!
1
;
for
(
var
t
=
0
;
t
<
this
.
pokerList
.
length
;
t
++
)
this
.
pokerList
[
t
]
===
e
&&
this
.
pokerList
.
splice
(
t
,
1
)}
else
e
.
selected
=!
0
,
this
.
pokerList
.
push
(
e
)},
sendPoker2
:
function
(){
var
e
=
this
.
game
,
t
=
e
.
playerList
[
0
].
playByPokerList
(
this
.
pokerList
);
t
&&
(
this
.
pokerList
=
[])},
sendPoker
:
function
(){
var
e
=
this
.
game
,
t
=
e
.
playerList
[
0
].
playByString
(
this
.
playerStr
);
t
&&
(
this
.
playerStr
=
""
)},
pass
:
function
(){
this
.
game
.
playerList
[
0
].
playByString
(
"
pass
"
)},
reStart
:
function
(){
this
.
game
=
new
b
,
this
.
playerStr
=
""
}}},
j
=
O
,
P
=
(
r
(
"
ec58
"
),
Object
(
d
[
"
a
"
])(
j
,
w
,
S
,
!
1
,
null
,
"
388d283f
"
,
null
)),
_
=
P
.
exports
,
T
=
{
name
:
"
App
"
,
components
:{
HelloWorld
:
x
,
Game
:
_
}},
B
=
T
,
W
=
Object
(
d
[
"
a
"
])(
B
,
i
,
s
,
!
1
,
null
,
null
,
null
),
N
=
W
.
exports
;
n
[
"
a
"
].
config
.
productionTip
=!
1
,
new
n
[
"
a
"
]({
render
:
function
(
e
){
return
e
(
N
)}}).
$mount
(
"
#app
"
)},
ec58
:
function
(
e
,
t
,
r
){
"
use strict
"
;
var
n
=
r
(
"
2ff8
"
),
i
=
r
.
n
(
n
);
i
.
a
}});
//# sourceMappingURL=app.a5265769.js.map
\ No newline at end of file
dist/js/app.
b03d0b62
.js.map
→
dist/js/app.
a5265769
.js.map
浏览文件 @
11e57d66
因为 它太大了无法显示 source diff 。你可以改为
查看blob
。
src/components/Game.vue
浏览文件 @
11e57d66
...
...
@@ -53,7 +53,7 @@
</div>
</div>
<div
v-if=
"game.playerList[0].lastSendObj&&!game.playerList[0].lastSendObj.poker[0].text"
:style=
"
{ marginLeft: deskPokerMarginLeft + 'px' }" style="position: fixed;bottom:350px;width: 100%;height: 200px">
<div
style=
"height:100%;width:100px;float: left;margin-left:-50px;font-size: 50px;"
>
<div
style=
"height:100%;width:100px;float: left;margin-left:-50px;font-size: 50px;
color:#ff0000
"
>
pass
</div>
</div>
...
...
@@ -81,7 +81,7 @@
</div>
</div>
<div
v-if=
"game.playerList[2].lastSendObj&&!game.playerList[2].lastSendObj.poker[0].text"
style=
"position: fixed;top:100px;left:200px;height: 200px;"
>
<div
style=
"height:100%;width:100px;float: left;margin-left:-50px;font-size: 50px;"
>
<div
style=
"height:100%;width:100px;float: left;margin-left:-50px;font-size: 50px;
color:#ff0000
"
>
pass
</div>
</div>
...
...
@@ -108,7 +108,7 @@
</div>
</div>
<div
v-if=
"game.playerList[1].lastSendObj&&!game.playerList[1].lastSendObj.poker[0].text"
style=
"position: fixed;top:100px;right:200px;height: 200px;"
>
<div
style=
"height:100%;width:100px;float: left;margin-left:-50px;font-size: 50px;"
>
<div
style=
"height:100%;width:100px;float: left;margin-left:-50px;font-size: 50px;
color:#ff0000
"
>
pass
</div>
</div>
...
...
src/doudizhu/Player.js
浏览文件 @
11e57d66
...
...
@@ -62,7 +62,7 @@ class Player{
}
else
{
that
.
ai
.
playByAllType
();
}
},
0
);
},
100
0
);
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录