Set, the card game: Difference between revisions

m
→‎{{header|Phix}}: added a base 3 comment
(→‎{{header|Phix}}: simplified via more remainder 3 tricks (similar to Julia))
m (→‎{{header|Phix}}: added a base 3 comment)
Line 220:
 
=={{header|Phix}}==
Cards are 0..80 in decimal, which is 0000..2222 in base 3, and this could probably be simplifed even further,<br>
eg using sprintf("%04a",<nowiki>{{3,card}}</nowiki>) and subtracting '/' from each digit to get indices 1..3 to the constants.
<!--<syntaxhighlight lang="phix">(phixonline)-->
<span style="color: #008080;">with</span> <span style="color: #008080;">javascript_semantics</span>
7,820

edits