提交 c3176c5d 编写于 作者: 微笑面对bug's avatar 微笑面对bug

修复已知bug

上级 a2e1f8c0
.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
<!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.84b425a3.css rel=preload as=style><link href=js/app.a8686d4f.js rel=preload as=script><link href=js/chunk-vendors.caf18475.js rel=preload as=script><link href=css/app.84b425a3.css rel=stylesheet></head><body><div id=app></div><script src=js/chunk-vendors.caf18475.js></script><script src=js/app.a8686d4f.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.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
此差异已折叠。
此差异已折叠。
......@@ -9,6 +9,14 @@ class AI{
classify(pokerList){
pokerList.sort(this.sortFunction);
if(pokerList.length===0){
return {
1: [],
2: [],
3: [],
4: [],
};
}
let lastPoker = pokerList[0];
let curList = [lastPoker];
let lists = [];
......@@ -740,7 +748,7 @@ class AI{
if(lastObj.one[0].number<15&&classifyObj.poker15.length>0){
poker = classifyObj.poker15.slice(0,1);
}else{
if(classifyObj.poker17.length<0||classifyObj.poker16.length<0){
if(classifyObj.poker17.length===0||classifyObj.poker16.length===0){
if(lastObj.one[0].number<16&&classifyObj.poker16.length>0){
poker = classifyObj.poker16;
}else if(lastObj.one[0].number<17&&classifyObj.poker17.length>0){
......@@ -1093,13 +1101,19 @@ class AI{
if(classifyObj.one.length>0){
poker = classifyObj.one[0];
}else{
if(classifyObj.poker17.length<0||classifyObj.poker16.length<0){
if(classifyObj.poker16.length>0){
poker = classifyObj.poker16;
}else if(classifyObj.poker17.length>0){
poker = classifyObj.poker17;
if(classifyObj.poker15.length>0&&classifyObj.poker15.length<4){
poker = classifyObj.poker15.slice(0,1);
}else{
if(classifyObj.poker17.length===0||classifyObj.poker16.length===0){
if(classifyObj.poker16.length>0){
poker = classifyObj.poker16;
}else if(classifyObj.poker17.length>0){
poker = classifyObj.poker17;
}
}
}
}
if(poker){
obj = {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册