31
Community Contests / Re: Code Golf: The Reboot #4
« on: June 25, 2015, 11:08:50 pm »
Reminder that I only recieved one entry. And it's mine.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to. 31
Community Contests / Re: Code Golf: The Reboot #4« on: June 25, 2015, 11:08:50 pm »
Reminder that I only recieved one entry. And it's mine.
32
Community Contests / Re: Code Golf: The Reboot #4« on: June 22, 2015, 11:46:57 pm »I might not be able to submit an entry because I have no idea how to generate de Bruijn sequencesThere's a lot of code and algorithms over the internet that generates de Bruijn sequences, I know it's kinda hard to come up with an algorithm yourself, so check one that already exists, study it and make your own golfed implementation. That's kind of the point. The Wikipedia page for the sequence describes a Python implementation, I think it's a good starting point. 33
Community Contests / Code Golf: The Reboot #4« on: June 22, 2015, 12:00:01 am »
Welcome to this week's Code Golf: The Reboot, the fourth incarnation of the challenge hosted by myself, Juju. Not @pimathbrainiac, @c4ooo nor @JWinslow23, the one and only @Juju. I have a situation for you tonight. Let's say you have a car. Unfortunately, you left your set of keys on the seat, and the car is locked. "Oh no, I locked my keith inside", you say, with a strong lisp. However, your car came with a numerical lock, five (5) keys numbered from 1 to 5 that can replace your keys if needed, no need to call the AAA, OnStar or whatever it's called in your country. The car is rather new and you didn't had time to check the manual for the default code and how to set it, but you know the code is four (4) numbers long and the lock checks after every keypress, as in, if you enter successively 1-2-3-4-5-1, it checks against the codes 1234, 2345 and 3451. You don't really have the time to try every combination one after the other, but you know of a sequence that will check against every code successively in a minimal number of keypresses, the de Bruijn sequence, as it's called. You have your calc/smartphone/laptop on you, as you've been taught to carry no less than 5 computers on you at all times, like a sensible person, so you write a little program to compute such a sequence and try it out.
Here's a sample output: Code: [Select] 11112111311141115112211231124112511321133113411351142114311441145115211531154115 The cyclic sequence (as in, it wraps around so at the end it's really ...4555511112...) should contain every 4-number sub-sequence as described above exactly once per cycle. Your output don't have to be exactly this, as in there's many, many sequences with the above properties, but it should have the same length. Also, no newlines other than where it should wrap around on the screen (I've put some here because it would mess up this post, don't do that at home). Your challenge is, of course, write the smallest program that generates such sequence. If the sequence don't fit it all on the screen, like on calcs, you can implement a pager (like less on UNIX systems) or output a string that can be scrolled, or anything that could work, be sure to ask me if you're not sure and tell instructions if it's not immediately obvious or requires user action. All the usual rules applies, like no loopholes. All non-calc languages will be scored with this counter I wrote for your convenience. Assembly and compiled Axe programs will be scored on binary size (minus the header), and TI-BASIC will be scored on on-calc source size (again, minus the header). PM me with your submission on Omnimaga and/or CodeWalrus, on every private messaging system you know you can reach me or if you know where I live or know me IRL, bring me a 3.5" floppy disk with the source enclosed. (Seriously, that would be epic and would definitely allow you a bonus.) I'll also count out the number of keypresses it took you to get to a particular code I won't disclose until the end, but it's just for fun And if you wanna get involved, I suggest you to check this thread. Good luck and have fun! You have until next Sunday, 11:59:59 PM EDT. Next week with @JWinslow23, you found your keys, but you can't figure out which one it is... Scores Language Ranking
Code: [Select] [/spoiler]Ruby
Unfortunately, no one submitted any entry, no one got the key... And I win by default, apparently. I'll post my code soon, and you still can submit an entry at a later date. 34
Community Contests / Re: Code Golf - The Reboot #3« on: June 21, 2015, 07:23:58 pm »
IMO, 11:59:59 PM ET Sunday would probably be better for those who don't have time through the week.
35
Computer Projects and Ideas / Re: NEED PROGRAMMERS, will pay, read for more info« on: June 20, 2015, 05:53:24 pm »
Hey there, nice to see you again!
Your game looks promising, I'm looking for a job or some contracts, so if I can help in any way that would be pretty nice. I don't have much experience on Android (although I did some), and none at all on iDevices, I'm more PC. Also if you want a promo website done, I'm your man. I'm starting to do some for a living. 36
Community Contests / Re: Code Golf - The Reboot #3« on: June 16, 2015, 02:53:32 pm »
I think I have a nice sub-300 in PICO-8, 293 to be exact. And if you remove a line, you can even draw your own starting pattern in the sprite editor!
Speaking of which, the pseudo-random rule, in layman's terms, you should loop through each and every pixel and randomly set it on or off, right? That's what I did anyway. 37
Web Programming and Design / Re: Help with github and .TK« on: June 16, 2015, 02:40:02 pm »
It's kinda easy.
On GitHub's side, keep the CNAME file. On dotTK's side, there should be somewhere you can set DNS records up instead of simply forwarding to somewhere else. Use Dot TK DNS Service and give it one (or both, if you can) of those IP addresses: 192.30.252.153 192.30.252.154 Now it should work. 38
Community Contests / Re: Code Golf - The Reboot #3« on: June 15, 2015, 12:26:44 am »That's true, but for the OmnomIRC shoutbox. Otherwise, get a IRC client such as Hexchat or mIRC and point it at either irc.efnet.org or irc.omnimaga.org.Sorry, stupid question and off-topic but how do I access IRC?You get access to it once you get 40 post IIRC I don't really see why it wouldn't. It's pretty much Lua with a graphics library.Hm, another graphic challenge. Gotta try the new PICO-8 0.1.1 out.This is meant to give advantages to calculators. 39
Community Contests / Re: Code Golf - The Reboot #3« on: June 15, 2015, 12:14:33 am »
Hm, another graphic challenge. Gotta try the new PICO-8 0.1.1 out.
40
Community Contests / Re: Code Golf - The Reboot #2« on: June 14, 2015, 08:14:47 pm »Actually, c4ooo is up next, then Juju.Yep, gotta wait until next week for mine 41
Community Contests / Re: Code Golf - The Information/Discussion/Planning Thread« on: June 14, 2015, 03:39:06 pm »
I already wrote my announcement for my code golf, gotta be interesting. Gotta post it when it's my turn.
42
Community Contests / Re: Code Golf - The Reboot #2« on: June 11, 2015, 04:38:18 pm »
I'm down to 144, almost on par with the PICO-8 guy.
43
Community Contests / Re: Code Golf - The Reboot #2« on: June 11, 2015, 12:05:25 pm »
Yeah, BTNP still returns true every 4 frames, which is not what we want.
EDIT: 153 bytes! Which is the same score you got, but with the 1 pixel of movement per press thing xD EDIT: 149! I forgot to remove one useless declaration. That's pretty crazy. 44
Community Contests / Re: POST-MOTERM Code Golf - Discussion and Solutions« on: June 11, 2015, 12:03:42 pm »
Yay! By the way it's a post-mortem, not a post-motrem.
45
Community Contests / Re: Code Golf Contest #9« on: June 11, 2015, 01:14:46 am »
Well, it's not like we've never necro'd topics before... xD I like the post-mortem topic idea, though.
|
||||||||||||||||||||
|