ICFPC2014
ãã¤ãç²ãã¦ããããã¨ã§æ¸ããã¨æã£ã¦çµå±æ¸ããªãã®ã§ä»æ¥ã®ãã¡ã«æ¸ãã¦ãããã
ã³ã¼ãã¯ã
- æåºããã® : https://onedrive.live.com/redir?resid=ECB59E566C2D71F1!4183&authkey=!ALgIJhZtnX4zNCU&ithint=file%2czip
- lambdaman: http://int.main.jp/files/icfpc2014/lambdaman.gcc
- ghost: http://int.main.jp/files/icfpc2014/ghost0.ghc
ä½æ ãä¼ç¤¾ã®äººã§æ¯å¹´åå ããã¨ããæåããã£ãã®ã§@foota, @nabesan_tofu, @tomerun, @logicmachine, ç§ã®5人ã§åå ããã(ãã®æåã¯å ¬èªã«ãªã£ã¦å®¿æ³è²»ã¨ããä¼ç¤¾ããåºãããã«ãªã£ã¦ãã(宣ä¼))
ãªããCPUä»æ§ããã£ã¦ããã®CPUã®ä¸ã§ããã¯ãã³ + æµã®ã´ã¼ã¹ãã®AIãä½ãã¨ãããåé¡ã£ã ã£ãã
ã¾ãæã¯è¶£å³ã³ã³ãã¤ã©ã¨ãããã£ã¡ã ãä½ã£ã¦ããã®ã§åºç¤ã¯å®å ¨ã«å¾æåéã ã£ããããç¨åº¦åãããã¨ã®AIã¤ããã¯ã»ã¼@logicmachineã¾ããã ã£ãã
ãããææ³ã¨ãè¦ã¦ãã¨ä¸æ¥ã§ã³ã³ãã¤ã©æ¸ãã®ã¯æ®éã®ã¬ãã«ã«è¦ãããªâ¦
ãã·ã³ä»æ§ã®ããã©ããªç¹ã¨ãã¦ã¯ã
- ãã¼ãã¡ã¢ãªãconsãããªã
- consã«å¯¾ãã¦ç ´å£çä»£å ¥ãã§ããªã
ã§ãcons/car/cdr ã ãã§å ¨é¨ããã°ã©ã æ¸ãã¿ãããªå 容ã
æã«ãªãããã«ã¯ @logicmachine ãã¢ã»ã³ããªã§äºåæ¨ã®èªã¿æ¸ããä½ã£ã¦ãããç ´å£çä»£å ¥ç¡ãã®äºåæ¨ã®ããããã£ã¦ãããªç°¡åã«å®è£ ã§ãããã ã£ãâ¦ã³ã¼ãè¦ããèªããªãã£ã(ä»è¦ã¦ãããããããªã)ã
lightning ã¯â¦
ã ããããã¾è¦ãã¦ãªãã
3æ¥ç®(æ¥æ¬æéã§)ã¯â¦ããã¾è¦ãã¦ãªããªâ¦@tomerun ãã·ãã¥ã¬ã¼ã¿ãä½ã£ãã®ã§ããã«è¡¨ç¤ºãä»ãã¦éãã§ããã¨æãã
@foota ãä½ã£ãghostãå¼·ãã¨ãã話ã«ãªã£ãã®ã§ãåãghostä½ããããªã£ã¦å°ã触ã£ãããã¬ã¸ã¹ã¿ã¨ãèããã®ãå«ã«ãªã£ã¦ã³ã³ãã¤ã©ãä½ã£ãã3æ¥ã§äºå parse.y ãæ¸ãæ©ä¼ã¯å¤åäºåº¦ã¨ç¡ãã ãããªâ¦(ã¾ãååãããã³ããã ãã©)
ãããã«ã³ã³ãã¤ã©ãä½ãã®ã«é£½ããã®ã§ã·ãã¥ã¬ã¼ã¿ã«äººéå ¥åæ©è½ãä»ãã¦éãã§ããã
4æ¥ç®(ä»æ¥)ã¯â¦@logicmachine ãä½ã£ãJavaScriptã®ã·ãã¥ã¬ã¼ã¿ã§ã¯åãããã°ã©ã ãã¸ã£ãã¸ã·ã¹ãã ã«æ稿ããã¨ãåããªãã¨ãã話é¡ã«ãªã£ã¦ãã¾ãããããã®ã³ã¼ãã¯åã«ã¯èªããªãããã«ãªã£ã¦ãã¦ããã¾ãæä¼ããç¶æ ã§ããªãã£ãã®ã§ããããã®AIã§ãä½ãããã¨æã£ã¦å°ãæãåºãããé£ããã¨æãã¾ããã(ããªã¿ãã)
ã¸ã£ãã¸ã·ã¹ãã ã¯åºåãã¹ã³ã¢ããç¡ãã®ã§ã@logicmachineã¯å³ã«åãã¦ã¹ã³ã¢ãå ¥ããå ¥ããªããã ãã§å¤å®ãã¦ãããã°ãã¦ããããããçµæã¯ã¸ã£ãã¸ã·ã¹ãã ã®ãã°ã§ã2 * (1<<31) ãã0 ã§ã¯ãªãã¦ãINT_MAXã«ãªãã¨ããæåã ã£ãããããããHaskellã£ã¦ãã°ããªãã®ã§ã¯ãªãã£ãã®ï¼
http://icfpcontest.org/game.html ãHaskellãJavaScriptã«å¤æããghcjsã§å®è£ ããã¦ããã®ã ãããããã¯ãã½é ãã®ã¨ãããã¦ãä»å¾Haskellerãç ½ãç´ æã¨ãã¦ä½¿ã£ã¦ããããã¨æã£ãã
ã¾ãåé¡ã¯ããã£ãã®ã§(çµå±ã¸ã£ãã¸ã·ã¹ãã ã¯ä¿®æ£ãããªãã£ããã©)ãèªä½lambdaman AIã¯æ¨ã¦ã¦Ghostãæ¸ãã¦ããããããªãã«è¯ãçµæã«ãªã£ã¦æçµæåºç©ã«ãªã£ãã®ã§ãã´ã¼ã¹ãã³ã³ãã¤ã©ã¯ãã®ä¸åãã使ããªãã£ããã©ä½ã£ãç²æããã£ãã
å¤å°èª¿æ´ãã¦ããæéçµãã£ããæå¾ã®èª¿æ´ã¯ããªãããè¯ããªã£ããæªããªã£ããããããããªãæãã«ãªã£ã¦ãæå¿ãã¨ãã¦ã¯ããªãããµããµãããæãã®æå¿ãã§çµãã£ã¦ãã¾ã£ãã
ã¾ãåé¡ã¯ã²ã¼ã ã£ã½ãè¦ãç®ã ã£ãããååã¯å¾æåéã ã£ãããã楽ããã£ãããªã¨æãã
ãã¨ãã¤ãã¨éã£ã¦3æ¥ç®ãçãã¦ããã