player模块分文件,顺便把部分CC数据分离

This commit is contained in:
MrZ626
2020-11-11 15:18:36 +08:00
parent 809a6a7600
commit 558384727c
6 changed files with 1180 additions and 1169 deletions

View File

@@ -15,27 +15,27 @@ local Timer=love.timer.getTime
-- 11~13:LL,RR,DD
local blockPos={4,4,4,4,4,5,4}
-------------------------------------------------Cold clear
CC=LOADLIB("CC")
if CC then
local _CC=LOADLIB("CC")
if _CC then
local CCblockID={6,5,4,3,2,1,0}
CC={
getConf= CC.get_default_config ,--()options,weights
fastWeights=CC.fast_weights ,--(weights)
--setConf= CC.set_options ,--(options,hold,20g,bag7)
getConf= _CC.get_default_config ,--()options,weights
fastWeights=_CC.fast_weights ,--(weights)
--setConf= _CC.set_options ,--(options,hold,20g,bag7)
new= CC.launch_async ,--(options,weights)bot
addNext= CC.add_next_piece_async ,--(bot,piece)
update= CC.reset_async ,--(bot,field,b2b,combo)
think= CC.request_next_move ,--(bot)
getMove= CC.poll_next_move ,--(bot)success,dest,hold,move
destroy= CC.destroy_async ,--(bot)
new= _CC.launch_async ,--(options,weights)bot
addNext= function(bot,id)_CC.add_next_piece_async(bot,CCblockID[id])end ,--(bot,piece)
update= _CC.reset_async ,--(bot,field,b2b,combo)
think= _CC.request_next_move ,--(bot)
getMove= _CC.poll_next_move ,--(bot)success,dest,hold,move
destroy= _CC.destroy_async ,--(bot)
setHold= CC.set_hold ,--(opt,bool)
set20G= CC.set_20g ,--(opt,bool)
-- setPCLoop= CC.set_pcloop ,--(opt,bool)
setBag= CC.set_bag7 ,--(opt,bool)
setNode= CC.set_max_nodes ,--(opt,bool)
free= CC.free ,--(opt/wei)
setHold= _CC.set_hold ,--(opt,bool)
set20G= _CC.set_20g ,--(opt,bool)
-- setPCLoop= _CC.set_pcloop ,--(opt,bool)
setBag= _CC.set_bag7 ,--(opt,bool)
setNode= _CC.set_max_nodes ,--(opt,bool)
free= _CC.free ,--(opt/wei)
}
function CC.updateField(P)
local F,i={},1