ç§ã¯ãã§ã«ãæŠè»ãå¶åŸ¡ããããããæžããçµéšããããŸããã å®éãç§ã¯5幎éACM ICPCã«åå ããŠããŸãã ç§ãã¡ã®å°åã®æºã 決åã¯ããµã©ããå·ç«å€§åŠã®å£ã®äžã§éå¬ãããŸããããã¯ããã·ã¢AIã«ããã®äž»å¬è ã®1人ã§ãã æºã 決åã§ã¯ãæ¯åéå ¬åŒã®ã³ãŒãã²ãŒã ãã£ã¬ã³ãžãéå¬ãããŸãã æ¬è³ªã¯åãã§ã-ã¿ããªãåŒãè£ãããããæžããŠãã ããã ãããŠããããã¯åžœåãšã¹ã¿ãããåãããŠã£ã¶ãŒãã§ãããã¬ãŒã¹ã«ãŒããŸãã¯ãããŒã¯ã©ããã§ããããšãå€æããŸããããç§ãã¡ã¯åžžã«ããããšåŒã³ãŸããã
ç§ã¯CGCã«5åãåå ããŠããã®ã§ãæåã¯ãã®ç«¶äºã¯ããŸãç±å¿ã§ã¯ãããŸããã§ããã
ããããã«ãŒã«ãããç¥ã£ãã®ã§ãç§ã¯ãŸã ã³ã³ãã¹ãã«èå³ããããšæ±ºããŸããã 次ã®ã¢ã€ãã ãéããŸããã
- CGCã§éåžžãããå€ããªã£ãã®ã¯ãã²ãŒã ã®äžçã®è€éãã§ãã ã¿ã³ã¯ãã©ãã¯ã¯åå¥ã«é§åãããŸãã ã¿ã¯ãŒã¯è¹äœãšã¯å¥ã«ç§»åããŸãã ã¯ãŒã«ããªããžã§ã¯ãã¯ãå圢ã§ã¯ãªãé·æ¹åœ¢ã§ãã ãããŠãæãã¯ãŒã«ãªããšã¯ãäžåºŠã«è€æ°ã®ã¿ã³ã¯ãå¶åŸ¡ããããšã§ãã ããã¯ãã¹ãŠãã²ãŒã ã®ããªãã®æ·±ããããŸããŸãªæŠè¡ãéçŸå®çã«ã¯ãŒã«ãªããšãããèœåãçŽæããŸããã
- æé-1ãæïŒCGCã§ããããæžãããã«äžããããã®ã¯ããã4æéïŒã ãã®éãæŠç¥ã¯éåžžã«çºå±ããã¯ãã§ãã èªåã§åå ããªããŠããåå è ã®é²æã芳å¯ããããšã¯éåžžã«èå³æ·±ãããšã§ãã
- åå è ãå€ãããšã¯æããã§ãã ã¹ããŒããžã®é¢å¿ã¯éåžžã«å€§ããã§ãã
- ãããããªããã°æ¥œããè³åã
ã·ã¹ãã ã®è©³çŽ°ãªåŠçãéå§ãã圌ã¯ãäž»å¬è ããšã³ããªã®ãããå€ãäœãããããšããããšã«æ°ä»ããŸããã ãµãŒããŒã§æŠéã衚瀺ããã«ã¯ããã©ãŠã¶ä»¥å€ã®ãã®ã¯å¿ èŠãããŸããã ããŠã³ããŒãåŸãèšèªããã¯ã¯ããã«åäœããŸãïŒå°ãªããšãç§ã®å Žåã¯ãCïŒãWindowsïŒã
ãšã³ããªã®ãããå€ãäœããšãåå è ã®æ°ã«ãã©ã¹ã®åœ±é¿ããããŸãã ãããŠãåå è ãå€ãã»ã©ã楜ãããªããŸãã
ã©ãŠã³ã1
ã³ã³ãã¹ãã¯çå€äžã«å§ãŸã£ãããšãæãåºãããŠãã ããã ãã®ã·ã¹ãã ã«æ £ããããã«ãç§ã¯ããçš®ã®ãŽããéãããã®å Žã§å転ããæµãæãšããšããŸããã ãªãããã®çç±ã§ã圌ã¯ã»ãŒãŒãã®ã±ãŒã¹ã«å ¥ããŸããïŒçµå±ãæ®åœ±ãããã©ãããå€æããããã«self.GetAngleToã䜿çšããŸããããself.GetTurretAngleToãå¿ èŠã§ããïŒã ããããç§ã¯ããããèœã¡ãã«åããŠãããšç¢ºä¿¡ããå¯ãŸããã äžæ©ã§ãç§ã®è©äŸ¡ã¯ãã€ãã¹ã®ç¡é倧ã«çµ±åãããŸããã
ç¿æ¥ããã®ãã¬ã·ã£ãã¯ããããã«ããŒãããã¯ã€ãã¯ã¹ã¿ãŒãã«çœ®ãæããŸããïŒQuickStartGuyã¯åçŽãªæŠç¥ãåãããããã§ããã®ã³ãŒãã¯ãµã€ãã«æçš¿ãããŸããïŒã 圌ã¯ãã§ã«ãŠãŒãã£ãªãã£/è·é¢ã®æ¯çã«åŸã£ãŠããŒãã¹ãéžæããæµãåäžã«çŽç·çã«åãããšãèæ ®ããŠããªãŒãã§æµãæã£ãã ç§ã®ç·åè©äŸ¡ã§ããã¯ã»ãšãã©ãã¹ãŠã®ã·ã¹ãã ã®æŠãã«åã€ããã«ååã§ããã ãããããã®åŸãåå è ã®éã§ããè°è«ãããåé¡ã«ééããŸãããæåã®æ°åã®æŠéãæ Œä»ãã®å€§å¹ ãªå€æŽãããã«ç¶ã匱ããã®ã ãããã£ãŠãè©äŸ¡ã®æ¥æ¿ãªãžã£ã³ãã¯ãã¹ãŠãŽãæŠç¥ã«èœã¡ããã®åŸãåå©ã«ãããããããè©äŸ¡ã¯éåžžã«ãã£ãããšæé·ããŸããã
åãã«åŸäºã ããŒãã¹ã«è¿ã¥ããããéæ¹åã«é転ããããšãåŠã³ãŸããã ããã«ãããçåçãåçã«åäžããŸããã 圌ã¯ãã¯ã€ãã¯ã¹ã¿ãŒãã®ãããªç Žç·ã§ã¯ãªãçŸããæ²ç·ã«æ²¿ã£ãŠèµ°ãããã«ã匟éãæ¹åããããšããŸããã è§åºŠã«æ¯äŸããŠãè§åºŠã®äºä¹ã«æ¯äŸããŠãè§åºŠãšè·é¢ã®ãã¹ãŠã®æ©èœã«æ¯äŸããŠããã£ã¿ãã©ãŒã«åªåããããšããŸãã-è¯ãããšã¯äœãèµ·ãããŸããã§ããã æŠè»ã¯é åºã«ããŒãã¹ã®åšãã§ã©ãŠã³ããã³ã¹ãé転ããæŸãããšãheããŸããã 圌ã¯åŸç¹ããã¯ã€ãã¯ã¹ãã€éåãå»ã£ãã
ãã®æãŸã§ã«ãæ²ãã£ãåããããéèŠãªåé¡ãçããŸããã è§ãé§ãæããŠãäžå€®ã§ããããæã€ãã¡ãã·ã§ã³ããããŸããã é·ãéãç§ã¯ãã®äž»æµã®æ³¢ã«å ãããããªãã£ãã®ã§ãäžå¿éšãããŸãããšããã«æ»ã«ãŸããã æåŸã«ãç§ã¯ã³ãŒããŒã§ãã¡ãã·ã§ã³ã«ã€ããŠè©±ãåããç¶ããªããã°ãªããŸããã§ããã
次ã®åé¡ã¯ãæŠè»ããã°ãã°ã¹ã¿ãã¯ããŠããããã®ç«¯ã«ãã®éŒ»ãåããããšããããšã§ãã ç§ã¯ãããå«ã°ãªããã°ãªããŸããã§ãã-æ¢ã«å€ãã®ãããé 眮ãããŠããŠãåæã«æž©ããå± å¿å°ã®è¯ãã³ãŒããŒã«ããªãå Žåãç§ãã¡ã¯ç«ã¡åŸçããŠããããã§ããå°å³ã®äžå€®ã«è¡ããŸãããã
ç§ã¯ãæµã«åããæéããªããšããäºå®ã®ããã«ãç§ã®æŠè»ã®å€§ç ²ãããŸãã«ãé »ç¹ã«ã¢ã€ãã«ç¶æ ã«ãªã£ãŠããããšã«æ°ä»ããŸããã 圌女ã¯åããå€ãããã«ãªã£ãã®ã§ãæã€æºåã¯ã§ããŠããŸããããããŒãã¹ãåãåãã次ã®éã«ç®ãåãããšãéã¯æµããå€ããåã³æã€å Žæã¯ãããŸããã ãã£ã¿ãã©ãŒã§ãéãåãã®ãå©ããå¿ èŠããããšç§ã¯æ±ºããŸããã æ®ãã®åå é»æéã®éãéã®å転é床ãç®æšã«åããã®ã«ååã§ãªãå Žåãå šèº«ã§ç®æšã«åããŸãã ããã§éãã¢ã€ãã«ç¶æ ã«ãªã£ãããšã¯ãããŸãããããŒãã£ãŒãããã®åŸç¹ãèããå¢å ããŸããã ããã¯ãŸã匟éãæªããŸãã-ä»ã§ã¯ãã¹ãŠã®ã¿ãŒã³ãå°ãæ»ããã«ãªã£ãŠããã®ã§ãéã¯åžžã«æµã«åããããŸããã å€æŽã¯æŠç¥ã®å®å šã«ç°ãªãéšåã«é¢é£ããŠããããã«èŠããŸããããæŠè»ã¯ããè¯ãä¹ãå§ããããã«èŠããŸããã
åœæã®ã»ãšãã©ãã¹ãŠã®æ©èœã®èª¬æã¯2ã3段èœã«åãŸãããã§ããããã§ã«10ãæã«éããã«ã¯ããã§ååã§ããã ã¯ããæåºåŸãæ Œä»ãã¯éåžžã«ãã£ãããšæé·ããŸãããã確å®ã«æé·ããŸããã æ°æ¥éãç§ã¯ã€ã³ã¿ãŒãããã®ãªãæã«åž°ããæŠè»ã®ããšãå¿ããŸããã æãåºãããšããç§ã¯é»è©±ããèŠãããšã«ããŸãã-æè¿æŠè»ãã©ãã ãèåããŠãããããããŠä»ããããã©ã®ããã«èŠããããèŠãããã«ã ç§ã®æŠè»ã¯1äœã§ããã ãã®æ²ãã£ããã¯ã€ãã¯ã¹ã¿ãŒãã¯ãªãŒãã£ãŒã®ããã«ä¹ã£ãŠãå¥è·¡çã«ã©ã³ãã³ã°ã®ãããã«ãªããŸããã ãããããç§ã¯åŸæ»ããã§ããªãããšã«æ°ã¥ããŸããã ç§ã1äœã ã£ãå Žåã¯ã決åãŸã§æŠè»ãæ€åããå¿ èŠããããŸãã
æåã®ã©ãŠã³ãã¯è¿ã¥ããŠããŸããã
ç§ã¯éåã®æ¹åãåã³åãäžããããšã«ããŸããã é »ç¹ã«ãQuikstarthaevã¢ã«ãŽãªãºã ã«ãããšãç¯çŽããŒãã¹ãè¶ ããŠé転ããŸããã ããäžåºŠãè§åºŠã«å¯Ÿãããã©ãã¯ãžã®åŽåã®äŸåé¢ä¿ãæŽçããŸãã è§ã«æ¯äŸããŠ-ãã§ã«è©Šããããããã¯ãŽãã«ãªããŸãã è§åºŠã®äºä¹ã«æ¯äŸããŠ-åããŽãã ä»ã«äœãè©ŠããŠã¿ãïŒ ç«æ¹äœãäœãã«æ¯äŸããŠïŒ ããã§ãããããã£ãŠã¿ãŸãããã çªç¶ãç§ã¯ãããããªãè¯ãèŠããããšãçºèŠããŸããã é ããããã¿ã³ã¯ã¯éåžžã«çŸããã©ã€ã³ã«æ²¿ã£ãŠããŒãã¹ã«æ¥ããŸãã ããŒãã¹ãè¿ããæŠè»ãããã«åããŠããªãå Žåã«ã®ã¿ãåããæªããªããŸãã ãŸããããŒãã¹ãè¿ãå Žåãç§ãã¡ã¯ãã¹ããå°œãããŸã-ã¯ã€ãã¯ã¹ã¿ãŒãã®ããã«ã ç§ã¯ããããŒãã¹ãéããŠããŸããã
ãããã¹ã¯ãå€ããå°ãªããéåžžãããæ¹æ³ããã§ã«ç¥ã£ãŠããŸããã ç§ã¯ãã®ç¹ã§çµ¶æçã«é ããŠããŸããã ãµã³ãããã¯ã¹ã¹ããŒã¹ãäœäžããŸããã å¥åŠãªãã¥ãŒãªã¹ãã£ãã¯ã䜿çšããŠåé¿ãå®è£ ããããšããŸããããè¯ãçµæã¯åŸãããŸããã§ããã çµæãšããŠããã¹ãŠã®è©Šã¿ã¯ããŒã«ããã¯ããã©ãŠã³ãã®ååã«å ¥ããæè¡çã«1äžçŽé ããŠãããã«é ãããšã£ãŠããŸããã
äŒæ©ã®éå§ãŸã§ã«ãç§ã¯25äœã«ããŸããã ãã¡ãããããã¯æ¬¡ã®ã©ãŠã³ããžã®éã§ãããæããã«é æ»ããããšã¯ãªããšãªãäžå¿«ã§ãã éåžžã®åé¿ãå®è£ ããããã«ãç§ã¯å°å ã®ç©çåŠã®ç¥èãæ¬ ããŠããããšã¯æããã§ããã ç ²åŒŸã®é床ãã©ã®æ³åã«ãã£ãŠå€åãããã¯ç¥ã£ãŠããŸããããæŠè»ã®åãã®æ³åã¯ç¥ããŸããã§ããã ã ãããããªãã¯ããããèŠã€ããå¿ èŠããããŸãã ããããç§ã¯å¿åã®å©ããå©çšããŸããã ç§ã¯ç°¡åãªå®éšãã»ããã¢ããããŸãã-ãŸã£ããé²ããåŸãã«é²ã-åãã£ãã¯ã§ã¿ã³ã¯ã®ç¹æ§ãèŠã€ããŸããã ãããŠããããã®ç¹æ§ã«é¢ããå¿åã¯ãéåã®æ³åãç解ããŸããã ç§ã¯ã¹ã¿ãŒãã®ããã«ããã«ã¹ãããã«ãååŸã«äœ¿çšãããããããšã¯ç§ã«ãšã£ãŠååã§ãããšæ±ºããŸããã ãããã®æ³åŸãæ確ã«ããåŸãç§ã¯æãç°¡åãªåé¿çãæžãæºåãã§ããŸããã
ç§ã¯ããããã®ããã«å®è£ ããŸããïŒç§ã¯ç§ã®ã¿ã³ã¯ãåäžã«çŽç·çã«åããŠããããšãæ³åãã次ã®100ãã£ãã¯ã§åŒŸäžžãç§ã«åœãããã©ããã確èªãããããããªããä»ããã¬ã¹ãååŸã«ãªã³ã«ããå Žåã«åœãããã©ããã確èªããŸããã
ãã®ãããªåé¿ã¯ãã§ã«ããŸããããŸããã å¹æãé«ããããã«ãè§ã«ããŠãç§ã¯ä»ãç§ãçã£ãŠããæµã«æšªåãã«ãªããŸããã
ãããã®æªçœ®ã«ãããç§ã¯ç¬¬1ã©ãŠã³ãã®çµãããŸã§ã«8äœã«äžããããšãã§ããŸããã æŠã2na2na2ã®æãæ¥ãŸããã
ã©ãŠã³ã2
æåã®ã©ãŠã³ãããã®æŠéãèŠããšãæŠè»ãåé¿ããããšãããšãã«ããã€ãã®ã±ãŒã¹ã«æ°ã¥ããŸããããããã«ãããããã匟䞞ã圌ãè¿œãè¶ããŸããã åæã«ãåé¿ãžã®å¹²æžã¯ãããŸããã§ããã äºæ³ãããåäœã¯ãåé¿ãããããŸã£ããåé¿ããããšããªãããšã§ãã æããã«ãã°ã ç§ã¯ãªããŒã¿ãŒã§æŠããå®è¡ããŠããŸãã 移åäžã®ã¿ã³ã¯ã®å éãäºæ³ããã¯ããã«å°ããããšãããããŸããã ãããããªãã§ããïŒ åœŒã¯æ³¥ã®chtoliã«è¿œã蟌ãã ã倱éããïŒ æŠè»ã®ç§»åãã°ãå¿åã§éä¿¡ããŠããŸãããããã£ãŠããã«ãã©ããã確èªããŠãã ããã ããã§ã®å é床ãå°ããããããšã確èªããŸãã ããããŠãããªãã®æŠè»ã¯å¶ç¶ã«åœäžããŸããã§ãããïŒã -ããŠãä¹çµå¡ã¯ååã§ããããéãã¯äœã§ããïŒ -ãããŠãæŠè»ã®åãã¯HPä¹çµå¡ã«äŸåããŸãã -äœïŒ åãã¯ä¹çµå¡ã«äŸåããŸããïŒ ããã¯ã©ãããå ¥æããŸãããïŒ -ã«ãŒã«ã«ãããš... "
ç§ã¯ã«ãŒã«ãéããèªã¿ãŸãïŒ
ãä¹çµå¡ã®å¥åº·ç¶æ ãäœäžãããšãæŠè»ã®å¶åŸ¡å¹çãäœäžããŸãããããã£ãããšåãå§ããç ²å¡ãå転ãããéã®åè£ å¡«æéãå¢å ããŸããã
äœããã®çç±ã§ãã«ãŒã«ãäœåºŠãèªã¿çŽããŠãç§ã¯ãã®ãã¬ãŒãºã«æ°ã¥ããããšããããŸããã ãããŠãæŠéã§ã¯ãç Žå£ãããæŠè»ããªããšãæžéããããšã«æ°ã¥ããŸããã§ããã RTFMã仲éã
ããã§ããã©ãããã®ïŒ ä¹çµå¡ã¯ããã©ãã¯ãåãããã«ããã«ãå転ãããŠããŸããïŒ åœŒã®æã§å¡ãåãïŒ ã·ã§ã«ã¯æåã§ãªããŒãããŸããïŒ 21äžçŽã®åºã®ããã§ãã æã§ç ²åŒŸãæããªãã®ã¯è¯ãããšã§ããããããªããšãäœéŠ¬åã§çŽæ¥ãã©ãã¯ã®äžã«èœã¡ãŠããŸããŸãã
äžè¬ã«ããšã³ãžã³åºåã®HPä¹çµå¡ãžã®äŸåé¢ä¿ãèŠã€ããŠãåé¿ãä¿®æ£ããŸããã
åã³éåãæ¹åããæãæ¥ãŸããã ãã®åãã®åã«æ¥æåããã£ãå ŽåãããŒãã¹ã«ç§»åãããšãã¿ã³ã¯ããã°ãã°å¥åŠã«éŒ»ãæ¯ããå§ããããšã«æ°ä»ããŸããã ãã®ããã移åé床ãå€§å¹ ã«äœäžããŸããã ããã¯ãã®çç±ã§èµ·ãããŸããïŒç§ãã¡ã¯ããŒãã¹ã«çŽé¢ããŠããã®ãçºèŠããä»åé²ããŠããŸããããã®åã«å€§ããªè§é床ã§ããã«åãçŽããæ £æ§ã«ããè§é床ã¯ããŒãã¹ããç§ãã¡ãé ããããããŠéåžžã«åŒ·ãããŸãã ãã®åŸãåã³åŒ·å¶çã«ããŒãã¹ãæå¹ã«ããŸããä»åã¯å察æ¹åã§ããã¹ãŠãåã³ç¹°ãè¿ãããŸãã ããããè§é床ãæ¶ãå§ããŸãããä»ãããããŒãã¹ã«åãããããªãã°ã çºæ¯ãåæ¢ããããŒãã¹ãžã®ç§»åé床ãå¢å ããŸããã
ã©ã®ããã«èããŠããã©ã®ããã«å®éšããŠãã2ã€ã®æŠè»ãæé©ã«é 眮ããæ¹æ³ãç解ã§ããŸããã§ããã 暪ã«ãããããšãåçŽã®å£ã«æ²¿ã£ãŠè¯ãããã§ãã ãããã¯ããåŽã®ã¹ããŒã³ã®å Žåãäžè¬çã«ã¯ããã¹ãŠãããŸãæ©èœããŸãããªããªããå察åŽã§å¯ãŠããæµã¯ãäºãã殺ãããã§ãã ããããæµã®éã§ããŸãã¯å°ãªããšãæµãšåçŽç·äžã«ã¹ããŒã³ããã£ãå Žå-ç§ã¯äœããã¹ããããããŸããã æçµçã«ã圌ã¯ã³ãŒããŒã«2ã€ã®æŠè»ãå ¥ã£ãç¹å®ã®æ¹æ³ã§ç®è©°ãŸããå§ããŸããããè¯ãããšã¯ãããŸããã§ããã
ã€ãŸããä»ã¯è¯ãããšã¯äœãèµ·ããŠããªãããšãããããŸããã ãããŠãç§ã¯ãµã³ãããã¯ã¹ã®ããã5ã«ããŸãããããã¹ãŠããã§ã³ã¬ãŒãã®äžã«ãããšæããŸããã 第2ã©ãŠã³ããå§ãŸãããã®ååã®çµæã«ãããšãç§ã¯75äœã§ããã æçµçã«ã50ãåæ ŒããŸããã
ã ãããäŒæ©ã äœããæ©æ¥ã«æ¹åããå¿ èŠããããŸãã
ãããã¹ã¯æããã«ç§ãããããé¿ããŸããã ç§ã¯ãåŸæ¹ãŸãã¯åæ¹ã«ä¹ããšãã ãåé¿ããæ¹æ³ãç¥ã£ãŠããŸããã ããã¯ååã§ã¯ãããŸããã§ããã ããããã¿ãŒã³ãæ£ããåé¿ããããã«ã¯ãäžçã®ç©çããã詳现ã«ç¥ãå¿ èŠããããŸãã ãªããŒã¹ãšã³ãžãã¢ãªã³ã°ã®æ°ãããã§ãŒãºã®æºåãæŽããŸãããããã«ã¯æéãããããŸãã ãããããã®åŸNoobãgamedev.ruã®ã³ã³ãã¹ãã®è°è«ãžã®ãªã³ã¯ããããŸãã-ã³ã³ãã¹ããšåæã«å§ãŸã£ãè€æ°ããŒãžã®ãããã¯ã æã®äººã ã¯ãå®éšãã©ã³ããŒãã±ãŒã«ã®éã³ã³ãã€ã«ã«ãã£ãŠãäžçã®ãã¹ãŠã®ç©çåŠãçºèŠããŸããã ãã®ããŒã¿ããããªãã¯ãã¡ã€ã³ã«æçš¿ãããå Žââåãå€ãã®äººããã§ã«ããã䜿çšããŠããå¯èœæ§ãããããšã¯æããã§ãã ãããŠããã¶ãã¶ããããã®æ¢è£œã®ããŒã¿ã䜿çšããŠãåãã®æ£ç¢ºãªäºæž¬åãèšè¿°ããŸããã
ããããã¯ãæŠè»ã®çŸåšã®ç¶æ ãšããã©ãã¯ã«ã©ã®ãããªåŽåãé©çšãããããç¥ãããšã§ãããã€ãã®ãã£ãã¯ãéããŠãã®ç¶æ ãæ£ç¢ºã«å€æããããšãã§ããŸããã ä»ãç§ã¯æå°ç©ãããã2ã€ã®å¯èœãªæ¹æ³ã§ã¯ãªããããããå·Šå³ã®ãã©ãã¯ã§121-11ã®ç°ãªãåªåãããŸããã ãªããŠã³ãåé¿ãè¿œå ãããŸãã-ãã®ããã«ã¯ã匟䞞ãè£ ç²ã«ã©ã®è§åºŠã§åœããããå€æããå¿ èŠããããŸããã ãããžå¹çãåçã«åäžããŸããã
ããéããæµãéãã®ã«ããããã å€ãã®å Žåãæ確ã§ãããä»æã€ãšãæµã¯ç°¡åã«åé¿ããŸãã ããããæ°ãã£ãã¯åŸã«ã圌ã¯èªåãé¿ããããªãäœçœ®ã«ããããšã«æ°ã¥ããŸããã ãã¶ãæµãåé¿ã§ããªãå Žåã«ã®ã¿æã€ããšãè©Šã¿ãŸããïŒ å¹žããªããšã«ãããŸããŸãªéžæãããè±åºã«ãŒãã§ã®åœŒã®çæ³çãªäºæž¬è ãããŸãã ãããå®è£ ããŸããã ç§ã¯è¯ããªããæºè¶³ããŸããã ãããããã°ããããŠã圌ã¯äœããã®çç±ã§ããéãæ»ã«å§ããããšã«æ°ä»ããŸããã ããã¯ãã³ã»ã³ã¹ã§ããïŒ å°æãæ¹åããŸãããããªããããç§ã®çåãæªåãããã®ã§ããïŒ æ¹åã®ååŸã«ããã€ãã®æŠããæ¯èŒãããšãããäœãèµ·ãã£ãŠããã®ããããããŸããã 匟䞞ã§ã¹ãã ãéä¿¡ãããšããç§ã¯ãã°ãã°ç§ã«é£ãã§ãã匟䞞ãæã¡èœãšããŠããŸããŸããããããããéããããšã¯ã§ããŸããã§ããã ããã¯æåã®ããŒãžã§ã³ããèµ·ãããŸãããç§ã¯ããã«ã€ããŠèããããšããªããåã«ãããèµ·ãã£ãŠããããšã«æ°ã¥ããŸããã§ããã ãããããã®ããã«ããŠå€ãã®å±éºãªã·ã§ã«ãéããããšãå€æããŸããã ä»ã§ã¯ããã£ãã«æ®åœ±ããã«ãç§ã¯ãã°ãã°åŒŸäžžã«èœã¡ãŸããã ãã£ããããŠãç§ã¯åŸæ¥ã®ã·ã§ã«ã®æ©èœãèŠã€ããŸããããã¬ãã¢ã ã·ã§ã«ã®ã¿ã«æ®ããŸãã-ãããã«ãšã£ãŠã¯çµ¶å¯Ÿã«é©åã§ããã
圌ã¯ãããŒã ã¡ã€ãã«ãšã£ãŠããå¿ èŠãªããŒãã¹ãåãåããªãããã«æŠè»ã«æããŸããã ããã«å ç«ã¡ãåªå é äœã¯åžžã«TeammateIndex = 0ã䜿çšããããšã§ããããããã¯ãã¡ãããã³ã»ã³ã¹ã§ãã
圌ã¯ãHPããã£ã±ãã«ãªã£ãå Žåã«å¯Ÿå¿ããããŒãã¹ãæã«å ¥ããã®ã§ã¯ãªããç§ããã¡ãŒãžãåããå Žåã«åããŠé£ã«ç«ã¡ãŸããã æµãè¿ãã«ããå Žåã¯æŸããŸãã ãã®ããã«ããŠãå¿ èŠã®ãªãããŒãã¹ãããããå¿ èŠãšããæµã®éŒ»ã®äžããåŒãé¢ãããšãããªãé »ç¹ã«å€æããŸããã
ãããŠä»ãã©ãŠã³ãã®åŸåãæ¥ãŸããã ç§ãèŠããŠããéããæåã®8æéã®ãã¹ãã§ã¯ãç®ã«èŠããå¢å ã®å¯èœæ§ãªãã«ã65äœã®ã©ããã§ã€ãŸãããŸããã 競äºã«å¥ããåããæºåãã§ããŠããã®ã§ãéåžžã®ç掻ãç¶ããŸããããæåŸã®æ°æéã§ç®ãŸããããäžé£ã®åå©ã«ããã48äœã«ãªããŸããã
MrDindowsãtwrlxãªã©ãç§ãèŠããŠããäžéšã®åŒ·åãªãã¬ãŒã€ãŒã決åã«å°éããªãã£ãããšã¯æ®å¿µã§ãã
ãã¡ã€ãã«
ã ããã決åã«è¡ããŸããããããã¯æ·±å»ãªããžãã¹ã§ãã 決åæŠã§å°ãªããšã1å°ã®æµã®æŠè»ã殺ãããšãä¿èšŒããªãã£ãããšãå人ãã¡ã«ç¬ããŸããããå®éã«ã¯ããã«è³åãç²åŸããæºåãã§ããŸããã 第äºã©ãŠã³ãã®ãã¬ã€ã³ã«ããããããã ä»ãç§ã¯ç§åŠè ã§ããããµã³ãããã¯ã¹ãä¿¡é Œããããšã¯ã§ããã決éã®çµ±èšã®ã¿ã«é Œãå¿ èŠãããããšã¯ããã£ãŠããŸããã
æ£ç¢ºãªå°æã®èãæ¹ã«æ»ããŸãã å±éºãªåŒŸäžžã圌女ã«ã²ã©ãæã¡èœãšãããã®ã§ãç§ã¯åœŒå¥³ãæåŠããŸããã ãããããã®åŒŸäžžãå±éºã§ãããã©ããããããŠç§ãã·ã§ããã§ãããæã€ãã©ããããã§ãã¯ããã®ã劚ãããã®ã¯äœã§ããïŒ äœãéªéãããã®ã§ã¯ãªãããªãããã«ç§ã®é ã«å ¥ããªãã£ãã®ãã¯äžæã§ãã å®è£ ãããšãæ®åœ±ã¯ãã£ãšè¯ããªããŸããã
ä»ãããªãã¯å®å šã«æ±ºéã«éäžããããšãã§ããŸããã çŸæç¹ã§ã¯ãç§ã®3å°ã®æŠè»ã¯ããããã2å°ã®æŠè»ã®ããŒã ã®äžå¡ã§ãããšèããŠããŸããã 圌ãã¯å¥åŠãªããšã«ããŒãã¹ãæ±ããŠããŸãããé ã ãŸã§ãã£ãããšããŸãã£ãŠãããã«èªåèªèº«ãå容ããããšããŸãããã2ã€ã§ã¯ãªã3ã€ããããšã«æ°ã¥ããŸããã§ããã å¥ã®3ã¿ã³ã¯æŠç¥ãäœæããå¿ èŠããããŸããã ãããããã®æŠç¥ã¯äœãããŸããïŒ åœŒã¯åã³çŸåšã®ãããã®çµéšã«ç®ãåããŸããã ãå£ãå é ããå£ã«ç«ã£ãŠåé¿ããããšããæŠè¡ã¯éåžžã«ãã¡ãã·ã§ããã«ã§ããããšãããããŸããã ã©ããªã«éå±ã«èŠããŠãããã®æŠç¥ã¯å®è£ ã®è€éãããå¹çæ§ã®é¢ã§æããã«æé©ã§ããã
ãã®ããã決å®ãããŸãã-ã¿ã³ã¯ã¯åçŽå£ã«æ²¿ã£ãŠåçã«é 眮ãããŸãã æåã¯ãé¡ã®åãããããã®äžå€®ã«åããããšããŸãã-ãããããªããŠã³ããåé¿ããã®ã«å¹æçã§ããããšãå€æããã§ãããã ããããé¡ã®ããããå¹æçã«ãã£ããããããã«ã®ã¿å€æããŸããã 瞊ã«äžŠã¹ãªããã°ãªããŸããã§ããã ãã§ã«ãã®æ®µéã§ãèçŒã§ã¯ãã¡ã€ãã«ãšã»ãšãã©åºå¥ã§ããªãããŒãžã§ã³ãåŸãããŸããã ãããå®éã«ã¯ãããã¹ãããšããŸã ãããããããŸããã
決åã®æçµæ¥ã§ããã
æè¿æ¹è¯ãããå°æã·ã¹ãã ãæ©èœããªãããšãæããã«ãªããŸããã ç§ã¯ããããããšç¢ºä¿¡ãããšãã«ã®ã¿æã£ãã é·è·é¢æŠç¥ã«ç§»ãåã«ããã®ãããªå°æã¯ããŸããããŸããã ããããä»ã§ã¯æµã¯ã»ãšãã©åžžã«é ãã«ãããŸããã ç§ã¯ãããã®ã»ãšãã©ç¢ºä¿¡ããªãã£ãããšãããããç§ã¯ã»ãšãã©æã£ãããšããããŸããã åæã«ãæµã¯ãå°ãªããšãæã ç§ã«åããŠã®ã¹ãã ã·ã§ãããããããããæã«ã¯ãããããŸããã ç§ã¯åŠ¥åããªããã°ãªããŸããã§ãã-æµãè¿ãã«ããå Žåãç§ããããã確信ããŠããå Žåã«ã®ã¿æã¡ãããã§ãªããã°ã¹ãã ããŸãã ããã§æ®åœ±ãçµäºããŸããã
ããã«ãèŠãçŒãã®éèŠæ§ãæ¥æ¿ã«é«ãŸã£ãŠããããšãå€æããŸããã ä»ã®çš®é¡ã®æŠãã¯ã»ãšãã©ãã¹ãŠã®ã©ã€ãã«ã®ç Žå£ã§ã»ãŒåžžã«çµãããæ®ãã®ãã€ã³ãã¯éåžžããå€ãããããŠåœŒã¯åã¡ãŸããã ããªãã®1ã€ã®å¶ç¶ã®ææã¯é¢šåããŸããã§ãã-ããªãã¯ããŒãã¹ãæŸããå埩ããç¯çœªè ãç Žå£ããããšãã§ããŸããã 決éã§ã¯ãHPãå埩ã§ããŸãããçžæãææã§ç²åŸãããã€ã³ãã奪ãããšã¯ã§ããŸããã 圌ãé ãã«åº§ã£ãŠããå Žåã圌ãç Žå£ãããããªã
çŸåšã®ãããã¹ãåã³ç§ãããããé¿ããŠããããšã¯æããã§ããã åé¡ã¯äœã§ããïŒ æŠããåæããåŸãç§ã¯èŠã€ããŸããã
ãã®æç¹ã§ã©ã®ããã«åé¿ãããã詳ãã説æããŸãã 121çµã®å¯èœãªåãçµã¿ã®ãªã¹ãããããŸããã 次ã®100ãã£ãã¯ã§ãã®2ã€ã®åªåã䜿çšããå Žåã匟䞞ãç§ã«åœãããã©ããã決å®ããããŒã«é¢æ°ããããŸããã ç§ãã1ãã¯ã»ã«ã®è·é¢ã§é£ãã§ãã匟䞞ã¯ãç§ãè ãããã®ã§ã¯ãªãã£ãããšãããããŸããã ãã®çµæãã»ãŒãã¹ãŠã®åŒŸäžžãæŠè»ã«è§ŠããŸããããè·³ãè¿ããŸããã ç§ãèããã®ã¯ãç§ã®æŠè»ããã®è·³åŒŸã®ç¹åŸŽçãªè·³ãè¿ãã ãã§ããã
åé¡ã¯ãäžãäžãå£ãåããªãããã«ããããŒã ã¡ã€ããæŒããæŠè»ãçºç ²ããããšã§ããæŠè»ã®åãã¯èšç®ãããåããããããã«éžè±ãããªããŠã³ãã®ä»£ããã«æ確ãªãããããããŸããã
ãããã¹ã¯ã©ã®ããã«é¿ããã®ã§ããïŒ ãããããã®è·³åŒŸã¯ãŸãã§ããã 圌ãã¯åŒŸäžžããè·é¢ã眮ããŠé¢ããããšããŸããã ã©ãããã°åãããšãã§ããŸããïŒ ãã¶ããããªãã®æŠè»ãå šæ¹åã«10ãã¯ã»ã«å€§ãããããšèããŠãã ããã ã¯ãããã®å ŽåãæŠè»ã¯å®éã«åŒŸäžžããå°ãªããšã10é¢ããããšããŸããã匟䞞ãç§ãã¡ã«åãã£ãŠé£ãã§ãããšæ³åããŠãã ããã æŠè»ã10ãã¯ã»ã«å€§ãããšèãããšãåé¿ãããã£ã³ã¹ã¯ãããŸããã ãããŠãç©ãããªéã§ã圌女ãèªåèªèº«ã«å ¥ãããã«ããŠãã ããã
ç§ã¯æ¬¡ã®è§£æ±ºçãèŠã€ããŸããã匟䞞ã®å±éºæ§ãããŒã«å€ãšããŠèããã®ããããŠããããéèŠã ãšèããŸãã 匟䞞ã蚪ããæŠè»ããã®æå°è·é¢ãminDistãšããŸãã 次ã«ããã®å±éºåºŠãæ倧ïŒ0,20-minDistïŒã§ãããšä»®å®ããŸãã åé¡ã¯è§£æ±ºããŸããã ããã§ãã¿ã³ã¯ã¯ãå°ãªããšã20ãã¯ã»ã«é¢ããŠé£ã¶åŒŸäžžããé ãããããŸãã
ãã¹ãã®æŠãã¯ãæ°ããèŠãçŒãã·ã¹ãã ãå®éã«ã¯ããã«ããæ©èœããããšã瀺ããŸããã ä»ã§ã¯ã»ãŒåžžã«ãããã¹ãç Žã£ã- ãã©ã³ ã ãã¹ã¿ãŒã¹ãã€ã« ã SDiL ã ãã³ã« ã
決åæŠã®ååã®éå§ã®2æéåã ããã«æ¹åã§ãããã®ãæ¢ããŠãç§ã¯äœåºŠãSDiLãããŒãžããæŠãã«ç®ãéããŸãã ç§ãžã®ã»ãšãã©ã®ãããã¯ãããã€ãã®åŒŸäžžãç§ã«é£ã¶ãšãã«çºçããããšãããããŸãã ã¿ã³ã¯ã¯æãè¿ããã®ã ãããããã次ã®ãããããã£ããããŸãã äžåºŠã«è€æ°ã®ã·ã§ã«ããåé¿ãæžãå¿ èŠããããŸãã 2æéã§ãã£ããã§ããŸããïŒ æžãæéããããŸãã ãããŠãã¹ãããŸããïŒ ãããè¡ãã«ã¯ãæŠç¥ããµãŒããŒã«éä¿¡ããŸãã ãã®åŸã圌ã暪ã«ãªã£ãå ŽåïŒã©ãŠã³ãã®éå§åã«èµ·ãã£ãå ŽåïŒãããŒãžã§ã³ã¯ãã°ã«ãªããåéä¿¡ããæéããããŸããã ãã£ã³ã¹ããã ããã
ãã°ãããããšãã³ãŒãã®æºåãæŽããŸãã ã©ã³ããŒãã±ãŒã«ã§ãã¹ãããŠããŸãã åäœãããã®ãå¿ èŠã§ãããã©ããã«ãããããããã°ã¯è¡šç€ºãããŸãããããã¯æ確ã§ã¯ãããŸãã-ã¹ããŒãã²ã€ã¯éåžžã«å奜çã§ã¯ãããŸããã ç§ã¯ããããµãŒããŒã«éãã5ã€ã®ãããã§æŠããäœæããã³ã³ãã¥ãŒã¿ãŒãããã°ããé¢ããŸãã æ»ã£ãŠããŠãããŒãžãæŽæ°ãã5è©Šåãã¹ãŠã«åã£ãããšãããã£ããæ¯ãæ¢ããŸãã ç§ã¯ãããåã³äœæãã Mr.Smile以å€ã®å šå¡ãæã¡è² ãããŸãã ã ç§ã¯æŠããèŠã-å®å šã«ãããã ããŠã決åæŠã®éå§ãŸââã§ã«ãæŠè»ã¯æºåãã§ããŠããŸãã
ãã¹ããéå§ãããšã圌ã¯ããã«1äœã«ãªããŸããã ãã°ããèŠãŠãæºè¶³ããŠå¯ãŸããã æãç§ã¯2çªç®ã«ã Mr.Smileãæåã«èŠã€ããŸããã 確ãã«ã圌ã®åçã¯é«ãã圌ã¯çå®ã«ç§ã殺ããŸãã äœãããããšã¯ãªãããã§ãã2çªç®ã®ããŒããç¶æããããšããŸãã
ãã¬ãŒã¯ãå§ãŸããŸãããä»ããæŠç¥ãæ¹åããæã§ãã Mr.Smileã®åŸãå€ãã®äººãé éæŠç¥ã決å®ãå§ããã®ã§ã¯ãªãããšå¿é ããŸããã ããã¯ããã®ãããªã©ãã·ã¥ã®é«å¹çã®å Žåã«å€§ããªå€æŽã®å¿ èŠæ§ãæå³ããŸãã ãããããããŸã§ã®ãšããããã®ãããªããšã¯èµ·ãã£ãŠããŸããã ç§ã¯ãçžæã®æŠè¡ã®å€æŽãåŸ ã€ããšã«æ±ºããã®ã§ãäœã«åå¿ããããæ確ã«ãªããŸããã ãããŸã§ã®éãæ¢åã®æŠç¥ã®æãããªæ¬ é¥ãæ¢ããŠãã ããã
ããã€ãã®ããŒãžãããæŠéãã¬ãã¥ãŒããåŸãããã€ãã®ã±ãŒã¹ã§åœŒãã®æŠè»ã®éåžžã«å¥åŠãªå転ã«æ°ã¥ããŸãã-çŸæç¹ã§æãæ¹åã§ã¯ãããŸããã ãªããŒã¿ãŒããããã°ã ç§ã¯ããã€ãã®ãã¹ããããé¢æ°åŒã³åºãã«å ¥ããŸããããã®ãã¡ã®1ã€ã«æ¬¡ã®ã³ãŒãããããŸãïŒ
if (toy > 0) TurnTo(self.X, self.Y+1); else TurnTo(self.X, self.Y+1);
ãµãã2äœã®æŠç¥ã«ã¯æªããªãã ãã¡ãããelseã¯-1ã§ãªããã°ãªããŸããã æ£è§£ã
ç§ã¯å䜵ããæŠããèŠç¶ããŠããŸãã
2ã€ã®åŒŸäžžãã»ãŒäžŠè¡ããŠæŠè»ã«é£ã³èŸŒã¿ã1ã€ãç§ã®æŠè»ã®åºã«ããã1ã€ãäžã«é£ã¶æŠããèŠã€ããŸããã æåŸ ãããåäœ-ã¿ã³ã¯ã¯å°ãå転ãã匟䞞ãããèªäœã®å察åŽãé£ã¶ããšãã§ããŸãã ãããã代ããã«ã圌ã¯å¥åŠãªãžã§ã¹ãã£ãŒãããã€ããã1ã€ãé¿ããè¹å°Ÿã§2ã€ç®ãååŸããŸãã ãªããŒã¿ãŒããããã°ã ãã°ããããŠãäœãåé¡ãªã®ãç解ããŸããã ç§ã¯ã2ã€ã®ã·ã§ã«ã®å±éºæ§ãããããã®å±éºæ§ã®åèšãšèããŸããã ããã¯ãmaxïŒ0,20-minDistïŒã«çããããšãæãåºããŸãã ããããè·é¢ïŒ19.1ïŒã®åŒŸäžžã®ãã¢ã¯ãè·é¢ïŒ10.10ïŒã®åŒŸäžžãšåãå±éºæ§ãããããšãããããŸããã æããã«ãæåã®ãã¢ã¯ãŸã ã¯ããã«å±éºã§ãã ãããã£ãŠãæçµçãªãã¶ãŒãã¯ãåèšã§ã¯ãªãåã ã®ãã¶ãŒãã®æ倧å€ãšèŠãªããŸãã
ããã«ãã®æ¥ã¯ã»ãšãã©äœãå€ãããŸããã§ããã ç§ã¯æ©ãã«å¯ãŠãæç®ãèŠãŸãã察æŠçžæãç§ãäžæ©ãããã¯ããäœããæžãããã©ããããã§ãã¯ããããšã«ããŸããã
æãgamedev.ruã«ã¡ã¬ãã€ãã®ã¡ãã»ãŒãžã衚瀺ãããŸãã圌ã¯ã ã¹ãã€ã«ãšãã ã«ãç§ã«è©æ¬ºãããšèšã£ãŠããŸãã ããŒããèå³æ·±ãããšã«ã確èªããŠãã ããã ç§ã¯åœŒãš5åã®æŠããäœããé¡ãåãäžãã£ãŠããã®ã§ããã¹ãŠã®æŠãã§åœŒãææ ¢ããã®ãèŠãã 圌ã®æŠè»ã¯å®å šã«åããŸããç§ã®ãã®ã«è¿ã¥ããé çªã«æã¡ãŸãã ä»ã®æ°äººã®ãã¬ãŒã€ãŒããã§ãã¯ããŸãã-æ ¹æ¬çãªå€æŽã¯ãªãããã§ãã ãã ã«ã§ã®ã¿ãç§ã¯äœãé¢çœããã®ãèŠã€ããŸããã æŠè»ã®åæäœçœ®ãããã¬ã€ã€ãŒã®1人ããã³ã«ãŒã®çäžããã1人ããã³ã«ãŒã®çäžã«ããå Žåã Romkaã¯ç§ãšåãæ¹åã«æ°Žå¹³ãã§ãŒã³ã«å ¥ããç§ã®è§ã®1ã€ãåã«åãããã®è§ã«è¡ãæŠè»ãæã¡ãŸãæ®ããåŠçããŸãã
äžè¬ã«ãç§ã¯ããã«è¿æ¥æŠè¡ãçµããªããã°ãªããŸããã§ããã ãã ãããã®å®äºã¯ãæ»æãåããŠãããšãã®ããŒãã¹ïŒç¹ã«ãã¬ãã¢ã ã·ã§ã«ïŒã®åªå 床ã®å¢å ã«ã®ã¿æžå°ããŸããã ãããŠããã£ãŒã«ãã®ååã«å°ãªããšã2ã€ã®æµæŠè»ãããå Žåãæ»æãåããŠãããšæããŸããã ã¡ã¬ãã€ãç§ã¯ãŸã ããŒãžããŠããŸããã 圌ã®ã©ãã·ã¥ã«å¯Ÿå¿ããã«ã¯é ããããšããäºå®ã®ããã«ãããã¯ç§ã«ã¯æããã æ»æãåããŠãããã©ãããå€æããé¢æ°ã«æ¬¡ã®ã³ãŒããè¿œå ããå¿ èŠããããŸããã
if(enemies[0].PlayerName == "Megabyte") return true;
ãã®ãããªãããã³ã°ã®åŸãå¿çé床ãåäžããåçãåäžããŸããã
ãã¹ãã®åŸåã§ã¯ãé©ãã¯ãããŸããã§ããã 6äœïŒæçµè³ïŒãç²åŸããã®ã¯é°è¬ã ãã§ãã-RomkaãŸãã¯Commandosã ããã§ãã ãã ã«ã¯åœŒã®å Žæãå®ã£ãã
ãšãããŒã°
å®éã決éã«ããã圌èªèº«ã®æŠç¥ã«ã¯å°ããã£ããããŠããŸãã éå±ã¯éå±ã«èŠããŸãã
valexã®åãé·è·é¢æŠç¥ã«ããå žåçãªæŠãïŒ
壮倧ãªæŠãã®å§ãŸã
ç¶æ³ã¯éç±ããŠããŸã
ç¥çµã¯éçãŸã§ç·åŒµããŠãã
åæ ãåã£ã
Mr.Smileã®ããžãã¹ãã©ãã-圌ã®æ±ºéã®ã©ãã·ã¥ã¯åçŽã«çŸããã§ãã å²ãåœãŠãããæéã®ååãããéãã»ãšãã©ãã¹ãŠã®æµã殺ãããšã¯äœãã§ãã
ãµã€ãã®ãµã³ãããã¯ã¹ãä»åŸæ°ãæéæ©èœãç¶ããããšãé¢å¿ã®ããæ¹ã«æãåºãããŠãã ããã ã³ã³ãã¹ãã«ã€ããŠé ããããšäžæºãèšã£ã人ã¯èª°ã§ãæŠè»ã§éã¶ããšãã§ããã©ãã§ãæ¥ãã§ããããã§ã¯ãããŸããã
çŽ æŽãããã³ã³ãã¹ãã®äž»å¬è ã«æè¬ããŸãã 1幎åŸã«ç¶ç·šã楜ãã¿ã«ããŠããŸãã
UPDïŒ ã³ãŒã