Permanent Programming 2

Put your programming skills to the test in these challenges.

Re: Permanent Programming 2

Post by sharpskater69 on Fri Jul 04, 2008 4:23 am
([msg=6521]see Re: Permanent Programming 2[/msg])

I wanted you to say what language, because there is probably a function out there, somewhere, in a library that will iterate through the pixels of an image. If not that, one that returns the color from a single pixel and you can set up 2 for loops to get all 3000. You shouldn't need to convert it, I didn't. Each pixel is only a single color.
sharpskater69
New User
New User
 
Posts: 34
Joined: Tue Apr 22, 2008 4:10 pm
Blog: View Blog (0)


Im Stuck

Post by samer_is on Sat Jul 05, 2008 4:17 pm
([msg=6645]see Im Stuck[/msg])

i did a windows application that starts the website automatically, login, go to programing level 2, but i cant find a way to download the photo from there as its randomly generated and contains no format like .png etc..., im using Visual studio 2008 C# , i appreciate any help.
samer_is
New User
New User
 
Posts: 1
Joined: Sat May 31, 2008 8:12 am
Blog: View Blog (0)


Re: Permanent Programming 2

Post by thanaa on Tue Jul 08, 2008 1:09 pm
([msg=6857]see Re: Permanent Programming 2[/msg])

just did it using php. Was pretty fun.
thanaa
New User
New User
 
Posts: 16
Joined: Sat Jun 28, 2008 9:46 pm
Blog: View Blog (0)


Re: Permanent Programming 2

Post by Toster on Wed Jul 09, 2008 5:00 am
([msg=6941]see Re: Permanent Programming 2[/msg])

I have no idea wheres my mistake... Could someone who has done this at least tell me in where's a mistake? Please? :|

img: http://img112.imageshack.us/img112/9720/indexwo2.png
... ...-- ..-. ----. ... .-- ... -.-- .... -.--
S3F9SWSYHY

img: http://img145.imageshack.us/img145/4288/indexen8.png
...- --- .--- ..- . --... -..- --... .- .-
VOJUE7X7AA
Toster
New User
New User
 
Posts: 7
Joined: Sat Jun 28, 2008 9:15 am
Blog: View Blog (0)


Re: Permanent Programming 2

Post by c4p_sl0ck on Wed Jul 09, 2008 11:10 am
([msg=6976]see Re: Permanent Programming 2[/msg])

I get the same result as you so I guess we've done the same mistake.
c4p_sl0ck
New User
New User
 
Posts: 23
Joined: Thu Jun 26, 2008 8:03 pm
Blog: View Blog (0)


Re: Which PHP function to use

Post by TonyAlmeda24 on Thu Jul 10, 2008 1:28 am
([msg=7045]see Re: Which PHP function to use[/msg])

Hi i want to do this one using PHP (as thats the only laungauge i know :oops: ), can anyone give me a link to a function i can use to get the location of the white pixels?

I think I know how to do it, but the biggest problem for me is just getting the location of the white pixels.

Cheers!!! :D
TonyAlmeda24
New User
New User
 
Posts: 1
Joined: Thu Jul 10, 2008 1:24 am
Blog: View Blog (0)


Re: Permanent Programming 2

Post by leorick on Thu Jul 10, 2008 11:15 am
([msg=7068]see Re: Permanent Programming 2[/msg])

c4p_sl0ck wrote:I get the same result as you so I guess we've done the same mistake.

Toster, c4p_sl0ck,
I get the same result as both of you too. But anyhow, finally I figure it out why and I did it. :D Check your loop. BTW, I'm using java.
leorick
New User
New User
 
Posts: 2
Joined: Tue Jul 01, 2008 9:39 am
Blog: View Blog (0)


Re: Permanent Programming 2

Post by Toster on Thu Jul 10, 2008 11:56 am
([msg=7073]see Re: Permanent Programming 2[/msg])

Thx, I did it ;) c4p_sl0ck, start counting the first time with 0 not 1.
Toster
New User
New User
 
Posts: 7
Joined: Sat Jun 28, 2008 9:15 am
Blog: View Blog (0)


Re: Permanent Programming 2

Post by brodeur235 on Thu Jul 10, 2008 12:39 pm
([msg=7076]see Re: Permanent Programming 2[/msg])

Tips:
Specifically for windows users trying to do this mission in C/C++. Include the windows.h header, go to the challenge page, maximize the page, take a screenshot and make a note of the coordinate of the first pixel. Then, in the same browser type, use the GetPixel() function to rip the pixels off of the screen and test the rgb. Pce,

Brodeur235
brodeur235
New User
New User
 
Posts: 11
Joined: Fri May 23, 2008 2:54 pm
Location: United States, TX
Blog: View Blog (0)


Re: Permanent Programming 2

Post by Toster on Thu Jul 10, 2008 2:19 pm
([msg=7096]see Re: Permanent Programming 2[/msg])

I did it with a C++ PNG decoder by Lode Vandevenne
Toster
New User
New User
 
Posts: 7
Joined: Sat Jun 28, 2008 9:15 am
Blog: View Blog (0)


PreviousNext

Return to Programming

Who is online

Users browsing this forum: No registered users and 0 guests