« first day (2043 days earlier)      last day (2783 days later) » 

7:00 PM
@TimmyD lol
 
If I had to guess, I think the -match operator barfed
 
@NathanMerrill Just throwing out bad ideas here in case a good one can be derived from it: don't allow them to index into the map. Create a getCell(x,y) method that returns a generic Cell object. The Cell object is a ReadonlyCell if you don't own the territory. Otherwise the Cell is an OwnedCell. Leave it to the caller to figure out which type to cast it to.
 
well, ownership is by territories (collection of cells), and usually bots will want to do something on each of the territories
so I think I'm going to pass a list of territories
however, the problem is still there for certain cases
for example, a Territory has a "addObject" function
where an object can be a unit, tower, or a variety of other things
the only thing they can add is a unit or tower
(but internally, adding other objects can be added)
actually, I think addUnit() and addTower() are fine function calls
 
7:16 PM
@Rainbolt bah, nevermind. "Package" literally means in the same folder.
it means that all of my objects would need to be in the same folder
 
@NathanMerrill Use a final protected method of the player to change the cells would maybe work.
Then have the superclass check to see if you can access that cell, and then call the package private method on the cell.
 
package private doesn't work
because it requires everything to be in the same folder
and I'm not going to do that
 
You would need only your player abstract class and your cell class in the same folder.
 
? Those are completely unrelated
I'd also need my Territory and my MapObject in the same folder
 
Alternatively, have the player pass themselves to the cell.
Or just some form of id that can't be duplicated.
 
7:23 PM
@Dennis - beautiful work. Or 0.5 is inspired.
 
@TheNumberOne MapObjects can add "cost" to a territory. Aka, a Territory has an addCost(int amount). I could require the MapObject to be passed in as well, but then I have to iterate through each of locations and check to make sure that the map object is actually there
there is definitely a tradeoff between "security" and "speed" :/
anyways, I think I agree with you guys...I should make unavailable functions inaccessible
I just don't like paying the costs
 
Does a "map object" represent the whole map, or some "thing" in the map?
 
PS C:\Tools\Scripts\golfing> 1000,2000,3000,4000,5000|%{"$_ -> "+(Measure-Command{.\is-this-a-smith-number.ps1 $_}).TotalSeconds + " seconds"}
1000 -> 0.9697675 seconds
2000 -> 6.8534284 seconds
3000 -> 22.3712074 seconds
4000 -> 52.5364098 seconds
5000 -> 101.8297255 seconds
 
@JonathanAllan :)
 
7:50 PM
Does anyone else see Nathan Merril's posts with "loading..." when the name and avatar would normally be?
Seems to be fixed now
 
@trichoplax no
 
Blame Caching.™
 
8:03 PM
silence
 
@zyabin101 will fall
 
1
Q: Mine Sweeper At Work

AaronEveryone knows the old minesweeper game that shipped with Windows XP. It's a simple grid with a 9x9 matrix of cells containing either a number (indicating how many mines are adjacent to it) or a mine. The challenge is to generate a random 9x9 grid with 10 bombs given any integer seed (up to wh...

 
@NathanMerrill Do you have a sandbox post of the challenge you are currently working on?
 
yes!
...I need to finish the post
but it's here:
0
A: Sandbox for Proposed Challenges

Nathan MerrillSlay This KoTH is based off of the computer game, Slay. Try it out, its way fun. Believe it or not, this game is all about managing finances of all of your territories. Map The game is played on a hexagonal map generated using Perlin noise. It is randomly divided up into small territories (...

I also need to write a good introduction
because I basically get started right into the details
 
Idea for challenges with very much rules: a summary beside the real rules.
> A summary of the rules for short attention spans. (Yes, you have to read the real rules below. Sorry, but you do.)
 
8:18 PM
actually, most of my rules aren't that important to read
but because challenges need to be self contained, I need to explain the entire game, including all edge cases
 
1
Q: Help: Aliens Programmers only speak ASCII

gowrathSetting the Scene: It is an average afternoon, as you unwind after a long day by engaging in your favorite pastime: answering the plethora of captivating questions on PPCG. It hasn't been a good day for you; those damned Pyth programmers keep getting best answer and it's killing your vibe. Sudde...

 
8:38 PM
Wow that's a long backstory
 
8:52 PM
@DJMcMayhem why is eval so sad?
\=
@muddyfish when the question is asked
should i ask tips for golfing in S.I.L.O.S
 
@ReleasingHeliumNuclei it's just horribly ungolfy
 
9:16 PM
@NathanMerrill Nice investigative work. :D
 
woo TIL :%s/aaaaa/&bbbbb/g will change every aaaaa to aaaaabbbbb
woo TIL << and >>
 
 
Okayyyy
My profile pic has changed EVERYWHERE now
creepy
 
It seems not everywhere.
Red or violet?
 
Red
It's red everywhere now
 
9:31 PM
@HelkaHomba Since you came up with the original basis for this challenge, what do you think of this: meta.codegolf.stackexchange.com/a/9975/30525
 
@ReleasingHeliumNuclei yup, & == \0. Also, look into \zs and \ze, they're simalarly awesome
 
I see red too. Someone will die tonight.
 
@DJMcMayhem what do those do
 
@El'endiaStarman More like 75k people are going to die tonight.
 
Is it possible to make a competitive Whitespace answer if we compressed it into base3 and then took the base2 representation of that?
 
@ReleasingHeliumNuclei You don't have "evolution" as an option. :P
 
@quartata how long do you estimate finishing quarkhack to take?
 
@StevenH. why base 2? do you mean base 256?
and i kinda doubt it would be competitive, but it might
 
The binary representation, bitwise. Why would you need to package it into bytes?
 
9:59 PM
@StevenH. cuz we score by bytes
 
@Maltysen Nobody ever said we can't have fractions of bytes.
 
@ΛεγίωνΜάμμαλϠΨΠʹ -1 not a colour
 
@flawr exactly, thank you
bitdump
 
@flawr true
 
10:03 PM
@flawr 5240 MHz
 
Imagine winning by one bit
 
10:14 PM
@ConorO'Brien, @Syxer RDFTD
 
@EᴀsᴛᴇʀʟʏIʀᴋ Too bad I can't listen to it :/
 
Still waiting for replacement part to fix headset
 
you don't have a builtin speaker?
 
(and the regular speakers refuse to be recognized by any OS)
@EᴀsᴛᴇʀʟʏIʀᴋ It's a desktop computer
No sound card, you see
 
10:17 PM
hm, okay
my desktop does
 
@EᴀsᴛᴇʀʟʏIʀᴋ Well, mine used to belong to my father, and he built it from scratch
 
It has an i7(-2600K :/)
 
Good thing: Today in my french class I watched a movie about goats. Bad Thing: A goat died ;_____;
10
 
@Downgoat school started for you already?
also, lel
 
10:24 PM
it started a while ago :/
@Maltysen ಠ_ಠ
 
@Maltysen it started a month and a day ago for me :/
 
@Downgoat A movie about goats...?
 
idk its a french movie
 
wat
 
@Downgoat did the goat get eaten by snek?
 
10:31 PM
no
 
also, how are doing on using snek?
 
a guy shot it
and another guy got bad
@Maltysen i tri but snek bit me :(
 
@Downgoat :O
@Downgoat did namedtuple work for you?
 
idk. I left python program on school computer
 
o
 
10:52 PM
CMC: given a number as a string, convert to scientific notation without eval
 
@ConorO'Brien +cQ^TKs.lQT+\eK
 
@Maltysen what lang
 
pyth
 
@ConorO'Brien Mathematica, 29 bytes: ScientificForm@*N@*FromDigits
 
@ReleasingHeliumNuclei ah damn forgot about negative exponents
 
CMC: Leave this room for at least 5 minutes
 
@ΛεγίωνΜάμμαλϠΨΠʹ will do 10 minutes later – will start right before i fall asleep
 
@ΛεγίωνΜάμμαλϠΨΠʹ already done
I think
 
10:59 PM
salut
 
CMC: find out the significance of the series: [1, 14641, 104060401, 1004006004001, 10004000600040001, 100004000060000400001, ...]
 
well, I can see the pattern, but not the significance...
 
its not long enough is the significance
its a short series
ughh
 
fourth powers that are palindromes in base 10
 
11:02 PM
a row in pascal's triangle separated by N-1 zeroes, or something
 
y u do dis ;_;
 
@DestructibleWatermelon yup
 
@DestructibleWatermelon wait seriously?
 
11:03 PM
I immediately recognized them as fourth powers of 10^n+1.
Pascal's Triangle FTW!
 
@El'endiaStarman those turn out to be the only fourth powers that are palindromes
 
@Maltysen That's pretty cool.
 
(sum_1^n(10^n))^2 is nice too
Things like 12345678987654321
 
if any([any(' 'in i[0:1]+i[~0:~1] for i in program),any(any(not i in "| " for i in j)for j in program)]):
why
 
11:07 PM
Oh u haz 1010 repz?!?!
 
yes!
for too long though...
 
And i haz 896
 
Am I right in thinking that the only palindromic (n>4)-th powers in base 10 are all 1?
 
hmmmm
let's check oeis!
 
I'm not sure how OEIS would help here.
 
11:10 PM
ok, I couldn't find one for any...
I'll try bruteforcing with python!
 
Brute force is not a proof. :P
 
What if 483228428818238482827^73 is palindrome? How would you know?
 
do we not have any challenge which is give an equation of a line from two points?
 
@El'endiaStarman if I find something, you can't refute?
it seems like i found one, but I think it may be bug
 
lol
give it to us anyhow
 
11:14 PM
x=int(input())
print(any(str(i**x)==(str(i**x)[::-1])for i in range(int(input()))))
prints true
 
...did you print the actual answer?
 
I'll figure out which it is
nope, I haven't yet
 
@DestructibleWatermelon its 1
 
... oh right
 
you didn't exclude 1 or 0 from your range
 
11:15 PM
Lol
 
let me try that again then
(told you it was bug)
 
chat mini..... thing: n^m=n^(m+4) n=?
 
@ReleasingHeliumNuclei Uh, 0, 1, or +/- i? Unless there's some other weird in-between value.
 
@El'endiaStarman also -1
 
11:18 PM
Oh yeah, that too.
 
ok, probably not a fifth power palindrome
probs not sixth, either
 
WA doesn't say 0, probably because 0^0 is undefined m.wolframalpha.com/input/…
 
Steam has probably the worst uptime of any major service I know
 
@quartata What about Imgur and/or Reddit?
 
It feels like every time I click on a Steam link something is broken
@El'endiaStarman Definitely worse
 
11:25 PM
So amazingly bored :/
 
There's just only so much I can do about it with power being out.
 
You could golf code from your phone!
 
Wow power was out here too
Yesterday
@DJMcMayhem more than Half of my answers were golfed on my phone ._.
 
Try writing vim answers with unprintable characters from your phone.
I do that all the time
 
11:31 PM
@DJMcMayhem o_o
wat
 
Haha, yea it's been out for 20 hrs or so now. Trying to conserve the phone at least a little :)
 
i cant even golf make JS answer on phone
 
@Downgoat I wrote the vim "tabs vs spaces" answer from my phone while I was at the gym rock climbing.
I might have an addiction
 
@DJMcMayhem ._____.
how u do dis ._.
 
> while I was at the gym rock climbing
 
11:34 PM
Presumably not while actually on the wall. :P
 
I'd hope, at least.
 
Pfft, who needs two hands for that?
 
You never know ¯\_(ツ)_/¯
That would be atleast 20 times more impressive if I did that while on the wall
 
You remember that?
Aug 27 at 22:22, by Releasing Helium Nuclei
@DJMcMayhem in the toilet?
That's how i golf
 
I can't golf Java on the phone though. That would take foreeeeever
 
11:36 PM
Don't code Java anyways
 
@Geobits s/on.*//
3
 
Pfft
 
user image
12
@DJMcMayhem am i undestanding you correct .___.
 
Jealousy doesn't look good on you guys.
 
@Downgoat If he's top-roping, yes.
Could be bouldering (which is what I like).
 
11:38 PM
@Downgoat That was beautiful.
Thankyou for making me actually lol
 
np
@DJMcMayhem XD
 
@El'endiaStarman I usually do bouldering, but I just got a harness recently, so I was top-roping
 
:O I got it right!!!!
 
fwiw, I had both legs on the ground while I was golfing.
 
user image
8
@DJMcMayhem fixed
 
11:41 PM
bwahaha
 
10/10 drawing, would look again - ign
 
@MartinEnder Currently finding a new large number with my 17 remaining bytes after your golf, best I can come up with right now is Nest[#!,9,9^9^9!]
(And I see no way of figuring its value out with HyperCalc...)
Wait, it's 18 bytes...
 
@ΛεγίωνΜάμμαλϠΨΠʹ wait what is this for
 
3
A: The longest period iterating quine

LegionMammal978Mathematica, period 1010108.567841344 9999! ≈ 101010102.192984439 Print[StringJoin[ToString[#0, InputForm], "[", ToString[#1 - 1 /. 0 -> "9^9^99!"], "]"]] & [9^9^99!] The iterations replace the final 9^9^99! with the literal numbers 9999! - 1, 9999! - 2, 9999! - 3, ..., 3, 2, 1, and back to 9^...

 
@ConorO'Brien When are you going to post the fragile Quine challenge? I've just come up with a great solution to it
 
11:54 PM
@βετѧΛєҫαγ idk
working on hw
sometime tomorrow or tonight
 
Oh haha alright
 
@ConorO'Brien on what time zone
 
zyabin has a timezone sheet
 
Oh yeah it should be on Drive history
Is it 18:58 there?
 
@ΛεγίωνΜάμμαλϠΨΠʹ Wouldn't 9^9^9 be good enough?
 

« first day (2043 days earlier)      last day (2783 days later) »