回合制改为7块一回合和两条命
This commit is contained in:
12
main.lua
12
main.lua
@@ -289,6 +289,18 @@ do
|
|||||||
if RANKS.tsd_u then RANKS.tsd_u=0 end
|
if RANKS.tsd_u then RANKS.tsd_u=0 end
|
||||||
needSave=true
|
needSave=true
|
||||||
end
|
end
|
||||||
|
if STAT.version==1601 then
|
||||||
|
RANKS.round_e=nil
|
||||||
|
RANKS.round_n=nil
|
||||||
|
RANKS.round_h=nil
|
||||||
|
RANKS.round_l=nil
|
||||||
|
RANKS.round_u=nil
|
||||||
|
fs.remove('record/round_e.rec')
|
||||||
|
fs.remove('record/round_n.rec')
|
||||||
|
fs.remove('record/round_h.rec')
|
||||||
|
fs.remove('record/round_l.rec')
|
||||||
|
fs.remove('record/round_u.rec')
|
||||||
|
end
|
||||||
if RANKS.stack_20l then
|
if RANKS.stack_20l then
|
||||||
RANKS.stack_20l=nil
|
RANKS.stack_20l=nil
|
||||||
RANKS.stack_40l=nil
|
RANKS.stack_40l=nil
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
local function update_round(P)
|
local function update_round(P)
|
||||||
if #PLY_ALIVE>1 then
|
if P.stat.piece%7==0 and #PLY_ALIVE>1 then
|
||||||
P.control=false
|
P.control=false
|
||||||
local ID=P.id
|
local ID=P.id
|
||||||
repeat
|
repeat
|
||||||
@@ -13,6 +13,7 @@ end
|
|||||||
return{
|
return{
|
||||||
color=COLOR.cyan,
|
color=COLOR.cyan,
|
||||||
env={
|
env={
|
||||||
|
life=1,
|
||||||
drop=300,lock=300,
|
drop=300,lock=300,
|
||||||
infHold=true,
|
infHold=true,
|
||||||
dropPiece=update_round,
|
dropPiece=update_round,
|
||||||
@@ -22,7 +23,7 @@ return{
|
|||||||
},
|
},
|
||||||
load=function()
|
load=function()
|
||||||
PLY.newPlayer(1)
|
PLY.newPlayer(1)
|
||||||
PLY.newAIPlayer(2,AIBUILDER('CC',7,1,true,10000))
|
PLY.newAIPlayer(2,AIBUILDER('CC',8,1,true,8000))
|
||||||
end,
|
end,
|
||||||
score=function(P)return{P.stat.piece,P.stat.time}end,
|
score=function(P)return{P.stat.piece,P.stat.time}end,
|
||||||
scoreDisp=function(D)return D[1].." Pieces "..STRING.time(D[2])end,
|
scoreDisp=function(D)return D[1].." Pieces "..STRING.time(D[2])end,
|
||||||
@@ -31,10 +32,10 @@ return{
|
|||||||
if P.result=='win'then
|
if P.result=='win'then
|
||||||
local T=P.stat.piece
|
local T=P.stat.piece
|
||||||
return
|
return
|
||||||
T<=23 and 5 or
|
T<=7*8 and 5 or
|
||||||
T<=26 and 4 or
|
T<=7*10 and 4 or
|
||||||
T<=40 and 3 or
|
T<=7*15 and 3 or
|
||||||
T<=60 and 2 or
|
T<=7*26 and 2 or
|
||||||
1
|
1
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
local function update_round(P)
|
local function update_round(P)
|
||||||
if #PLY_ALIVE>1 then
|
if P.stat.piece%7==0 and #PLY_ALIVE>1 then
|
||||||
P.control=false
|
P.control=false
|
||||||
local ID=P.id
|
local ID=P.id
|
||||||
repeat
|
repeat
|
||||||
@@ -13,6 +13,7 @@ end
|
|||||||
return{
|
return{
|
||||||
color=COLOR.magenta,
|
color=COLOR.magenta,
|
||||||
env={
|
env={
|
||||||
|
life=1,
|
||||||
drop=300,lock=300,
|
drop=300,lock=300,
|
||||||
infHold=true,
|
infHold=true,
|
||||||
dropPiece=update_round,
|
dropPiece=update_round,
|
||||||
@@ -22,7 +23,7 @@ return{
|
|||||||
},
|
},
|
||||||
load=function()
|
load=function()
|
||||||
PLY.newPlayer(1)
|
PLY.newPlayer(1)
|
||||||
PLY.newAIPlayer(2,AIBUILDER('CC',7,2,true,16000))
|
PLY.newAIPlayer(2,AIBUILDER('CC',8,2,true,16000))
|
||||||
end,
|
end,
|
||||||
score=function(P)return{P.stat.piece,P.stat.time}end,
|
score=function(P)return{P.stat.piece,P.stat.time}end,
|
||||||
scoreDisp=function(D)return D[1].." Pieces "..STRING.time(D[2])end,
|
scoreDisp=function(D)return D[1].." Pieces "..STRING.time(D[2])end,
|
||||||
@@ -31,10 +32,10 @@ return{
|
|||||||
if P.result=='win'then
|
if P.result=='win'then
|
||||||
local T=P.stat.piece
|
local T=P.stat.piece
|
||||||
return
|
return
|
||||||
T<=30 and 5 or
|
T<=7*8 and 5 or
|
||||||
T<=40 and 4 or
|
T<=7*10 and 4 or
|
||||||
T<=55 and 3 or
|
T<=7*15 and 3 or
|
||||||
T<=75 and 2 or
|
T<=7*26 and 2 or
|
||||||
1
|
1
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
local function update_round(P)
|
local function update_round(P)
|
||||||
if #PLY_ALIVE>1 then
|
if P.stat.piece%7==0 and #PLY_ALIVE>1 then
|
||||||
P.control=false
|
P.control=false
|
||||||
local ID=P.id
|
local ID=P.id
|
||||||
repeat
|
repeat
|
||||||
@@ -13,6 +13,7 @@ end
|
|||||||
return{
|
return{
|
||||||
color=COLOR.red,
|
color=COLOR.red,
|
||||||
env={
|
env={
|
||||||
|
life=1,
|
||||||
drop=300,lock=300,
|
drop=300,lock=300,
|
||||||
infHold=true,
|
infHold=true,
|
||||||
dropPiece=update_round,
|
dropPiece=update_round,
|
||||||
@@ -22,7 +23,7 @@ return{
|
|||||||
},
|
},
|
||||||
load=function()
|
load=function()
|
||||||
PLY.newPlayer(1)
|
PLY.newPlayer(1)
|
||||||
PLY.newAIPlayer(2,AIBUILDER('CC',7,3,true,26000))
|
PLY.newAIPlayer(2,AIBUILDER('CC',8,3,true,26000))
|
||||||
end,
|
end,
|
||||||
score=function(P)return{P.stat.piece,P.stat.time}end,
|
score=function(P)return{P.stat.piece,P.stat.time}end,
|
||||||
scoreDisp=function(D)return D[1].." Pieces "..STRING.time(D[2])end,
|
scoreDisp=function(D)return D[1].." Pieces "..STRING.time(D[2])end,
|
||||||
@@ -31,10 +32,10 @@ return{
|
|||||||
if P.result=='win'then
|
if P.result=='win'then
|
||||||
local T=P.stat.piece
|
local T=P.stat.piece
|
||||||
return
|
return
|
||||||
T<=30 and 5 or
|
T<=7*8 and 5 or
|
||||||
T<=40 and 4 or
|
T<=7*10 and 4 or
|
||||||
T<=55 and 3 or
|
T<=7*15 and 3 or
|
||||||
T<=75 and 2 or
|
T<=7*26 and 2 or
|
||||||
1
|
1
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
local function update_round(P)
|
local function update_round(P)
|
||||||
if #PLY_ALIVE>1 then
|
if P.stat.piece%7==0 and #PLY_ALIVE>1 then
|
||||||
P.control=false
|
P.control=false
|
||||||
local ID=P.id
|
local ID=P.id
|
||||||
repeat
|
repeat
|
||||||
@@ -13,6 +13,7 @@ end
|
|||||||
return{
|
return{
|
||||||
color=COLOR.green,
|
color=COLOR.green,
|
||||||
env={
|
env={
|
||||||
|
life=1,
|
||||||
drop=300,lock=300,
|
drop=300,lock=300,
|
||||||
infHold=true,
|
infHold=true,
|
||||||
dropPiece=update_round,
|
dropPiece=update_round,
|
||||||
@@ -22,7 +23,7 @@ return{
|
|||||||
},
|
},
|
||||||
load=function()
|
load=function()
|
||||||
PLY.newPlayer(1)
|
PLY.newPlayer(1)
|
||||||
PLY.newAIPlayer(2,AIBUILDER('CC',7,1,true,13000))
|
PLY.newAIPlayer(2,AIBUILDER('CC',8,1,true,13000))
|
||||||
end,
|
end,
|
||||||
score=function(P)return{P.stat.piece,P.stat.time}end,
|
score=function(P)return{P.stat.piece,P.stat.time}end,
|
||||||
scoreDisp=function(D)return D[1].." Pieces "..STRING.time(D[2])end,
|
scoreDisp=function(D)return D[1].." Pieces "..STRING.time(D[2])end,
|
||||||
@@ -31,10 +32,10 @@ return{
|
|||||||
if P.result=='win'then
|
if P.result=='win'then
|
||||||
local T=P.stat.piece
|
local T=P.stat.piece
|
||||||
return
|
return
|
||||||
T<=23 and 5 or
|
T<=7*8 and 5 or
|
||||||
T<=26 and 4 or
|
T<=7*10 and 4 or
|
||||||
T<=40 and 3 or
|
T<=7*15 and 3 or
|
||||||
T<=60 and 2 or
|
T<=7*26 and 2 or
|
||||||
1
|
1
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
local function update_round(P)
|
local function update_round(P)
|
||||||
if #PLY_ALIVE>1 then
|
if P.stat.piece%7==0 and #PLY_ALIVE>1 then
|
||||||
P.control=false
|
P.control=false
|
||||||
local ID=P.id
|
local ID=P.id
|
||||||
repeat
|
repeat
|
||||||
@@ -13,6 +13,7 @@ end
|
|||||||
return{
|
return{
|
||||||
color=COLOR.lYellow,
|
color=COLOR.lYellow,
|
||||||
env={
|
env={
|
||||||
|
life=1,
|
||||||
drop=300,lock=300,
|
drop=300,lock=300,
|
||||||
infHold=true,
|
infHold=true,
|
||||||
dropPiece=update_round,
|
dropPiece=update_round,
|
||||||
@@ -22,7 +23,7 @@ return{
|
|||||||
},
|
},
|
||||||
load=function()
|
load=function()
|
||||||
PLY.newPlayer(1)
|
PLY.newPlayer(1)
|
||||||
PLY.newAIPlayer(2,AIBUILDER('CC',7,3,true,40000))
|
PLY.newAIPlayer(2,AIBUILDER('CC',8,4,true,40000))
|
||||||
end,
|
end,
|
||||||
score=function(P)return{P.stat.piece,P.stat.time}end,
|
score=function(P)return{P.stat.piece,P.stat.time}end,
|
||||||
scoreDisp=function(D)return D[1].." Pieces "..STRING.time(D[2])end,
|
scoreDisp=function(D)return D[1].." Pieces "..STRING.time(D[2])end,
|
||||||
@@ -31,10 +32,10 @@ return{
|
|||||||
if P.result=='win'then
|
if P.result=='win'then
|
||||||
local T=P.stat.piece
|
local T=P.stat.piece
|
||||||
return
|
return
|
||||||
T<=30 and 5 or
|
T<=7*8 and 5 or
|
||||||
T<=40 and 4 or
|
T<=7*10 and 4 or
|
||||||
T<=55 and 3 or
|
T<=7*15 and 3 or
|
||||||
T<=75 and 2 or
|
T<=7*26 and 2 or
|
||||||
1
|
1
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
|
|||||||
Reference in New Issue
Block a user