亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? viewtest.txt

?? 是基于的Robot Soccer v1.5a控制源碼
?? TXT
字號:
--StrategyY---------------------------------------
--------------------------------------------------

--To use RSViewer first declare to global variable "Display"
-------------------------
global ftop, fbot, gRight, gLeft,fRightX,fLeftX, DISPLAY 
global y1,y2,y3,y4,y5,ball,blist,pball
global bpLast,BB1,BB2,i


on strategyY

--(RSViewer) You can format a string like the one below(this one diplays the ball and y3 coords) 
-----------------------
display = "i " & i && "ballpos x" & ball.x & " y" & ball.y && "Y3 pos x= " & y3.pos.x && " y =  " & y3.pos.y
-------------------------
--RSViewer can be run from blue or yellow strategies 
---YellowTeam----------------------------------------------
  
  predictBall()
  goalie1(y1)
  --attackball(y2)
  --attackball(y3)
  --attack3(y2)
  --attack3(y3) 
  decideAttack(y4,y5)
  decideDefend(y2,y3)
  --posdef1(y2)
  --posdef2(y3)
end
-------------------------------
on decideAttack(attack1,attack2)
  if pBall.x -10> attack1.pos.X or pBall.x -10 > attack2.pos.X then
    retreat = false
  end if 
  
  if pBall.x > attack1.pos.X and pBall.x > attack2.pos.X and retreat = false then 
    At1 = vector(attack1.pos.X,attack1.pos.Y,0)
    At2 = vector(attack2.pos.X,attack2.pos.Y,0)
    BLL = vector(pBall.X,pBall.Y,0)
    if At1.distanceTo(BLL)<At2.distanceTo(BLL) then
      attackBall(attack1)
      supportattack(attack2,attack1.pos)
    else
      attackBall(attack2)
      supportattack(attack1,attack2.pos)
    end if 
    
  else if pBall.x > attack1.pos.X then
    attackBall(attack1)
    supportattack(attack2,attack1.pos)
  else if pBall.x > attack2.pos.X then
    attackBall(attack2)
    supportattack(attack1,attack2.pos)
  else
    retreat = true
    supportattack(attack1,pBall)
    supportattack(attack2,attack1.pos)
  end if 
  
end decideAttack

-------------------------------
on decideDefend(def1,def2)
  if pBall.x -3> def1.pos.X then
    retreat2 = false
  end if 
  if pBall.x -3> def2.pos.X then
    retreat3 = false
  end if 
  
  if Ball.x > def1.pos.X and retreat2 = false then
    --attackBall(def1)
    posdef1(def1)
  else
    retreat2=true
    supportattack(def1,ball)
  end if      
  if Ball.x > def2.pos.X and retreat3 = false then
    --attackBall(def2)
    posdef2(def2)
  else
    retreat3=true
    supportattack(def2,ball)
  end if 
  if retreat2= false and def1.pos.x < 20 then
    gopos = vector(25,55,1)
    supportattack(def1,gopos)
  end if 
  if retreat3= false and def2.pos.x < 20 then
    gopos = vector(25,25,1)
    supportattack(def2,gopos)
  end if 
  
  
end decideDefend
-------------------------------
on Goalie1(whichBot)
  vr = 0
  vl = 0
  
  Z = ball --member(1).model("Ball").transform.position
  Tx =  Z.x - gleft
  Ty =  Z.y - fbot
  A = whichBot.pos
  A.x =  A.x - gleft
  A.y = A.y - fbot
  
  R = whichBot.rot.z 
  if  R < .001 then R = R + 360
  if R >360.001 then R = R - 360
  -----------------
  if A.y > Ty + .9 and A.y > 27 then
    vr = -100
    vl =-100
  end if 
  if A.y < Ty -.9 and A.y < 43 then
    vr = 100
    vl =100
    
  end if 
  if A.y < 27 then
    vr = 100
    vl =100
  end if 
  if A.y > 43 then
    vr = -100
    vl =-100
  end if 
  ----------------------------
  if R > 90.5 then 
    vl = vl + abs(R - 90)
  else if R  < 89.5 then 
    vr = vr + abs(R - 90)
  end if 
  --------------------
  velocity(whichBot , vl,vr)
end
-----------------
on attack2(whichBot)
  r = whichbot.rot.z
  T = ball
  A = whichbot.pos
  vr = 50
  vl = 20
  if r < 160 or T.y < (A.y - 8)  then
    vr = vr 
    vl = vl + 20
  else
    vr = vr + 40 
    vl = vl 
  end if
  
  --if r > 160 and T.y < A.y  then
  --vr = vr +10
  --else if r < 200 and T.y > T.y  then
  --vl = vl+ 10
  --end if 
  
  
  --f r > 180 or T.y < (A.y + 8)  then
  --vr = vr 
  --vl = vl  + 40
  --end if
  
  velocity(whichBot , vl,vr)
end
----------------------------

on attack3(whichBot)
  vr = 0
  vl = 0
  T = member(1).model("Ball").transform.position
  A = whichBot.pos
  R = whichBot.rot.z
  if  R < 1 then R = R +360
  
  vr = 50
  vl = 50
  if A.x <(T.x -10) and R >340 and R < 20 then 
    vr = 50
    vl = 50
  else  if A.x <(T.x -10) and R <340 or R > 20 then 
    vr = 20
    vl = 20
  end if 
  if  A.x >(T.x -20) then 
    vr = 50
    vl = 50
  else if  A.x >(T.x -20) then   
    vr = 20
    vl = 20
  end if 
  if A.x <(T.x -15) then
    if R < 340 and R  > 180 then
      vr = vr+55
      vl =  vl - 30
    end if 
    if R > 20 and R < 180 then
      vr = vr -30
      vl = vl +55
    end if 
  end if 
  
  if A.x >(T.x -15) and R <355 and R > 180 and abs(A.y - T.y) < 1 then
    vr = vr+55
    vl =  vl 
  end if 
  if A.x >(T.x -15) and R > 5 and R < 180 and abs(A.y - T.y) < 1 then
    vr = vr 
    vl = vl +55
  end if 
  if A.x <(T.x -20) and A.y = (T.y ) or  A.y = (T.y) then
    vr = vr 
    vl =vl 
  else if A.x <(T.x -20) and A.y >(T.y) then
    vr = vr 
    vl =vl +1.40
  else if  A.x <(T.x -20) and A.y <(T.y  )  then
    vr = vr +1.40
    vl =vl 
  end if 
  if  A.x >(T.x +1) then
    vr = 60
    vl = 40
    --else if  A.x>T.x - 1  then
    --vr = 50
    --vl =50
  end if 
  velocity(whichBot , vl,vr)
end
-----------------------****
on attackball(whichbot)
  T = pball
  A = whichBot.pos
  R = whichBot.rot .z
  vr = 0
  vl=0
  dX = A.x - T.x
  dY = A.y - T.y 
  angletopoint = getAngleToPoint(whichbot,pBall)
  -------------------------
  
  if  R  > (angleToPoint ) and dx < 0 then 
    vl = vl + abs(R - angleToPoint)
  end if
  if  R < (angleToPoint ) and dx < 0 then 
    vr = vr + abs(R - angleToPoint)
  end if
  
  if  R  > (angleToPoint ) and dx > 0 then 
    vl = vl + abs(angleToPoint-R)
    --put abs(angleToPoint-R)
  end if
  if  R < (angleToPoint ) and dx > 0 then 
    vr = vr + abs(angleToPoint-R)
    --put abs(angleToPoint-R)
  end if
  
  if  abs(R  - (angleToPoint )) < 40  then 
    vr = 100
    vl= 100
    if R < angletopoint and dx <= 0 then 
      vl = vl-  10
    end if 
    if R > angleToPoint and dx <= 0 then
      vr = vr - 10
    end if 
    if R < angletopoint and dx > 0 then 
      vl = vl -  10
    end if 
    if R > angleToPoint and dx > 0 then
      vr = vr - 10
    end if 
  end if 
  ---------------------------------attackball
  ----------------------slow for boundry  
  nearBound(whichBot,vl,vr)
  -------------------------
  --velocity(whichBot,vl,vr)  
end attackball
----------------------supAtt
on supportattack(whichbot,att)
  fcenter = (ftop - fbot)/2
  T = ball
  if att.y > fcenter then T.y = att.y - 20
  if att.y < fcenter then T.y = att.y + 20
  --T.y = (ftop - fbot) - att.pos.y --+ fcenter
  if ball.x > 20 then T.x = Ball.x - 15
  if ball.x <= 20 then T.x = 20
  A = whichBot.pos
  R = whichBot.rot .z
  vr = 0
  vl=0
  dX = A.x - T.x
  dY = A.y - T.y 
  angletopoint = getAngleToPoint(whichbot,T)
  -------------------------
  
  if  R  > (angleToPoint ) and dx < 0 then 
    vl = vl + abs(R - angleToPoint)
  end if
  if  R < (angleToPoint ) and dx < 0 then 
    vr = vr + abs(R - angleToPoint)
  end if
  
  if  R  > (angleToPoint ) and dx > 0 then 
    vl = vl + abs(angleToPoint-R)
    --put abs(angleToPoint-R)
  end if
  if  R < (angleToPoint ) and dx > 0 then 
    vr = vr + abs(angleToPoint-R)
    --put abs(angleToPoint-R)
  end if
  
  if  abs(R  - (angleToPoint )) < 40  then 
    vr = 100
    vl= 100
    if R < angletopoint and dx <= 0 then 
      vl = vl-  10
    end if 
    if R > angleToPoint and dx <= 0 then
      vr = vr - 10
    end if 
    if R < angletopoint and dx > 0 then 
      vl = vl -  10
    end if 
    if R > angleToPoint and dx > 0 then
      vr = vr - 10
    end if 
  end if 
  ---------------------------------Supatt
  ----------------------slow for boundry  
  nearBound(whichBot,vl,vr)
  -------------------------
  --velocity(whichBot,vl,vr)  
end supportattack
-----------------------PredictBall-------
on predictBall
  
  blast = getAt(blist, i - 1)
  pX = ball.x + (ball.x - blast.x)
  pY = ball.y + (ball.y - blast.y)
  pBall = vector(pX,pY,0)
  --put "b " & ball
  --put "pB " & pball
  --put "bl " & Blast
end predictball

-------------------------nearBound
on nearBound(whichBot,vl,vr)
  T = ball
  A = whichBot.pos
  R = whichBot.rot .z
  
  
  if A.y > (ftop - 15) and R > 45 And R < 130 then 
    if vr > 0 then      
      vr = vr / 3
    end if 
    if vl > 0 then      
      vl = vl / 3
    end if 
  end if 
  
  if A.y < (fbot + 15) and R < -45 And R > -130 then
    if vr > 0 then      
      vr = vr / 3
    end if 
    if vl > 0 then      
      vl = vl / 3
    end if 
  end if 
  if A.x >(fRightX - 10) then
    if vr > 0 then      
      vr = vr / 2
    end if 
    if vl > 0 then      
      vl = vl / 2
    end if 
  end if 
  if A.x <(fLeftX +10) then
    if vr > 0 then      
      vr = vr / 2
    end if 
    if vl > 0 then      
      vl = vl / 2
    end if 
  end if 
  velocity(whichBot , vl,vr)
end
-----------------------------
on posDef1(whichBot)
  vr = 0
  vl = 0
  
  Z = ball 
  Tx =  Z.x - gleft
  Ty =  Z.y - fbot
  A = whichBot.pos
  A.x =  A.x - gleft
  A.y = A.y - fbot
  
  R = whichBot.rot.z 
  if  R < .001 then R = R + 360
  if R >360.001 then R = R - 360
  -----------------
  if A.y > Ty + .9 and A.y > 40 then
    vr = -100
    vl =-100
  end if 
  if A.y < Ty -.9 and A.y < 90 then
    vr = 100
    vl =100
    
  end if 
  if A.y < 40 then
    vr = 100
    vl =100
  end if 
  if A.y > 90 then
    vr = -100
    vl =-100
  end if 
  ----------------------------
  if R > 90.5 then 
    vl = vl + abs(R - 90)
  else if R  < 89.5 then 
    vr = vr + abs(R - 90)
  end if 
  --------------------
  nearBound(whichBot,vl,vr)
end
----------------------------
on posDef2(whichBot)
  vr = 0
  vl = 0
  
  Z = pball 
  Tx =  Z.x 
  Ty =  Z.y 
  A = whichBot.pos
  --A.x =  A.x - gleft
  --A.y = A.y - fbot
  
  R = whichBot.rot.z 
  if  R < -180 then R = R + 360
  if R >180 then R = R - 360
  -----------------
  if A.y >= ball.y and A.y > 3 then
    vr =-100
    vl =-100
  end if 
  if A.y <= ball.y and A.y < 40 then
    vr = 100
    vl =100
    
  end if 
  if A.y <= 3 then
    vr = 100
    vl =100
  end if 
  if A.y >= 40 then
    vr = -100
    vl =-100
  end if 
  ----------------------------
  if R > 90.5 then 
    vl = vl + abs(R - 90)
  else if R  < 89.5 then 
    vr = vr + abs(R - 90)
  end if 
  --------------------
  nearBound(whichBot,vl,vr)
end
------------------------------
on getangletopoint(whichbot,ptarget)
  T = ptarget
  A = whichBot.pos
  R = whichBot.rot .z
  
  ------------------------------avoidBoundry
  if t.y > (ftop - 2.5) then t.y = (ftop - 2.5)
  if t.y < (fbot + 2.5) then t.y = (fbot + 2.5)
  if t.x >(fRightX - 2.5) then t.x = (fRightX - 2.5)
  if t.x <(fLeftX +2.5) then t.x = (fLeftX +2.5)
  dX = A.x - T.x
  dY = A.y - T.y 
  -----------------------
  
  angleToPoint = atan(abs(dY/dX)) * 180.0/pi()
  if(dX > 0) then
    if(dY > 0) then
            angleToPoint = 360 + angleToPoint - 180
     -- put "a " & angleToPoint
    else  if(dY < 0) then 
          angleToPoint = 360 - angleToPoint -180
     -- put "b " & angleToPoint
        end if 
  end if
  if(dX < 0) then
    if(dY > 0) then
            angleToPoint = 180 - angleToPoint -180
      --put "c " & angleToPoint
    else  if(dY < 0) then 
          angleToPoint = 180 + angleToPoint -180
      --put "d " & angleToPoint
        end if      
  end if 
  if angleToPoint > 180 then angleToPoint= angleToPoint - 360
  if angleToPoint < -180 then angleToPoint= angleToPoint + 360
  
  return (angleToPoint)
end

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲成人自拍偷拍| 首页亚洲欧美制服丝腿| 日韩一级大片在线| 波多野结衣欧美| 国产综合成人久久大片91| 午夜精品一区二区三区三上悠亚| 久久久精品黄色| 欧美一区二区性放荡片| 日本高清不卡视频| 成人午夜精品在线| 韩国欧美一区二区| 蜜桃一区二区三区在线| 亚洲午夜精品在线| 亚洲免费视频成人| 《视频一区视频二区| 久久精品网站免费观看| 欧美成人官网二区| 91精品欧美久久久久久动漫| 欧美亚一区二区| 91丨porny丨蝌蚪视频| 国产精品一级片| 韩国精品免费视频| 久久99精品国产麻豆婷婷洗澡| 午夜激情久久久| 亚洲综合激情网| 亚洲制服丝袜av| 一区二区在线观看视频| 亚洲精品国产精华液| 专区另类欧美日韩| 亚洲人成在线播放网站岛国| 欧美高清在线一区| 国产精品家庭影院| 国产精品激情偷乱一区二区∴| 国产欧美精品国产国产专区| 久久香蕉国产线看观看99| 精品日韩欧美在线| 久久嫩草精品久久久精品一| 久久久久久久免费视频了| 久久久久久9999| 国产三级一区二区| 国产精品久久夜| 亚洲三级在线观看| 亚洲永久免费av| 亚洲成人av中文| 日本网站在线观看一区二区三区| 热久久久久久久| 狂野欧美性猛交blacked| 精品一区二区在线播放| 国产成人精品一区二区三区四区 | 色哟哟精品一区| 91老司机福利 在线| 欧美体内she精高潮| 国产精品进线69影院| 亚洲你懂的在线视频| 亚洲国产你懂的| 日本免费新一区视频| 国产一区二区三区香蕉| 波波电影院一区二区三区| 日本精品一级二级| 欧美一区二区三区喷汁尤物| wwww国产精品欧美| 日韩理论片一区二区| 午夜激情综合网| 国产精品小仙女| 在线精品视频免费观看| 91麻豆精品国产| 国产欧美日韩三区| 亚洲国产一区二区在线播放| 麻豆精品在线播放| 成人app在线| 在线不卡免费av| 欧美国产亚洲另类动漫| 一区二区三区视频在线观看| 蜜臀久久久久久久| 白白色亚洲国产精品| 欧美日韩成人综合在线一区二区| 久久综合给合久久狠狠狠97色69| 日韩毛片在线免费观看| 日韩国产欧美一区二区三区| 处破女av一区二区| 欧美剧情电影在线观看完整版免费励志电影| 日韩精品中午字幕| 亚洲另类在线视频| 韩日av一区二区| 欧美调教femdomvk| 日本一二三不卡| 免费高清成人在线| 色婷婷精品久久二区二区蜜臂av| 日韩丝袜情趣美女图片| 亚洲精品视频在线看| 国产毛片精品视频| 欧美精品免费视频| 亚洲人成网站在线| 国产一区二区看久久| 欧美日韩极品在线观看一区| 国产精品久久久久影院亚瑟| 久久99久久久欧美国产| 欧美综合视频在线观看| 欧美激情在线观看视频免费| 免费成人av在线| 色综合天天做天天爱| 日韩精品视频网站| 一本色道久久综合亚洲91| 久久久蜜桃精品| 日本不卡高清视频| 日本大香伊一区二区三区| 国产日产亚洲精品系列| 久久99久久精品欧美| 666欧美在线视频| 一区二区三区在线观看视频| 成人aaaa免费全部观看| 亚洲精品一区二区三区精华液 | 日韩av午夜在线观看| 色偷偷一区二区三区| 国产精品区一区二区三区 | 色丁香久综合在线久综合在线观看| 久久婷婷综合激情| 久久99国产乱子伦精品免费| 欧美蜜桃一区二区三区| 夜夜操天天操亚洲| 91亚洲精品久久久蜜桃| 国产精品麻豆久久久| 国产风韵犹存在线视精品| 日韩视频免费观看高清完整版| 亚洲成va人在线观看| 欧美色视频一区| 一区二区三区精品久久久| 91蜜桃免费观看视频| 国产精品美女久久久久aⅴ| 国产精品 欧美精品| 久久久精品蜜桃| 丰满亚洲少妇av| 中文字幕精品三区| 成人av综合在线| 国产精品视频一二三| www.久久久久久久久| 日韩一区中文字幕| 色综合久久中文综合久久牛| 国产乱码精品一区二区三区忘忧草 | av在线播放不卡| 成人欧美一区二区三区白人| 91美女片黄在线观看91美女| 亚洲日本在线a| 在线亚洲一区二区| 亚洲观看高清完整版在线观看| 欧美日韩国产系列| 麻豆国产欧美日韩综合精品二区| 日韩欧美不卡一区| 国产91丝袜在线播放九色| 中文字幕高清一区| 色综合色综合色综合色综合色综合| 亚洲区小说区图片区qvod| 欧美色欧美亚洲另类二区| 男女男精品视频| 国产夜色精品一区二区av| 成人av网址在线| 亚洲黄色免费网站| 777欧美精品| 狠狠色丁香婷综合久久| 亚洲国产精品激情在线观看 | 精品国产三级电影在线观看| 国产精品综合视频| 一区二区三区日韩精品| 91精品国产91综合久久蜜臀| 国产毛片精品国产一区二区三区| 国产精品二区一区二区aⅴ污介绍| 欧美性色黄大片| 国精产品一区一区三区mba桃花| 国产精品久久久久久一区二区三区| 欧日韩精品视频| 久久99久久99小草精品免视看| 国产精品视频一区二区三区不卡| 在线免费视频一区二区| 精品一区二区免费| 亚洲日本一区二区| 欧美精品一区视频| 日本电影欧美片| 国产真实乱子伦精品视频| 依依成人精品视频| 久久综合色8888| 在线观看av不卡| 国产99精品国产| 日产国产欧美视频一区精品| 国产精品福利电影一区二区三区四区| 欧美日韩色综合| 99久久久久久| 久久av资源网| 亚洲不卡在线观看| 国产精品久久久久桃色tv| 欧美一级免费观看| 色综合天天性综合| 国产麻豆午夜三级精品| 亚洲成人福利片| 激情成人综合网| 亚洲1区2区3区视频| **欧美大码日韩| 国产三级欧美三级日产三级99| 欧美日韩在线直播| 色一区在线观看| 成人免费观看男女羞羞视频|