### Show Posts

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.

### Messages - Juju

Pages: 1 2 [3] 4 5 ... 388
31
##### 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 sequences

I'll still make an attempt, though
There'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.

32
##### 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]
1111211131114111511221123112411251132113311341135114211431144114511521153115411551212131214121512221223122412251232123312341235124212431244124512521253125412551313141315132213231324132513321333133413351342134313441345135213531354135514141514221423142414251432143314341435144214431444144514521453145414551515221523152415251532153315341535154215431544154515521553155415552222322242225223322342235224322442245225322542255232324232523332334233523432344234523532354235524242524332434243524432444244524532454245525253325342535254325442545255325542555333343335334433453354335534343534443445345434553535443545355435554444544554545555
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
 Rank Lang User Size Date Code 1 Ruby @Juju 163 2015/06/22 15:29:00 Spoiler For Spoiler:
Code: [Select]
[/spoiler]

Ruby
 Rank User Size Date 1 Juju 163 2015/06/22 15:29:00

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.

33
##### 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.

34
« 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.

35
##### 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.

36
##### 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.

37
##### Community Contests / Re: Code Golf - The Reboot #3
« on: June 15, 2015, 12:26:44 am »
Sorry, stupid question and off-topic but how do I access IRC?
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.

Hm, another graphic challenge. Gotta try the new PICO-8 0.1.1 out.
This is meant to give advantages to calculators.
I don't really see why it wouldn't. It's pretty much Lua with a graphics library.

38
##### 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.

39
##### 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

40
##### 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.

41
##### Community Contests / Re: Code Golf - The Reboot #2
« on: June 11, 2015, 04:38:18 pm »

42
##### 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.

43
##### 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.

44
##### 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.

45
##### Community Contests / Re: Code Golf - The Reboot #2
« on: June 11, 2015, 12:43:46 am »
153 bytes in PICO-8 (sorry Juju ^.^)
Wait, did you do the "If a key is held, it doesn't matter. 1 pixel of movement per press." rule? Otherwise, I'm down to 162 bytes now

Pages: 1 2 [3] 4 5 ... 388