The Bot Bikeshed
-
0.955
-
@error_bot eval def signum f = min(max(round(f), -1), 1)
-
Error: lex failed; remaining: = min(max(round(f), -1), 1); match: null
-
@error_bot eval def signum f as min(max(round(f), -1), 1)
-
Error: child should be an expression
-
@error_bot eval pow(1/999,999999999999999999999999)
-
0
Ā
Ā
-
@DMBot roll 12d12 for shits and giggles
-
@Gribnit
shits and giggles: 69
12d12[69 (5, 9, 3, 1, 1, 5, 5, 11, 9, 6, 11, 3)]
-
@DMBot roll 12d12 for
-
@Gribnit
result: 81
12d12[81 (1, 6, 7, 12, 12, 11, 3, 6, 6, 1, 4, 12)]
-
@DMBot roll 12d12 for Ā
-
@Gribnit
Ā : 82
12d12[82 (3, 11, 2, 6, 4, 2, 12, 5, 6, 12, 8, 11)]
-
@DMBot roll 12d12 for ā®
-
@Gribnit
ā®: 76
12d12[76 (12, 1, 5, 6, 11, 3, 2, 12, 6, 1, 11, 6)]
-
@DMBot roll 12d12 for ā®ļæ½
-
@Gribnit
ā®ļæ½: 61
12d12[61 (8, 3, 8, 3, 2, 4, 6, 4, 9, 4, 9, 1)]
-
@DMBot roll 12d12 for ā®ā®
-
@Gribnit
ā®ā®: 91
12d12[91 (5, 9, 11, 3, 8, 8, 5, 6, 8, 11, 6, 11)]
-
@error_bot eval "def sindeg(t) =>sin(deg2rad(t)); def cosdeg(t) => cos(deg2rad(t)); let x=1d360; x; sindeg(x); cosdeg(x)"
-
291 -0.934 0.358
-
@error_bot eval signum(1) signum(-1)
-
1 -1
-
This post is deleted!
-
@error_bot eval foo(x)=>foo(x+1); foo(1)
-
Error: Unknown statement
-
@error_bot eval def foo(x)=>foo(x+1); foo(1)
-
Error: tty expired
-
OK. We've got variables, we've got UDFs, we've got unary expressions.
Recursion works but there's no way to do conditionals so it's always infinite. +1 Useful
-
@error_bot eval "def isPositive(x)=>abs(floor((signum(x)+1)/2)); isPositive(3); isPositive(-5); isPositive(1)"
-
1 0 1
-
@Gribnit said in The Bot Bikeshed:
@error_bot eval 10 + ( min(max( pow( pow( 1d20-10, 2 ) + pow( 1d20-10, 2 ), 1/2 ) - 10, 0 - 1 ), 1) + min(max( pow( pow( 1d20-10, 2 ) + pow( 1d20-10, 2 ), 1/2 ) - 10, 0 - 1 ), 1) + min(max( pow( pow( 1d20-10, 2 ) + pow( 1d20-10, 2 ), 1/2 ) - 10, 0 - 1 ), 1) + min(max( pow( pow( 1d20-10, 2 ) + pow( 1d20-10, 2 ), 1/2 ) - 10, 0 - 1 ), 1) + min(max( pow( pow( 1d20-10, 2 ) + pow( 1d20-10, 2 ), 1/2 ) - 10, 0 - 1 ), 1) + min(max( pow( pow( 1d20-10, 2 ) + pow( 1d20-10, 2 ), 1/2 ) - 10, 0 - 1 ), 1) + min(max( pow( pow( 1d20-10, 2 ) + pow( 1d20-10, 2 ), 1/2 ) - 10, 0 - 1 ), 1) + min(max( pow( pow( 1d20-10, 2 ) + pow( 1d20-10, 2 ), 1/2 ) - 10, 0 - 1 ), 1) + min(max( pow( pow( 1d20-10, 2 ) + pow( 1d20-10, 2 ), 1/2 ) - 10, 0 - 1 ), 1) + min(max( pow( pow( 1d20-10, 2 ) + pow( 1d20-10, 2 ), 1/2 ) - 10, 0 - 1 ), 1)
-
Error: mismatched bracket: expected: ), saw: none
-
@error_bot eval atan(1)*4
-
3.142
-
@error_bot eval 1d10>5 ? 1 : 0
-
Error: lex failed; remaining: >5 ? 1 : 0; match: null
-
-
@Jaloopa said in The Bot Bikeshed:
People: we need the ability to roll dice via bot.
Your is leaking
-
@Jaloopa said in The Bot Bikeshed:
People: we need the ability to roll dice via bot.
Me: [Takes 2 hours to hack together a simple dice parser with ANTLR. No arbitrary expression evaluation, no functions, just rolling dice as the game needs]
-
@Jaloopa said in The Bot Bikeshed:
People: we need the ability to roll dice via bot.
I don't think @error's ever heard of gloves
-
@DMBot roll 1d3r2
-
@Gribnit
result: 2
1d3r2[2 (1, 2)]
-
@DMBot roll 1d3R2
-
@Gribnit
result: 1
1d3r2[1 (2, 1)]
-
@DMBot roll 1d2r1
-
@Gribnit
result: 2
1d2r1[2 (1, 2)]
-
@DMBot roll 1d2r1
roll 1d2r1
roll 1d2r1
roll 1d2r1
roll 1d2r1
roll 1d2r1
-
@Gribnit
result: 2
1d2r1[2]result: 2
1d2r1[2]result: 1
1d2r1[1 (1, 1)]result: 2
1d2r1[2]result: 2
1d2r1[2]result: 1
1d2r1[1 (1, 1)]
-
@DMBot roll 1d2R1
roll 1d2R1
roll 1d2R1
roll 1d2R1
roll 1d2R1
roll 1d2R1