Nov 3, 2017 01:51
Well how much damage does it do? 5d10 Piercing seems reasonable so -- oh wait wrong SE
 
Jul 29, 2017 02:32
@Alexander I don't write the rules, just interpret them. Unfortunately that's the only fair way to score golf: include all code required to make your submission work. And one of the two reasons I don't use Swift is that I don't like its package system (no namespacing, bring in all of a library's types). (The other is that I use Windows.) Anyway, isn't it more Swifty to use non-NS types when possible anyway?
Jul 29, 2017 02:32
@Alexander I've used Swift. Swift's import Foundation is basically import stdlib::* in other languages. And if you want to use a Foundation type unfortunately you have to bring it into the namespace somehow...
Jul 29, 2017 02:32
@Alexander If you refer to a type by name, there is no question whether you need to count the import. That's just the "practical" language tax :P
Jul 29, 2017 02:32
@Alexander (see above I forgot to tag you) and also, I've seen multiple answers (from higher rep users) even after this that don't do so. Even more reason to bring it up again.
Jul 29, 2017 02:32
Hey, I asked this because I primarily like golfing in Java/Kotlin. I may rephrase this question later on and try and present it in light of more recent consensus, and see if I can get a better discussion with points on both sides. (And this question was closed as a dupe of something else for some reason I still don't quite understand?) I understand the issue better now as well. But for now, type your lambdas.
Jul 29, 2017 02:32
I'm considering the two comments as an effective consensus. I still don't see this as a dupe (I'm not submitting a built-in, just using the features of a List), but I'll leave that to the higher-reps.
 
Apr 9, 2017 04:21
Can I "borrow" these rules to implement in my own chat bot? Kappa
 
Nov 28, 2016 01:50
For the free-standing issue: it might help to add the required keywords to this question once they're confirmed in the others (I'm not in meta)
 
Mar 20, 2016 20:26
(of course this snake isn't ambiguous at all and should be run fine via the crossover clarification:

@v<v
^v^v
^v^<
^<

)
Mar 20, 2016 20:23
I've got one more case to run by you:

@v<v
^v^v
^v^v
^<^<

In my current solution this would be ambiguous because it would read the `<^<` at the bottom as an overlap though it shouldn't be. Should this be declared ambiguous or should I add handling for this case?
Mar 20, 2016 19:56
Also I'd suggest deleting the comments into this chat to clean up the page.
Mar 20, 2016 19:55
I sent in the edit so look at it when you've got the time
Mar 20, 2016 19:55
Seeya
Mar 20, 2016 19:55
Yep
Mar 20, 2016 19:50
format plz
Mar 20, 2016 19:50
code
Mar 20, 2016 19:50
wat
Mar 20, 2016 19:50
So I guess the question to clarify is:

Is this snake legal (format please):

` @ `
`>^v`
` ^<`
Mar 20, 2016 19:46
nope
Mar 20, 2016 19:45
(testing chat formating:)

public static void main(String[] args) {
// is this a code formatted block?
}
Mar 20, 2016 19:45
I would've made the move to chat sooner if I could've (mobile access yay)
Mar 20, 2016 19:42
@Solver I'll add a clarification edit suggestion which you can accept or clarify
Mar 20, 2016 19:42
@Solver you've got the authority to roll back the change. I'd suggest further clarifying what crossover cases we have to deal with. (E.g. can we assume we'll have something like >^> in all crossover cases versus >^v a legal crossover.`
Mar 20, 2016 19:42
@NotthatCharles well, if your added case stands my solution fails. Oh well. And I'm assuming the crossover has >x> anyway - goes the same direction after the crossover - so this is a mess. Oh well I guess.
Mar 20, 2016 19:42
Does the input have to be a single String or can we take a String[]? Is each line of the input padded to be the same length or do we have to deal with irregular line length?
Mar 20, 2016 19:42
@SpeedyNinja test cases 2 and 4 both have starts not at (0,0), and test case 0 (snakes look like) doesn't start OR end at (0,0).
 

 The Nineteenth Byte

The Nineteenth Byte: General discussion for codegolf.stackexc...
Mar 4, 2016 03:39
(that was a test)
Mar 4, 2016 03:39
Is chatgoat really dead?