« first day (2049 days earlier)      last day (2788 days later) » 

9:02 AM
0
Q: Tips for golfing in SageMath

MegoSageMath is an open-source mathematics software system, built on Python 2. Its extensive math library support makes it a strong choice for golfing in math-based challenges. What tips do you have for golfing in SageMath? One tip per answer, please. Tips should be specifically for SageMath, and no...

 
should we make a core war room?
 
@Mego i googled i dont understand, wat iz
 
9:19 AM
@MartinEnder I've added a few more clarifications and test cases
5
A: Sandbox for Proposed Challenges

Beta DecayThe HexaGolf Series code-golf ascii-art hexagonal-grid This will be a series of challenges based upon ASCII hexagons. HexaGolf: Wordagons - Posted HexaGolf: Rotatagons - Posted HexaGolf: Validagons Challenge Given an ASCII art shape, you must find out whether the shape is a regular h...

@betseg Is that Turkish challenge difficult or not? I might give it a go
 
@BetaDecay i dunno, looks easy if your lang likes strings tho
 
I see. Python it is
 
That vowel harmony rules tho
 
@betseg Duck typing is when a lang bases on the contents of the variable to choose its type, and the variable is not restricted.
Today, it's now some kind of a "Penguin Club" out there.
Penguins. Penguins everywhere on the desktop that's not been unencumbered by the browser/modem windows.
 
@zyabin101 AAAAA CYRILLIC
 
9:34 AM
I'm using a Russian system.
Oh noes, now they are too quick.
Now there's a small chance of Santa penguins spawning, I'm a-fraid.
Now there's one, but very slow.
@DestructibleWatermelon I'm interested in the topic, I think we should.
 
kk lets do that
 
Let me do that.
(Don't worry, I'll add you as an owner.)
 
whoops, I accidentally already did...
sh**
wat do now
 
Thanks.
I'll neither talk in here, nor talk...
 
9:44 AM
Seems I'll still do discourse about Core War in TNB or the chat Sandbox... ;_;
 
why not in the core war room?
 
@BetaDecay I feel like the rule of internal spaces being optional really messes everything up, especially since space are valid characters for internal hex cells as well.
 
1 min ago, by zyabin101
I'll neither talk in here, nor talk...
 
I'd ditch that and just require things to be laid out on the staggered grid as usual.
 
@zyabin101 I don't understand what that means...
Would you like t see my crappy warrior?
 
9:47 AM
@MartinEnder Oh, alright, that's easier
 
hmmmmm, I need to add attack detectors to this, then it will be great!
OH THAT'S WHY MY CODE WAS FAILING!
 
Okay, so I'm building a so called "web of guys" that I'm gonna use in my thoughts chat room (if I ever get 1000 rep to build one). Destructible Watermelon, you're the second in that web.
 
10:13 AM
There's a Sense HAT emulator now. It's cool.
I registered on Trinket, but it put some spam trinkets in my profile.
Thanks. :I
 
@zyabin101 not sure what that means... is it good?
 
Yup, because those in the web of guys can chat in my thought room.
 
that's odd... the space between each copy of the code increases...
 
10:26 AM
I like it how Trinket displays a preview of my trinket. :3
When it's command line :)
Trinket is probably the first service where you can program Python with blocks.
 
I can't find a single challenge where the task is simply to reverse a string. An I missing one?
Never mind, found one
 
10:42 AM
That score...
 
@Emigna It's quite good if you take the absolute value...
 
True
 
Well, it's actually not the same, since it [1, 2, 'Hello'] should become ['Hello', 2, 1], not ]'olleH' ,2 ,1[...
Still trivial in most languages though,,,
 
Same as that challenge it will be most interesting in esolangs.
But it might be close enough to be considered a dupe, or a trivial change to an existing challenge
 
@Emigna Or simply just "This isn't even a challenge".
 
10:49 AM
Or that, yes
 
I bet I could get my first answer in Jelly, Pyth, cJam, APL +++, even though I've never even seen the documentation of those langs. (Of course, I wouldn't have the time to actually answer before someone else posted a bunch of answers, but I could have).
 
ok, found the bug
 
It is actually slightly wonky in 05AB1E since input gets auto-evaled as a list for that test case
still only a couple of bytes though
 
mmomormornmornimorninmorning
 
good afternoon
 
10:55 AM
@TùxCräftîñg gninromninrominromnromromomm
 
@Emigna I kind of want to create it though, for the same reasons we have these (heavily upvoted) challenges: A simple cat program, "Hello, World!", Primality testing etc.
 
-2
A: Tips for golfing in Python

WrzlprmftConsider using Sage instead It is more or less a Python extension and thus a lot that works in Python also works in Sage. The benefits: Equivalents or near-equivalents of certain functions are implemented by default, in particular I am almost certain that you never have to import math. There a...

.... no
 
@StewieGriffin It is nice that this site has a mix of simple and more advanced challenges. That lets more people have a go at it. Simple challenges can easily get 50+ submissions while harder ones usually only get a few.
As long as you design the challenge to be inclusive, it should be okay
Seems like that was the issue people had with the 1-d one
So simple most languages can do it, but too strict I/O format excluding more interesting languages
 
hi tux!
I realised my reverse imp had accidentally been a bomber, but I'm fixing it up now
also, I made a two line bot that beats your bot :P
mov 2,3
jmp -1,>-1
 
whatbot?
smartbot or evil?
 
11:04 AM
smartbot
 
also I haven't seen evil
gimme
 
;redcode-94b
;assert 1
;name evil
;kill evil
;author tuxcrafting
;strategy replicator
;date 2016-Sep-08
;version 1

start	mov 0, unnamed
	add.a #1, -1
	add.ab #1, -2
	seq.i *start, unnamed
	jmp start
	spl unnamed
loop	jmn attack, @ptr
fatck	add #10, ptr
	jmp loop
attack	mov ptr, @ptr
	jmp fatck
ptr	dat #0
unnamed	end
a simple replicator
 
my bots bugging right now, so I'll get on to beating that one soon
 
i am sure it can be optimized
 
11:08 AM
lets rumble!
I made a bot that copies it's code, but I'm not good at it and it's real big
also it still beats your because of the bomber
two liner also beats your bot...
the bomber win 76, you won 24
hue
 
y u borked smartbot ;_;
 
I really need to increase the efficiency of the main program...
two liner beats evil...
I though replicators were paper and bombers were rock....
I guess rock beat paper this time...
without the bomber part, let's see the score...
evil wins 93
also you need to stop shooting yourself
 
to stop bots to bomb itself, it would need to keep track of the current bot position and desactivate the scanner when needed
but it would be hard
 
no, it should just need to make the scanner swap with a bomber when it finds a bot
protip
 
one day i created a scanner injecting a imp when it find a enemy
 
11:15 AM
I don't know, what is the point of a scanner when you could just replace the scan with bombs
 
it dont ended very well
 
@TùxCräftîñg that would be really easy...
in fact I thought of that
 
the entire core was full of imp
 
this is why you put a process that just places data behind the code
 
@Emigna I've tried adding it to the Sandbox. I'm curious how it will be received, since it's quite simple in a bunch if languages.
 
11:21 AM
Good call. The sandbox should hopefully give some input into possible reception.
 
0
A: Sandbox for Proposed Challenges

Weeing If FirstReverse a string There are a number of "do this and that" with a string or array, but not a single challenge where the task is simply to return the reversed string. This challenge follows in the footsteps of: Hello, World! Simple cat program Is this number a prime The challenge is simply: T...

 
hooray it's no longer immediately dying!
hooray its working now!
I have no idea how but suddenly my program bombed your program
what
that's not even in the program...
aw yes, my plan worked!
wait i died anyway ._.
 
;redcode-94b
;assert 1
;name evil
;kill evil
;author tuxcrafting
;strategy replicator
;date 2016-Sep-08
;version 2

END	equ 10

start	mov 0, END
	sne.i @start, magic
	jmp end_
	add.a #1, start
	add.ab #1, start
	jmp start
end_	spl END-6
magic	dat #666
 
is this an improvement?
 
now it dont attack: it's simply a replicator
but it's quicker and more hard to kill
 
11:32 AM
error
 
improper placement of equ, of END, of END
 
@Emigna I was a (obviously) a dupe :/ Just couldn't find it.
 
11:33 AM
;redcode-94b
;assert 1
;name evil
;kill evil
;author tuxcrafting
;strategy replicator
;date 2016-Sep-08
;version 2

CEND	equ 10

start	mov 0, CEND
	sne.i @start, magic
	jmp end_
	add.a #1, start
	add.ab #1, start
	jmp start
end_	jmp CEND-6
magic	dat #666
fixed
 
@StewieGriffin Yeah, I didn't find it my search either. Peter is a beast at finding dupes!
 
gotcha! I won one, but now lets play 100
 
@Emigna Peter, the dupe eater!
 
evil can draw or lose
 
@TùxCräftîñg, it gets destroyed by reverse imp
Also two liner won all matches against that one
oh wait that was my bot ._.
two liners a bit better than your bot in a fight, but always destroys mine ._.
I really need to implement a dodge thing
 
11:38 AM
;redcode-94b
;assert 1
;name evil
;kill evil
;author tuxcrafting
;strategy replicator
;date 2016-Sep-08
;version 2

CEND	equ 10

start	mov 0, CEND
	sne.i @start, magic
	jmp end_
	add.a #1, start
	add.ab #1, start
	jmp start
end_	spl CEND-6
	jmp 0
magic	dat #666
 
revised: now it's very hard to kill
 
"hard to kill"
I'll tell you whats hard to kill
actual replicators
 
but due to the high number of thread spawned, it draw near everytime
now it get stuck in a inifinite loop after replicating itself
 
wow, good job
 
11:40 AM
so if the main ip is killed, it's needed to destroy every copy to kill it
and if evil is rewritten by a imp, 60 imps generated
 
lets see if it can actually beat two liner?
oooh, my bot won better that time, instead of your bot, I guess one of those two events was a fluke
wait, I was accidentally using old version ._.
also, not near everytime with my bot, anyway
two liner, go!
two liner destroys your bot still
you need to move faster
 
after ~4 copies, evil is really slow because of the high number of threads spawned
 
hi
 
the bot is more quick if you remove the jmp start at the end
@Rizze hi
 
anyone can suggest me an easy codegolf challenge?
 
11:46 AM
wait, if it just loops, how does it win more times?
I need to improve my bot...
 
because now the only way to kill it is to destroy every copy
 
but then it still dies, it just draws instead of losing, how does it win more now? because it moves slower? O.o
 
@Rizze Any special type of challenge you're looking for? Depending on your chosen language, difficulty can differ. A good bet is usually to check the list of challenges for questions with a lot of answers.
 
@Emigna I know HTML, CSS and JS.
 
@Rizze JS should able to complete most challenges so that should be okay. JS is usually one of the first languages that get an answer in a new challenge thought, as many people know it.
 
11:50 AM
how did you kill me when you are just jumping...
 
because it's evil
 
but, but how?
 
@Emigna Do you know a good language to study?
 
ruby/python
and assembly
 
11:51 AM
exactly, how does that kill me?
 
@Rizze Haskell
 
@Rizze: codegolf.stackexchange.com/q/92585/47066 doesn't have an answer in JS yet and should be pretty easy
 
@DestructibleWatermelon because since a tick take wayyyyy longuer, it draw really quickly
 
@flawr Does it work on linux?
 
11:52 AM
BUT HOW IS IT WINNING!!!!!!
I'M NOT TALKING ABOUT DRAWS, HOW IS IT KILLING MY BOT WITHOUT DOING ANYTHING?
 
@Rizze Sure!
 
wat
it wins??????
 
Have you aguide for haskell? @flawr
 
YES
IT WINS A LOT MORE THAN THE PREVIOUS ONE
 
WATWATWATWAT
 
11:53 AM
SOMEHOW MOVING SLOWER HELPS IT
 
THAT WAS MY REACTION TOO
 
thanks
 
11:54 AM
> This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License because I couldn't find a license with an even longer name.
hahaha
i know why it wins:
 
AHAHAH I HAVE YOUR BOT BEAT NOW!!!!
 
you bot kill itself
so evil win
 
NO, it does not kill itself, but I figured it out now
 
@DestructibleWatermelon °Д°
 
I added a longer attack range
well, I think its beat
lets see
yup, I got it beat
lets see again
 
11:57 AM
@Emigna I don't understand how the input/output of the challenge works if I can be honest.
 
now I just need to protect from bomber
out of 1000, evil got one win, I won 548
evil is great at draw
 
"The program then puts out Either 'Y' or 'N', Which determines weather or not the given animal is allowed onto the ark."
How the program understand that?
 
@Rizze As I understand it, the program takes as input a list of pairs of [Animal, gender]. Then for each outputs whether or not it is allowed. Only 1 animal of each gender is allowed.
 
> It's not just you! inference.phy.cam.ac.uk looks down from here.
aaaaagh
 
The program can also take input from user instead of a list
 
12:01 PM
zyabin, do you have a core war warrior?
 
ahhh
@Emigna I understood, thanks.
 
@DestructibleWatermelon yes
 
Great :)
 
@TùxCräftîñg You'll need to make a new improvement to beat my bot now
;name revimp
;author Destructible Watermelon

spl bomber
mov 13,-15
mov 13,-15
mov 13,-15
mov 13,-15
mov 13,-15
mov 13,-15
mov 13,-15
mov 13,-15
mov 13,-15
mov 13,-15
mov 13,-15
mov 13,-15
mov 13,-15
sne 12, 10
jmp 3
mov 8, >8
jmp -3
mov 5,-2
mov 6,5
mov 2,-5
jmp -7
jmp -42
mov -5, >8
dat #-77
dat #-77
dat #-38
bomber:djn 0,2
jmp 2
dat #2000
mov -5,-6
mov 3,-16
mov 3,-16
jmp -32
jmp 3
mov 8, >8
sorry about length, I'm no good at self replicators
 
what the lolz is that
 
12:02 PM
bad self replicator
 
look at evil
it's a simple replicator
 
also one that beats your bot
hue
 
and pretty quick
 
not quick, its slow now...
my bot is faster
also it was easier to tack on the attack
 
it's because it fork itself
but without it it's a quick replicator
and if it's easy to kill it's because it dont defend/attack
 
12:04 PM
I like to imagine my bot impaling your bot with a spear when it finds it from the graphics
 
function test(a, b, c, d) {if(a+b===c+d){return "N"}else{return "Y"}}
2
Q: Noah's (upgraded) ark

tuskiomiAs preparation for the nth Exodus, Noah decides to write a program that will decide If he will let animals on his ark. However, Noah wants to go back to grass roots. Thus he decides that the program should be as small and as simple as possible. GOAL: Recreate the Contrabulous Choosematron, in ...

Is ok my code?
 
That doesn't look like it completes the task
 
two liner beats your bot when slightly modified
 
@Emigna why?
 
12:08 PM
I may be misunderstanding, but do you take into account several animal inputs of varying gender and output Y/N for each?
 
Hello peeps!
 
If I take 2 time the same string and boolean, It returns false.
wait
i've an idea
 
"female monkey" -> Y, "female monkey" -> N, "male monkey" -> Y, "female snake" -> Y
 
Ye
 
it should either take a list as input or ask the user to repeatedly input a string (I think)
 
12:09 PM
oh wait
 
Argh I don't understand why people post SO questions here
 
@Qwerp-Derp Hello peep!
 
Allo allo
 
Allo allo
 
12:12 PM
it looks more like impalement when its actually moving
 
Ummm
I might want to do some challenges with LC
 
that is great out of context quote
I might see what happens when the second thread is removed
 
So the only valid chars in Woefully are | and <space>?
 
@Qwerp-Derp Yeah.
 
Wow
 
12:15 PM
newline
 
Else, the program will return confuse :(
^^
 
also there is a bug in interpreter I have to fix :(
concerning line wrapping
 
I kinda want to include a builtin that detects the length of a binary string in LC
What should the char (or chars) be?
 
@TùxCräftîñg it turns out the draws were because my bot was a little slow
 
I'm thinking #
 
12:18 PM
Hai
 
@betseg have you played core war?
 
@DestructibleWatermelon nope
 
;name SOME DAYS YOU JUST CAN'T GET RID OF A BOMB
mov 2,-1
jmp -1,<-1
@betseg you should
 
@DestructibleWatermelon k
 
there is the bot that beats tux' bot and my bot.
 
12:20 PM
I'm in lightrail train thing ill play when i go home
 
@DestructibleWatermelon what bot? evil or smartbot?
 
both
also I might check it does beat my bot
 
o________________________o
 
mine can beat that one, can't beat the original one though
;name SOME DAYS YOU JUST CAN'T GET RID OF A BOMB
mov 2,3
jmp -1,>-1
I need to make bot better, maybe start again...
with better self replicator
 
;redcode-94b
;assert 1
;name watimp
;kill watimp
;author tuxcrafting
;strategy relly slow imp
;date 2016-Sep-08
;version 1

	spl 0
	mov 1, 5
	mov 1, 5
	mov 1, 5
	mov 1, 5
	mov 0, 5
implance + spl 0 = ???
 
12:24 PM
you know that you can just
spl 0
mov 0,1
 
yes
but this go a bit further
 
looks like a draw, here
 
it never lose, it never win, it always draw
 
lets play many
it won...
wat
 
ಠ_ಠ
 
12:27 PM
Guys y u no golf a rubik's cube
 
becuz rubiks iz hard
 
@TùxCräftîñg 4 pipul did hard things updoot em all
 
Telescopes let you see the past; FTL lets you visit the future. — iAdjunct Feb 13 at 15:14
 
12:51 PM
Object#silence
 
@TùxCräftîñg Object#silence.willFall()
 
So silent here
Lemme say that
I use tabs and emacs
 
3
A: Spell out the Revu'a

YoYoYonnYBrainfuck, 40 bytes My console doesn't support Right-to-Left characters, but I don't think it will work :c ++++++++++>,[>,]<[<]>[[<+>-]<[<]>[.>]>] Ungolfed: ++++++++++> # Store 10 (Newline) ,[>,] # Store input <[<]> # Goto first character [ # While next character [<+>...

the comments ._.
 
I had a horrible nightmare that I only had 21 rep on PPCG
 
@betseg WATWATWATWAT
@betseg ಠ______________________________________________________ಠ
 
12:59 PM
OK phew all my green Internet points are still there
 

« first day (2049 days earlier)      last day (2788 days later) »