24 game: Difference between revisions

Content deleted Content added
Aerobar (talk | contribs)
added RPL
Aerobar (talk | contribs)
Line 10,278: Line 10,278:
STR→ DUP <span style="color:blue">GET4</span>
STR→ DUP <span style="color:blue">GET4</span>
'''CASE''' DUP 0 POS '''THEN''' DROP2 "Forbidden operator" '''END'''
'''CASE''' DUP 0 POS '''THEN''' DROP2 "Forbidden operator" '''END'''
SORT 3 PICK '''THEN''' DROP "Bad number" '''END'''
SORT 3 PICK '''THEN''' DROP "Bad number" '''END'''
EVAL DUP →NUM 3 DISP 24 == '''THEN''' 1 SF "You won!" '''END'''
EVAL DUP →NUM 3 DISP 24 == '''THEN''' 1 SF "You won!" '''END'''
"Failed to get 24"
"Failed to get 24"
Line 10,284: Line 10,284:
2 DISP 2 WAIT
2 DISP 2 WAIT
'''END''' DROP
'''END''' DROP
» '<span style="color:blue">GAM24</span>' STO
» '<span style="color:blue">GAM24</span>' STO


=={{header|Ruby}}==
=={{header|Ruby}}==