day2: fix forth solution

master
Clyne 2 years ago
parent ad6eddeeb7
commit 11f2b58b18

@ -2,7 +2,7 @@
2 constant paper
3 constant scissors
: is-win ( them us -- yes ) - dup <0 swap 2 = or ;
: is-win ( them us -- yes ) - dup -1 = swap 2 = or ;
: get-score ( them us -- score )
2dup is-win if 6 + else

Loading…
Cancel
Save