New answers tagged game
1
vote
Even or odd: three player
Perl 5 -p, 49 bytes
$_=(0,C,B,A,A..C)[oct"0b".s/./$&%2/ger]||"no one"
Try it online!
Takes input as ...
2
votes
Count without 3
Swift, 84 bytes
func f(_ n:Int)->Int{var n=n+1;while String(n).contains("3")||n%3==0{n+=1};return n}
1
vote
Even or odd: three player
Vyxal 3, 18 bytes
eB"0CBA"ṁi0"5FZᵃ”r
Try it Online!
-11 bytes thanks to @Aaroneous MIller
Explanation (Outdated):
...
1
vote
Count without 3
Google Sheets, 63 bytes
=+let(n,sequence(254),filter(n,n>A1,mod(n,3),iserr(find(3,n))))
Put the input in cell A1 and the ...
1
vote
Count without 3
GNU sed -E, 148 bytes
Could be easier with a language with a modulo operator. Or division. Or counting. Or some idea about what numbers are. ...
1
vote
Top 50 recent answers are included
Related Tags
game × 309code-golf × 233
code-challenge × 33
king-of-the-hill × 31
decision-problem × 28
grid × 28
board-game × 25
random × 23
string × 20
number × 16
card-games × 14
array × 10
math × 9
python × 9
javascript × 9
puzzle-solver × 9
ascii-art × 8
arithmetic × 8
combinatorics × 8
fastest-code × 7
path-finding × 7
graphical-output × 6
minesweeper × 6
go × 6
kolmogorov-complexity × 5