Skip to content

Commit

Permalink
0.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
tiansh committed Jul 29, 2011
1 parent 3016a7a commit df7fc05
Show file tree
Hide file tree
Showing 10 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
<link rel="stylesheet" href="css/lp.css" /> <!-- 理牌 -->
<body>
<div id="main_body">
<div id="act"><a href="http://www.gnu.org/licenses/" rel="nofollow">GNU GPL 3</a>; 版本 0.1; 田生</div>
<div id="act">GNU GPL 3; 版本 0.1.2; 田生</div>
<div id="hxsp"></div>
<header>
<div id="gz">
Expand Down
14 changes: 8 additions & 6 deletions js/hpxs.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ var hpxs=function (r,s) {
var huirlist=new Array(14);
var hulist=new Array(14), hp=s.pz();
var ht=new Array(4);
var last=new zhang(r.last.lb,r.last.sz);
if (last.samehuir()) last=new zhang(0,8);
for (i=0;i<4;i++) {
ht[i]=new Array(10);
for (j=0;j<10;j++)
Expand All @@ -41,30 +43,30 @@ var hpxs=function (r,s) {
hulist[--hp]=new zhang(0,8);
}
} else {
hulist[--hp]=new zhang(r.last.lb,r.last.sz);
hulist[--hp]=new zhang(last.lb,last.sz);
hulist[--hp]=new zhang(0,8);
ht[r.last.lb][r.last.sz]--;
ht[last.lb][last.sz]--;
ht[0][8]--;
}

if (r.hd===2) {
if (r.zw) {
// 双混儿伍儿
hulist[--hp]=new zhang(0,8);
hulist[--hp]=new zhang(r.last.lb,r.last.sz);
hulist[--hp]=new zhang(last.lb,last.sz);
} else {
// 双混儿吊
hulist[--hp]=new zhang(r.last.lb,r.last.sz);
hulist[--hp]=new zhang(last.lb,last.sz);
hulist[--hp]=new zhang(0,8);
}
hulist[--hp]=new zhang(0,8);
ht[r.last.lb][r.last.sz]--;
ht[last.lb][last.sz]--;
ht[0][8]-=2;
} else if (r.zw) {
// 捉伍儿
var rm;
for (i=6;i>=4;i--) {
if (i===5) rm=new zhang(r.last.lb,r.last.sz);
if (i===5) rm=new zhang(last.lb,last.sz);
else rm=new zhang(1,i);
if (ht[rm.lb][rm.sz]!==0) {
hulist[--hp]=new zhang(rm.lb,rm.sz);
Expand Down
Binary file modified tp/h.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tp/t/2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tp/t/3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tp/t/4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tp/t/5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tp/t/6.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tp/t/8.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tp/t/9.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit df7fc05

Please sign in to comment.