Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: The Python Challenge - a programmer's top to-do  (Read 1509 times)

Sunkwell

  • Bay Watcher
    • View Profile
The Python Challenge - a programmer's top to-do
« on: March 11, 2012, 02:15:34 pm »

http://www.pythonchallenge.com/

It's a collection of riddles you solve with python(really any language will do)
really makes you think outside the box, now with 33 levels(I cleared 3 :D)
full of awesome

Discuss this, and similar stuff. No spoilers.Please.
Logged
He took joy in slaughter lately.

jc6036

  • Bay Watcher
  • Bilious Slick
    • View Profile
Re: The Python Challenge - a programmer's top to-do
« Reply #1 on: March 11, 2012, 06:05:48 pm »

*opens first riddle*
*Doesn't get what in the fuck he's supposed to do*
*leaves site*

How is the first image supposed to be a riddle, anyways?
Logged

Biag

  • Bay Watcher
  • Huzzah!
    • View Profile
Re: The Python Challenge - a programmer's top to-do
« Reply #2 on: March 11, 2012, 06:12:36 pm »


They seem to get less irritating after that one.
Logged

Sunkwell

  • Bay Watcher
    • View Profile
Re: The Python Challenge - a programmer's top to-do
« Reply #3 on: March 12, 2012, 02:11:19 pm »

Yes they're all difficult, but boy it feels great when the pieces fall together and a facepalm is inevitable.
Logged
He took joy in slaughter lately.

Valid_Dark

  • Bay Watcher
  • If you wont let me Dream, I wont let you sleep.
    • View Profile
Re: The Python Challenge - a programmer's top to-do
« Reply #4 on: March 13, 2012, 12:49:48 am »

I'm working through them right now,


But the title of the thread reminded me of the atari challenge

http://www.atari.com/pongdeveloperchallenge

I didn't want to make a thread about it so I'm sticking it in here.
Atari is having a indie game programmer contest for an original take on pong, programmed for iOS operating system.

Logged
There are 10 types of people in this world. Those that understand binary and those that don't


Quote
My milkshake brings all the criminals to justice.

RulerOfNothing

  • Bay Watcher
    • View Profile
Re: The Python Challenge - a programmer's top to-do
« Reply #5 on: March 13, 2012, 01:23:48 am »

Well, if you want something to test your abilities as a programmer, there is always Project Euler.
Logged

chaoticag

  • Bay Watcher
  • All Natural Pengbean
    • View Profile
Re: The Python Challenge - a programmer's top to-do
« Reply #6 on: March 13, 2012, 12:20:50 pm »

Okay, seeing as I'm still learning python, this is great, but I have a question.

I'm at the second puzzle, but I thought that if I was to solve it in C++,

Spoiler (click to show/hide)

Does anyone know how to do this in python? I suppose I could do it by hand, but that's not the point here.
Logged

Levi

  • Bay Watcher
  • Is a fish.
    • View Profile
Re: The Python Challenge - a programmer's top to-do
« Reply #7 on: March 13, 2012, 01:41:29 pm »

Spoiler (click to show/hide)
« Last Edit: March 13, 2012, 01:43:11 pm by Levi »
Logged
Avid Gamer | Goldfish Enthusiast | Canadian | Professional Layabout

chaoticag

  • Bay Watcher
  • All Natural Pengbean
    • View Profile
Re: The Python Challenge - a programmer's top to-do
« Reply #8 on: March 13, 2012, 01:48:00 pm »

Spoiler: To levi (click to show/hide)
Logged

Skyrunner

  • Bay Watcher
  • ?!?!
    • View Profile
    • Portfolio
Re: The Python Challenge - a programmer's top to-do
« Reply #9 on: March 13, 2012, 02:22:35 pm »

The bad thing about this is that it is too specialized for Python :( I don't think there is such thing as trans() in C++ ...

Spoiler (click to show/hide)
« Last Edit: March 13, 2012, 02:24:57 pm by Skyrunner »
Logged

bay12 lower boards IRC:irc.darkmyst.org @ #bay12lb
"Oh, they never lie. They dissemble, evade, prevaricate, confoud, confuse, distract, obscure, subtly misrepresent and willfully misunderstand with what often appears to be a positively gleeful relish ... but they never lie" -- Look To Windward

chaoticag

  • Bay Watcher
  • All Natural Pengbean
    • View Profile
Re: The Python Challenge - a programmer's top to-do
« Reply #10 on: March 13, 2012, 02:29:02 pm »

Well, in c++, there isn't a trans function... but you can make a string into an array of characters. Then try this. Make a character variable in C++, and give it a number rather than a character. Say 67. Have it printed, add 2, and print again.

The translate function is basically that.
Logged

Valid_Dark

  • Bay Watcher
  • If you wont let me Dream, I wont let you sleep.
    • View Profile
Re: The Python Challenge - a programmer's top to-do
« Reply #11 on: March 15, 2012, 12:07:43 am »

Chaoticag, you're making it harder than it has to be,
There are string operators that work on the string class, so you don't have to convert it to a c-style string.
Logged
There are 10 types of people in this world. Those that understand binary and those that don't


Quote
My milkshake brings all the criminals to justice.