« first day (1769 days earlier)      last day (3369 days later) » 

19:04
@Dennis So sorry, but I pushed again. xD I forgot to push something that I was going to add last version.
Is Java O.K with single-line if statements?
Anonymous
@CᴏɴᴏʀO'Bʀɪᴇɴ yep
@CᴏɴᴏʀO'Bʀɪᴇɴ It's okay with anything single line. ;)
That.
You can squash a whole Java program into a single line. Java is not line-oriented.
19:06
Java is single line. xD
I mean, as in if(x) y;
It just removes whitespace when it compiles.
Oh.
@CᴏɴᴏʀO'Bʀɪᴇɴ Yes.
Yeah. That too. :P
19:06
@FlagAsSpam It doesn't "remove" whitespace; the lexer still takes whitespace into account but it doesn't appear as a token.
@FlagAsSpam Pulled. No worries.
I thought it just straight up ignored it when it compiled. o-o (that's what I meant by removed)
@Dennis \o/
Does anyone have Java and can test my solution for this?
42
Q: You are the Weakest Link, Goodbye

Nathan MerrillThis king-of-the-hill challenge is based off of the game show, Weakest Link. For those unfamiliar with the show, the crux of this challenge deals with who you vote off: If the other players are smarter than you, then you have less of a chance of getting the pot. If the other players are dumb...

I'm using a device w/out Java compiler
Sure @CᴏɴᴏʀO'Bʀɪᴇɴ
Anonymous
@FlagAsSpam It's more like, in most cases, it says to the whitespace "I see you but I don't care"
19:08
Gimmie a sec
@sweerpotato I had figured out a way in PowerShell to do something similar to your Python versioning, but now I'll feel bad posting it because it'll just look like I'm copying you
@TimmyD don't worry!
It's all good and fun :~)!
19:10
@FlagAsSpam ಠ_ಠ what does it use for eval?
@CᴏɴᴏʀO'Bʀɪᴇɴ Magic and witchery. :D
@CᴏɴᴏʀO'Bʀɪᴇɴ code?
@FlagAsSpam ... I am sad that ^ is XOR ;-;
Anonymous
@TimmyD Don't feel bad, post it
@FlagAsSpam ಠ_ಠ it uses JavaScript eval!?
19:11
xD
@CᴏɴᴏʀO'Bʀɪᴇɴ missing enemyIntel as a variable
Anonymous
eval is generally evil
wait
lemme fix
saw the problem
@sweerpotato I forgot an int whoops
19:12
> private static ScriptEngine jsengine = new ScriptEngineManager().getEngineByName("js");
I wish I found this years ago. xD
int enemyIntel = opps.next().intValue();
refers to currentOpponents.next() etc?
@FlagAsSpam y u no work
@sweerpotato erm yes
I don't know much java and read other peoples answers >_<
int enemyIntel = enemies.next().intValue();
@CᴏɴᴏʀO'Bʀɪᴇɴ It only captures Double and Integer outputs. :P
19:13
@FlagAsSpam ;-;
I could include string, buuuut...
buuuuuut what? :3
Anonymous
@FlagAsSpam
(~-.-)~ Fine, gimme a sec.
19:14
@CᴏɴᴏʀO'Bʀɪᴇɴ
259295 WeakestLink.Players.Sniper
257288 WeakestLink.Players.AntiExtremist
207980 WeakestLink.Players.TheCult
169030 WeakestLink.Players.Coward
150738 WeakestLink.Players.MaxPlayer
144477 WeakestLink.Players.Leech
131010 WeakestLink.Players.MinPlayer
130252 WeakestLink.Players.MeanPlayer
128021 WeakestLink.Players.RandomPlayer
80535 WeakestLink.Players.Spy
Exception in thread "main" java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Integer
	at com.VTC.vitsy.Vitsy.opHandle(Vitsy.java:317)
	at com.VTC.vitsy.Vitsy.main(Vitsy.java:88)
That turned out worse than I expected.
@Mego how does Seriously js interpret python?
19:15
@CᴏɴᴏʀO'Bʀɪᴇɴ fixed code: pastebin.com/n75GF9YL
Anonymous
@quintopia ?
@sweerpotato Quick question: Are the players numbered from 0 - max, or from 0 - 9, randomly?
@sweerpotato thanks :D
@Mego I like the assert serious_checks in the test file. Like there were less serious assert dont_care_tests in some other place.
randomly
iirc
0
A: Sandbox for Proposed Challenges

Thomas KwaIs this an arithmetico-geometric sequence? code-golf math An arithmetico-geometric sequence is the elementwise product of an arithmetic sequence and a geometric sequence. For example, 1 -4 6 -32 is the product of the arithmetic sequence 1 2 3 4 and the geometric sequence 1 -2 4 -8. Given an or...

19:15
@sweerpotato okay thanks
Anonymous
@Zgarb :P
Tell me if you want me to test it again
@Mego autocorrect
19:16
I really like your challenge.
Anonymous
There's also the SeriousFunction class that handles functional values :P
Anonymous
@quintopia The interpreter? It just passes the code to the Python script. It uses Flask for the webserver, which calls subprocess.Popen
0
Q: Euchre bots (card game)

The BeanstalkThe idea of this challenge is simple: create a bot to play the card game Euchre. For those of you who don't already know them, I've written out the rules to Euchre here as they pertain to this challenge. I recommend using python or something similar, but the only real restriction is that it has...

Never heard of Flask
Anonymous
It's pretty neat
Anonymous
19:19
I learned about it thanks to @phase
@Dennis Pull one more time, please? #blame@CᴏɴᴏʀO'Bʀɪᴇɴ for this one.
@FlagAsSpam cc @Dennis Sowee ;-;
@FlagAsSpam Does dennis do tryitonline?
@FlagAsSpam I will. Pulled.
@CᴏɴᴏʀO'Bʀɪᴇɴ Dennis does.
It's the sole reason Vitsy has an online interpreter. xD
19:21
@Dennis Sorry again XD
That's really cool!
@CᴏɴᴏʀO'Bʀɪᴇɴ
265620 WeakestLink.Players.AntiExtremist
253745 WeakestLink.Players.Sniper
204178 WeakestLink.Players.TheCult
170069 WeakestLink.Players.Coward
157046 WeakestLink.Players.Leech
148634 WeakestLink.Players.MaxPlayer
139943 WeakestLink.Players.MinPlayer
125326 WeakestLink.Players.MeanPlayer
115717 WeakestLink.Players.RandomPlayer
107511 WeakestLink.Players.Spy
A little better!
I'm so confused XD
Ermehgerd I'm sorry Dennis, I just realized there's an error in my code. x.x
I guess voting off the smarter players makes me win more? :/
I have no idea
I was satisfied with writing a bot which always turn out in the middle
:D
19:22
XD nice!
ooo I have an idea
"closest player"
None of the min/max crud
That's what I did! :~)!
oh darn
which one?
Anonymous
It's really gonna be between Anti, Sniper, and Cult, I think
You may or may not be inspired by my code
@Mego Me too, though I don't plan on winning.
thanks
@sweerpotato phews my idea is distinct.
OK, posted. Thanks for the encouragement.
@TimmyD have an upvote for the PS answer
Sweet!
Now my Python answer is my most upvoted answer.. :|
@Mego that leaderboard shows me as the leader
:X
It's clever. Clever is good.
Anonymous
Yeah it broke on decimals
19:28
My proudest moment
Anonymous
I gotta find the other version of it that works with them
@Dennis One last pull - made a fail. xD Last time I'll ask to pull today.
Sorry.
First time I beat the Sauron of code
even though it's not legit
@FlagAsSpam Cursor up. Enter. No worries.
Anonymous
19:31
Fixed it
aww
Well done @Mego
@Mego You use Chrome?
Anonymous
@FlagAsSpam Yep, and browser elitism is dumb
@FlagAsSpam Netscape Navigator 4 lyfe
Anonymous
Unless it's NN
19:33
Exception in thread "main" java.util.NoSuchElementException: No line found
	at java.util.Scanner.nextLine(Scanner.java:1540)
	at com.VTC.vitsy.Vitsy.opHandle(Vitsy.java:471)
	at com.VTC.vitsy.Vitsy.main(Vitsy.java:88)
Or Lynx
Anonymous
In which case it's acceptable to throw rocks at the kid eating glue
absolute value in java?
@CᴏɴᴏʀO'Bʀɪᴇɴ Math.abs(number)
> Math.abs
19:34
do I need to import anything?
> abs
Nah. Math is in java.lang, it'll do it on its own.
Anonymous
i'm an idiot
Anonymous
Err
@FlagAsSpam If it works locally, it should work on TIO. Which code is this?
19:36
Vitsy is told to wait until next input line. :P
That can't work with piped input.
@sweerpotato Newish idea. If I'm last again, I'm not sure what I'll do :/
@CᴏɴᴏʀO'Bʀɪᴇɴ gimmie a sec, I need a toilet adventure :X
Yeah, I know, but if no input is piped, then it'll wait for the next line is what I'ms saying.
@sweerpotato Don't worry about it ^_^
19:39
@Mego == 0 would've helped there. ;)
(n>0)?n:0-n;
Anonymous
@FlagAsSpam -3 - (-3) == 0
I'm an idiot too
2
Anonymous
we're all idiots probably sometimes
@FlagAsSpam Only if you run it from a terminal. Running it from a CGI script with no input is equivalent to piping /dev/null from a terminal.
19:41
@Dennis This is true. I'm very idiot
Alright @CᴏɴᴏʀO'Bʀɪᴇɴ
lemme try it!
hey all!
@sweerpotato yay!
271484 WeakestLink.Players.AntiExtremist
267300 WeakestLink.Players.Sniper
205665 WeakestLink.Players.TheCult
169688 WeakestLink.Players.Coward
150722 WeakestLink.Players.Leech
146371 WeakestLink.Players.Spy
143521 WeakestLink.Players.MeanPlayer
141427 WeakestLink.Players.MaxPlayer
133201 WeakestLink.Players.RandomPlayer
131485 WeakestLink.Players.MinPlayer
YESSSSSSSSSS
IM NOT THE WORST
Anonymous
19:42
Nice
closetIntel = enemyIntel;
should be closestIntel btw
#quickfix
oh whoops
@sweerpotato He's not a medic :P
(TF2 reference)
Anonymous
closetIntel "yeah there's a couple of shirts, some pants, and a skeleton"
The name comes from TF2 :P I thought "Sniper! TF2! Spy!"
@Mego haha
Anonymous
19:45
Best class though:
@Mego It's the most terriftying, granted
For me, Spy is best
except for pyros ;-;
Anonymous
Spy is pretty great
Yeah. Pyro and groups in numbers are the only match for spy
and suspicious people oc
Anonymous
That's my secret, Captain
Anonymous
19:48
I'm always suspicious
I really like how my answer turned out to be exactly 1
Anonymous
I just shoot everybody
I can probably fit a whitespace answer in there
but I don't wanna, since it makes the 1 look ugly
:|
Anonymous
19:48
Assume everyone is a spy
I like being a spy and acting suspicious around my teammates XD
>.>
I'm not a spy.
Anonymous
@FlagAsSpam shoots
hello?
Anonymous
19:49
We come in peace (shoot to kill)
@isaacg hello!
@isaacg sup
BTW, is there a fractions tool in Pyth? @isaacg
@Mego Scotty, beam me up!
19:50
No.
Pyth 5 will, though
@isaacg that's sad
What did you want it for?
so the Bernoulli challenge cannot be solved with Pyth...
@isaacg Pyth 6 will have support for whatever and love!
@FlagAsSpam hi
19:51
BTW, who is Keyboard-Fire?
@TanMath It can be, you just need to manipulate the fractions manually.
Doorknob
@TanMath ^
Anonymous
@TanMath The knob of doors
19:52
Ninja'd :D
Doorknob
@Dennis are you working on an answer to codegolf.stackexchange.com/questions/65641/… ?
speaking of which I saw a math problem talking about square doorknobs and I was like WHO EVEN HAS SQUARE DOORKNOBS ROUND DOORKNOBS ARE LIKE 9000011X TIMES BETTER
door levers are best
only muricans have doorknobs.
19:53
@sweerpotato Not right now.
(unless you have pets)
@Dennis you and Martin always come up with the sickest things
Anonymous
If you don't have pets, there's a bigger issue
I don't understand how you do it
Anonymous
Lots of experience
19:55
(reference to the popular Matrix series)
what did I just read.
3
If Dennis is Neo, then AlexA. is Agent Smith.
I DELETE IT FAST
Anonymous
I missed something exciting it seems
19:56
Now my comment seems completely useless.
@Mego the bigger issue is that your pets all died :(
<-- dead
Anonymous
I watched it get deleted but didn't have time to read it
Anonymous
@quintopia Nope, all 3 of my cats are alive and well
@Mego then you aren't a person who doesn't have pets and the conclusion "there's a bigger issue" does not apply
Any online Foo interpreters? meta.codegolf.stackexchange.com/q/202/42963 doesn't list any
@FlagAsSpam For your Minecraft Answer on the output the time question with the repeaters wouldn't it technically be outputting every X Ticks not every Second and be affected by the TPS of the host?

« first day (1769 days earlier)      last day (3369 days later) »