행맨/시작: 두 판 사이의 차이
< 행맨
백괴게임>Lemminkäinen 잔글 (gameNo 같은 거 CGI로 주고받아야 할 듯도...) |
백괴게임>Lemminkäinen 잔글편집 요약 없음 |
||
1번째 줄: | 1번째 줄: | ||
{{#vardefine:word|RABBIT}}<!--for explode--> | {{#vardefine:word|RABBIT}}<!--for explode--> | ||
{{#vardefine:getWrong|0}} | {{#vardefine:getWrong|0}} | ||
{{#vardefine:getRight|0}} | |||
|{{#vardefine:getWrong|{{#expr:{{#var:getWrong}}+1}}}}|}}</nowiki>|{{#len:{{CGI}}}}|1|0}} | {{loop|<nowiki>{{#ifeq:{{#count:{{CGI}}|{{#sub:{{CGI}}|{{{index}}}|1}}}}|0|{{#vardefine:getWrong|{{#expr:{{#var:getWrong}}+1}}}}|}}</nowiki>|{{#expr:{{#len:{{CGI}}}}-1}}|1|0}} | ||
<big> | <big> | ||
{{#switch:{{#var:getWrong}} | |||
|0=<pre> | |||
------ | |||
| | |||
| | |||
| | |||
</pre> | |||
|1=<pre> | |||
------ | |||
o | | |||
| | |||
| | |||
</pre> | |||
|2=<pre> | |||
------ | |||
o | | |||
| | | |||
| | |||
</pre> | |||
|3=<pre> | |||
------ | |||
o | | |||
-|- | | |||
| | |||
</pre> | |||
|4=<pre> | |||
------ | ------ | ||
o | | o | | ||
-|- | | -|- | | ||
/| | | /| | | ||
<div> | </pre> | ||
{{loop|<nowiki>{{#ifeq:{{#count:{{CGI}}|{{#sub:{{#var:word}}|{{{index}}}|1}}}}|0|_|{{#sub:{{#var:word}}|{{{index}}}|1}} }}</nowiki>|{{#expr:{{#len:{{#var:word}}}}-1}}|1|0}} | |5=<pre> | ||
------ | |||
o/ | | |||
-|- | | |||
/| | | |||
</pre> | |||
|6=<pre> | |||
------ | |||
o/ | | |||
/|\ | | |||
/| | | |||
</pre> | |||
|#default= | |||
No cheat please. | |||
}} | |||
<div><!--주의:중복 알파벳의 가능성이 있어, getRight은 string길이-getWrong으로 계산하지 않습니다.--> | |||
{{loop|<nowiki>{{#ifeq:{{#count:{{CGI}}|{{#sub:{{#var:word}}|{{{index}}}|1}}}}|0|_|{{#sub:{{#var:word}}|{{{index}}}|1}} {{#vardefine:getRight|{{#expr:{{#var:getRight}}+1}}}}}}</nowiki>|{{#expr:{{#len:{{#var:word}}}}-1}}|1|0}} | |||
</div> | </div> | ||
21번째 줄: | 63번째 줄: | ||
--> | --> | ||
<div> | <div> | ||
{{#ifeq:{{#var:getRight}}|{{#len:{{#var:word}}}}|축하한다. 행맨 게임에서 생존했다.|{{#ifeq:{{#var:getWrong}}|6|[[너는 죽었다]]. 그 단어는 {{#var:word}}였다.| | |||
{{#ifeq:{{#count:{{CGI}}|A}}|0|{{CGI|{{#ifeq:{{CGI}}|0||{{CGI}}}}A|A}}|A}} {{#ifeq:{{#count:{{CGI}}|B}}|0|{{CGI|{{#ifeq:{{CGI}}|0||{{CGI}}}}B|B}}|B}} {{#ifeq:{{#count:{{CGI}}|C}}|0|{{CGI|{{#ifeq:{{CGI}}|0||{{CGI}}}}C|C}}|C}} {{#ifeq:{{#count:{{CGI}}|D}}|0|{{CGI|{{#ifeq:{{CGI}}|0||{{CGI}}}}D|D}}|D}} {{#ifeq:{{#count:{{CGI}}|E}}|0|{{CGI|{{#ifeq:{{CGI}}|0||{{CGI}}}}E|E}}|E}} {{#ifeq:{{#count:{{CGI}}|F}}|0|{{CGI|{{#ifeq:{{CGI}}|0||{{CGI}}}}F|F}}|F}} {{#ifeq:{{#count:{{CGI}}|G}}|0|{{CGI|{{#ifeq:{{CGI}}|0||{{CGI}}}}G|G}}|G}} {{#ifeq:{{#count:{{CGI}}|H}}|0|{{CGI|{{#ifeq:{{CGI}}|0||{{CGI}}}}H|H}}|H}} {{#ifeq:{{#count:{{CGI}}|I}}|0|{{CGI|{{#ifeq:{{CGI}}|0||{{CGI}}}}I|I}}|I}} {{#ifeq:{{#count:{{CGI}}|J}}|0|{{CGI|{{#ifeq:{{CGI}}|0||{{CGI}}}}J|J}}|J}} {{#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