Skip to content

Commit

Permalink
add android lua
Browse files Browse the repository at this point in the history
  • Loading branch information
einverne committed May 29, 2014
1 parent f8355ed commit 9dde474
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 7 deletions.
25 changes: 25 additions & 0 deletions proj.android/assets/lua/ZiList/25/rules.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
//##begin
//##0:110009:----------------------------------
local bh0 = GetBH(0)
if(IsPie(bh0,bl) == false) then
trace("0")
else
trace("1")
end
//##1:110007:----------------------------------
local bh1 = GetBH(1)
if(IsHeng(bh1,bl) == false)then
trace("0")
else
trace("1")
end
//##2:110003:----------------------------------
local bh2 = GetBH(2)
if(IsShu(bh2,bl) == false)then
trace("0")
else
trace("1")
end


//##end
7 changes: 0 additions & 7 deletions proj.android/assets/lua/ZiList/30/funcs.txt
Original file line number Diff line number Diff line change
Expand Up @@ -80,19 +80,12 @@ end

function IsNa(bh,bl)
if (bl < 1) then return end

local spt = GetStartPoint(bh)
local ept = GetEndPoint(bh)
local dis = GetDistance(spt,ept)

if (spt.x > ept.x or spt.y >ept.y) then
return false
end

if (dis > 150 ) then
return false
end

return true

end
Expand Down

0 comments on commit 9dde474

Please sign in to comment.