¥×¥Á¥³¥ó3¹æ¡õBIG¤Þ¤È¤áWiki

Brainfuck Terminal OSP

¥Ñ¥ó¤¯¤º¥ê¥¹¥È

2017ǯ12·î2ÆüÅê¹Æ / Åê¹Æ¼Ô : Ryou Tanpo / ¥¿¥° : Åê¹Æ¥×¥í¥°¥é¥à ¥Ä¡¼¥ë Brainfuck

³µÍ×

Brainfuck Terminal ¤È¤Ï

Brainfuck ¥×¥í¥°¥é¥à¤ò¡¢TXT ¥Õ¥¡¥¤¥ë¡¢¤Þ¤¿¤Ï¥³¥Þ¥ó¥É¥é¥¤¥ó¤«¤é¼Â¹Ô¤Ç¤­¤ë¥¿¡¼¥ß¥Ê¥ë¤Î¤è¤¦¤Ê¤â¤Î¤Ç¤¹¡£

¤½¤â¤½¤â Brainfuck ¤È¤Ï

Brainfuck ¤Ï C ¤ä SmileBASIC ¤Î¤è¤¦¤Ê¤Ò¤È¤Ä¤Î¥×¥í¥°¥é¥ß¥ó¥°¸À¸ì¤Ç¤¹¤¬¡¢Ì¿Îá¤È¤·¤Æ8ʸ»ú¤Îµ­¹æ(+ - < > [ ] , .)¤·¤«»È¤ï¤Ê¤¤ÆÃħ¤¬¤¢¤ê¤Þ¤¹¡£
²ÄÆÉÀ­¤ÏÄ㤯¡¢Ê¸»úÎó¤òɽ¼¨¤¹¤ë¤À¤±¤Ç²¿½½Ê¸»ú¤â¤Î¥×¥í¥°¥é¥à¤Ë¤Ê¤ê¤Þ¤¹¤¬¡¢À¤¤ÎÃæ¤Ë¤Ï Brainfuck ¤Ç½ñ¤«¤ì¤¿¡¢Brainfuck ¤ò¼Â¹Ô¤¹¤ë¥¤¥ó¥¿¥×¥ê¥¿¤â¤¢¤ë¤â¤Î¤Ç¡¢Í¿¤¨¤é¤ì¤¿¤¿¤Ã¤¿8ʸ»ú¤ÎÌ¿Îá¤Ç¡¢¤É¤³¤Þ¤Ç¤Î¤³¤È¤¬¼Â¸½¤Ç¤­¤ë¤«»î¤·¤Æ¤¤¤ë¿Í¤â¤¤¤ë...¤Î¤«¤Ê¡£

´ðËÜŪ¤Ê¹Í¤¨Êý¤È¤·¤Æ¤Ï¡¢¤¤¤¯¤Ä¤«¤ÎÍ×ÁÇ¿ô *1 ¤ÎÇÛÎó¤È¡¢ÇÛÎó¤Î¤¢¤ëÍ×ÁǤò»Ø¤¹¥Ý¥¤¥ó¥¿ *2 ¤¬¤¢¤ê¡¢¥Ý¥¤¥ó¥¿¤òÁý¤ä¤·¤¿¤ê¡¢¸º¤é¤·¤¿¤ê¤¹¤ë¤³¤È¤ÇÇÛÎó¤ÎÍ×ÁǤòÁªÂò¤·¤Æ¡¢Í×ÁǤòÁàºî¤¹¤ë¡¢¤È¤¤¤¦¤³¤È¤Ç¤¹¡£¤Þ¤¿¡¢¥Ç¡¼¥¿¤ò²èÌ̤Ëɽ¼¨¤¹¤ë¤È¤­¤â¥Ý¥¤¥ó¥¿¤ÇÁªÂò¤µ¤ì¤¿Í×ÁǤ¬É½¼¨¤µ¤ì¤Þ¤¹¡£

Î㤨¤Ð¡¢SmileBASIC ¤Ë A[256] ¤È¤¤¤¦ÇÛÎóÊÑ¿ô¤È P ¤È¤¤¤¦ÊÑ¿ô¤¬¤¢¤Ã¤¿¤È¤·¤Æ¡¢ P ¤ò¥Ý¥¤¥ó¥¿¤È¤·¤Þ¤¹¡£¤¹¤ë¤È¡¢P ¤¬ 0 ¤Ç¤¢¤ë¤È¤­¤Ï¡¢¡Ö²èÌ̤Ëʸ»ú¤òɽ¼¨¤·¤Æ¤¯¤ì¡¼¡×¤È¤¤¤Ã¤¿¤È¤­¤Ë A[0] ¤¬É½¼¨¤µ¤ì¤ë¤³¤È¤Ë¤Ê¤ê¤Þ¤¹¡£¤Ä¤Þ¤ê¡¢Æ±ÍÍ¤Ë P ¤¬ 3 ¤À¤Ã¤¿¤È¤­¤Ï¡¢ A[3] ¤¬É½¼¨¤µ¤ì¤Þ¤¹¡£
¤³¤ì¤Ï¡¢²èÌ̤Ëʸ»ú¤òɽ¼¨¤¹¤ë¾ì¹ç¤Ë¸Â¤é¤º¡¢¼ÂºÝ¤ËÍ×ÁǤÎÃͤòÁàºî¤¹¤ë¤È¤­¡¢¤Þ¤¿ SmileBASIC ¤Ç¤¤¤¦ WHILE ¤ËÁêÅö¤¹¤ëÌ¿Îá¤Ê¤É¤Ç¤âƱ¤¸¤Ç¤¹¡£

SmileBASIC ¤È°ã¤Ã¤Æ¡¢¼ÂºÝ¤ËÍ×ÁǤÎÃͤòÁý¤ä¤¹¤È¤«¡¢²èÌ̤òɽ¼¨¤¹¤ëºÝ¤Ë¡Ö²¿¤ò¡×Áàºî¤¹¤ë¤È¤«¡¢¡Ö²¿¤ò¡×ɽ¼¨¤¹¤ë¤È¤«¤ò»ØÄꤷ¤Ê¤¤Âå¤ï¤ê¤Ë¡¢¥Ý¥¤¥ó¥¿¤òÆ°¤«¤·¤ÆÍ×ÁǤòÁª¤ó¤Ç¡¢¡Ö¤¸¤ã¤¢É½¼¨¤·¤Æ¡×¤È¤¤¤ï¤ì¤¿¤È¤­¤Ï¡¢¤½¤Î¥Ý¥¤¥ó¥¿¤¬»Ø¤·¤Æ¤¤¤ëÍ×ÁǤòɽ¼¨¤¹¤ë¤È¸À¤Ã¤¿´¶¤¸¤Ç¤¹¡£

¤Þ¤¢¡¢¼ÂºÝ¤Ë¥ê¥Õ¥¡¥ì¥ó¥¹¤ä¥µ¥ó¥×¥ë¥×¥í¥°¥é¥à¤ò¸«¤ì¤Ð¤ï¤«¤ë¤È»×¤¤¤Þ¤¹¡£

»È¤¤Êý

¼Â¹Ô¤¹¤ë¤È¥×¥í¥ó¥×¥È¤¬½Ð¤Æ¤¯¤ë¤Î¤Ç¡¢ÀìÍѤΥ³¥Þ¥ó¥É¤«¡¢Ä¾ÀÜ Brainfuck ¥×¥í¥°¥é¥à¤òÆþÎϤ·¤Þ¤¹¡£

  • "," ¤Ë¤è¤ëÆþÎÏÂÔ¤Á¤Ç¤Ï¡¢L ¥Ü¥¿¥ó¤ò²¡¤·¤Ê¤¬¤é Enter ¥­¡¼¤ò²¡¤¹¤È¡¢Ê¸»ú¥³¡¼¥É 0 ¤òÆþÎϤ·¤¿¤³¤È¤Ë¤Ê¤ê¤Þ¤¹¡£¤Ä¤Þ¤ê¡¢ÆþÎϤ·¤¿Ê¸»ú¥³¡¼¥É¤ò¥ë¡¼¥×¤Î·Ñ³¾ò·ï¤Ë¤·¤Æ¤¤¤ë¾ì¹ç *3 ¤Ï¡¢¤³¤ÎÁàºî¤ò¹Ô¤¦¤³¤È¤Ç¥ë¡¼¥×¤ò½ªÎ»¤µ¤»¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£
  • X ¥Ü¥¿¥ó¤Ç¥×¥í¥°¥é¥à¤òÄä»ß¤·¤Þ¤¹¡£(ver1.0.1 ¤Î¤ß)
  • Brainfuck ¥×¥í¥°¥é¥à¤Ç¤Ï¡¢Brainfuck ¤Î³ÆÌ¿Îá °Ê³°¤Ï̵»ë¤µ¤ì¤Þ¤¹¡£

¼Â¹ÔÎã

  1. £Â£Ò£Á£É£Î£Æ£Õ£Ã£Ë¡ä¡¡¡¤¡Î¡¥¡¤¡Ï
  2. £Á£Â£Ã
  3. £Â£Ò£Á£É£Î£Æ£Õ£Ã£Ë¡ä¡¡£Ì¡¡£Å£Ã£È£Ï
  4. £Ì¡§¥Õ¥¡¥¤¥ë¡Ç£Å£Ã£È£Ï¡Ç¤¬¤ß¤Ä¤«¤ê¤Þ¤»¤ó
  5. £Â£Ò£Á£É£Î£Æ£Õ£Ã£Ë¡ä¡¡£Ó¡¡£Å£Ã£È£Ï¡¡¡¤¡Î¡¥¡¤¡Ï
  6. £Â£Ò£Á£É£Î£Æ£Õ£Ã£Ë¡ä¡¡£Ì¡¡£Å£Ã£È£Ï
  7. £Á£Â£Ã
  8. £Â£Ò£Á£É£Î£Æ£Õ£Ã£Ë¡ä

¥×¥í¥ó¥×¥È¤Ç¤Î¥³¥Þ¥ó¥É

  • ¼Â¹Ô¤¹¤ë¤È¥×¥í¥ó¥×¥È¤¬½Ð¸½¤·¤ÆÆþÎÏÂÔ¤Á¤Ë¤Ê¤ê¤Þ¤¹¡£
  • Brainfuck ¥×¥í¥°¥é¥à¤òľÀÜÆþÎϤǤ­¤ë¤Û¤«¡¢¥Õ¥¡¥¤¥ë¤«¤é¤Î¼Â¹Ô¤Î¤¿¤á¤Ë°Ê²¼¤Î¥³¥Þ¥ó¥É¤¬ÍÑ°Õ¤µ¤ì¤Æ¤¤¤Þ¤¹¡£
    • ¥³¥Þ¥ó¥É¤È³Æ°ú¿ô¤Ï¥¹¥Ú¡¼¥¹¤Ç¶èÀڤäƤ¯¤À¤µ¤¤¡£
F
FILES ¤ÈƱÍͤΥե¡¥¤¥ë°ìÍ÷¤òɽ¼¨¤·¤Þ¤¹¡£
L ¥Õ¥¡¥¤¥ë̾
»ØÄꤵ¤ì¤¿¥Õ¥¡¥¤¥ë¤«¤é Brainfuck ¥×¥í¥°¥é¥à¤ò¼Â¹Ô¤·¤Þ¤¹¡£
S ¥Õ¥¡¥¤¥ë̾ ¥×¥í¥°¥é¥à
»ØÄꤵ¤ì¤¿¥Õ¥¡¥¤¥ë¤Ë Brainfuck ¥×¥í¥°¥é¥à¤òÊݸ¤·¤Þ¤¹¡£¥×¥í¥°¥é¥à¤Ë¥¹¥Ú¡¼¥¹¤ò´Þ¤à¤³¤È¤Ï¤Ç¤­¤Þ¤»¤ó¡£

Brainfuck ¥ê¥Õ¥¡¥ì¥ó¥¹

>
¥Ý¥¤¥ó¥¿¤ò 1 ¿Ê¤á¤Þ¤¹¡£
INC P
<
¥Ý¥¤¥ó¥¿¤ò 1 Ìᤷ¤Þ¤¹¡£
DEC P
+
¥Ý¥¤¥ó¥¿¤Î»Ø¤¹Í×ÁǤò 1 Áý¤ä¤·¤Þ¤¹¡£
INC A[P]
-
¥Ý¥¤¥ó¥¿¤Î»Ø¤¹Í×ÁǤò 1 ¸º¤é¤·¤Þ¤¹¡£
DEC A[P]
[
¥Ý¥¤¥ó¥¿¤Î»Ø¤¹Í×ÁǤ¬ 0 ¤Ç¤¢¤ë¤È¤­¡¢Âбþ¤¹¤ë ] ¤Ë¥¸¥ã¥ó¥×¤·¤Þ¤¹¡£
WHILE A[P]
[
¥Ý¥¤¥ó¥¿¤Î»Ø¤¹Í×ÁǤ¬ 1 ¤Ç¤¢¤ë¤È¤­¡¢Âбþ¤¹¤ë [ ¤Ë¥¸¥ã¥ó¥×¤·¤Þ¤¹¡£
WEND
,
¥Ý¥¤¥ó¥¿¤Î»Ø¤¹Í×ÁÇ¤Ë 1 ʸ»úÆþÎϤ·¤Þ¤¹¡£ÃͤÏÆþÎϤµ¤ì¤¿Ê¸»ú¥³¡¼¥É¤È¤Ê¤ê¤Þ¤¹¡£
REPEAT K$=INKEY$():UNTIL K$!=üþüþ:A[P]=ASC(K$)
.
¥Ý¥¤¥ó¥¿¤Î»Ø¤¹Í×ÁǤòʸ»ú¥³¡¼¥É¤È²ò¼á¤·¤Æɽ¼¨¤·¤Þ¤¹¡£
PRINT CHR$(A[P]);

¥µ¥ó¥×¥ë

echo

  1. ¡¤¡Î¡¥¡¤¡Ï
  • ÆþÎϤµ¤ì¤¿Ê¸»ú¤òɽ¼¨¤·¤Þ¤¹¡£
  • L ¥Ü¥¿¥ó + Enter ¥­¡¼¤Ç½ªÎ»¤Ç¤­¤Þ¤¹¡£

¥×¥í¥°¥é¥à¥ê¥¹¥È

ver1.0.0

IMG_3869.PNG
½¤Àµ
  • @2 ¤Î¸å¤Î INC M[P] ¢ª DEC M[P]

ver1.0.1

IMG_3876.JPG

CHECKER FLAG (¤Ò¤È¤³¤È¥³¥á¥ó¥È)

¤³¤ÎºîÉʤËÂФ¹¤ë¥³¥á¥ó¥È¤¬¤¢¤ì¤Ð°ì¸À¤É¤¦¤¾¡£(ºîÉʤËľÀÜ´Ø·¸¤Ê¤¤¼ÁÌä¤ä»¨Ã̤ϷǼ¨ÈĤØ)


¥á¥Ë¥å¡¼ ¡Ú3¹æ¡Û

¥Ø¥ë¥×

¥ê¥ó¥¯

ºÇ¶á¤Î¹¹¿·

ºÇ¶á¤Î¿Íµ¤¥Ú¡¼¥¸

¥ª¥ó¥é¥¤¥ó¾ðÊó

  • ¸½ºßƱ»þ¤Ë 1 ¿Í¤¬¤³¤Î¥µ¥¤¥È¤ò¸«¤Æ¤¤¤Þ¤¹
  • ¤³¤Î¥Ú¡¼¥¸¤Ï¤³¤ì¤Þ¤Ç¤Ë 1805 ²ó¡¢ËÜÆü¤Ï 1 ²ó¡¢ºòÆü¤Ï 0 ²ó±ÜÍ÷¤µ¤ì¤Þ¤·¤¿

¥Ú¡¼¥¸¤ÎÀèƬ¤ËÌá¤ë

*1 ¤³¤Î Brainfuck ¥¤¥ó¥¿¥×¥ê¥¿¤Ç¤Ï 256 ¸Ä
*2 ÇÛÎó¤Îź»ú¤È¹Í¤¨¤¿Êý¤¬¤¤¤¤
*3 Î㤨¤Ð ,[.,]

ɽ¼¨¥â¡¼¥É : [ ¥¹¥Þ¥Û¡¦3DSÂбþɽ¼¨ | ¥¯¥é¥·¥Ã¥¯É½¼¨ ]
PukiWiki 1.4.7 Copyright © 2001-2006 PukiWiki Developers Team. License is GPL. Based on "PukiWiki" 1.3 by yu-ji
¥Ú¡¼¥¸¤Î½èÍý»þ´Ö : 0.111 Éà | ¤³¤Î¥Ú¡¼¥¸¤ÎºÇ½ª¹¹¿· : 2022/09/20 (²Ð) 12:48:54 (565d) | ¥í¥°¥¤¥ó
Copyright(C) 2011-2014 ¥×¥Á¥³¥ó¤Þ¤È¤áWiki ¢¡1sxkymI8ji30