[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

Programing Challenge Thread

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 258
Thread images: 21

File: prog_challenge.png (378KB, 1450x1080px) Image search: [Google]
prog_challenge.png
378KB, 1450x1080px
Lets do this /g/
Roll and get your new project

Dont be a faggot and do what you get
>>
rolling and bumping
>>
>>62166605
I wish someone did the same with webdev
>>
Rollan
>>
rollllll
>>
>>62167078
Rereolling for not boring shit
>>
>>62166605
Can OP even program of he can't spell programming?
>>
>>62166605
pls no 99
>>
poлл ёптa
>>
time to end myself
>>
Rolling for something to pass the time.
>>
>>62167386
That's dumb easy. I'll do that and whatever i roll rn.
>>
K u t j e
>>
Rolli polli
>>
Wrell
>>
>>62166605
I'm shit and know obscure language
>>
>>62166605
zz2
>>
File: 1499221630226.jpg (30KB, 410x416px) Image search: [Google]
1499221630226.jpg
30KB, 410x416px
>>62166605
probably won't do, but whatever
>>
>>62166605
I try.
>>
Rollz
>>
File: progChallenges.png (2MB, 3840x2160px) Image search: [Google]
progChallenges.png
2MB, 3840x2160px
>>62166605
>not posting v4.0
>>
>>62168555
i didnt have that one
rolling
>>
>>62168555
Checked.
>>
>>62168555
roll
>>
it's been awhile
>>
:^)
>>
rollz for the lolz
>>
>>62166605
Alright, why not
>>
For the more or less mature: https://open.kattis.com/problems
>>
>>62166605
Go!
>>
>>62168555
Just keep rollin' rollin' rollin' rollin'
>>
>>62168555
Muh
>>
>>62170324
rollerino
>>
>>62166605
rolling.
>Dont be a faggot and do what you get
no.

check my doubles though
>>
>>62168555
Rolling for dubs
>>
>>62166605
Rolling
>>
File: 1470386291497.jpg (65KB, 480x640px) Image search: [Google]
1470386291497.jpg
65KB, 480x640px
rolling
>>
>>62166605
rolling
>>
>>62168555
Rollerino
>>
>>62168555
Please give me good digits
>>
>>62166605
roll
>>
>>62166605
Rolling
>>
>>62166605
Bring it on
>>
>>62171283
Rerolling because is shit.
>>
Roll for "I'm pathetic and have nothing to do with my life"
>>
>>62168555
>145 problems
how to roll that?
>>
>>62166605
Rollin for tonight
>>
>>62166605
rollin for whatever
>>
>>62168555
Fuck my other one this looks better
>>
rooll desu
>>
>>62166605
rollin for something ez
>>
>>62172058
If your last three are 001-145, solve whatever that corresponds to, else use your last two digits. (0, 2-9)00 is not covered however, so I have no idea what you do if you roll that.
>>
Roll that I’ll never do
>>
>>62174105
Ok I know I’m not intending to do it but that’s just lame. Let’s try again
>>
>>62172058
last 3 digits modulo 145 is one way
>>
File: 1503635032586.jpg (52KB, 741x694px) Image search: [Google]
1503635032586.jpg
52KB, 741x694px
Question: are these supposed to be fun? Am I supposed to look at this list with a glimmer in my eyes and excitement? I've tried learning programming in the past but just looking at this list makes me want to vomit. I can never get past the part where I feel a strong sense of impatience and boredom with it. And it's a real fucking shame because even if you built like 2-3 of the more challenging ones, you could probably get a job instantly... life as a brainlet is just pure hell.
>>
>>62174497
Do you like programming anon? Because if you don't like doing this kind of challenges it's probably not your thing and there's no shame in that.
>>
>>62166605
I don't know any programming languages
>>
>>62166605
roll
>>
Time to do stuph
>>
>>62176485
Rolling again cause I did that already
>>
>>62172058
That's challenge #146
>>
>>62168555
Roll
>>
>>62176819
anyone know a quickstart into website crawling? considering doing the roll for the 4.0 challenge "booru image downloader"
>>
>>62176872

man wget
>>
>>62174497

Things are more fun if you are good at it.
I hated programming when I learned it at university, today I realy enjoy coding.

Nobody says you should be a programmer. But if you want to become a programmer, you don't just learn a programming langauge, but you need to develop problem solving skills:
-Research the problem
-Breaking down a problem into smaller subproblems
-Research the subproblem if you're stuck
-Using libraries where it's appropriate


So let's assume I have to programm Sudoku.

1) What the hell is sudoku? Check rules of the game.

2) OK, I have to fill a 9x9 matrix with values, so so each row, line and 3x3 "sub rectangle" contains the numbers 1-9. Then I need to reveal some values. The user can assign values to fields he can't see. If he has a complete solution, the game is over..

Questions:
2.1) How can I generate a feasible field?
2.2) Which values can I reveal?
_2.2.1) Some combinations are harder. Let's introduce difficulties for the user!
__2.2.1.1) Where does the use input the difficulty?
__2.2.1.2) How do I know which fields to reveal for "easy" and "hard" mode?
2.3) How to display the field to the User?
_2.3.1) Is command line an option here?
_2.3.2) Is there a simple GUI that does the job?
__2.3.2.1) Which language do I choose?
2.4) How can the user input values?

3) Experiement with different ways of doign it. Reseach parts you don't know.

4) Polish/refactor your application.

5) Put it on GitHub.

6) ???

7) Profit!
>>
rolling rolling rolling
>>
ok
>>
>>62172058

#include <stdio.h>

int main(void) {
printf("How about callenge nr. %i ?", 1+(rand()%145));
}



class Main {
public static void main(String[] args) {
System.out.println("How about callenge nr. " + (int)(1+(145*Math.random())) + " ?");
}
}



import random 

print("How about challenge nr. {} ?".format(random.randint(1,145)))



puts "How about challenge nr. #{1 + rand(145)} ?"
>>
>>62166605
roll
>>
>>62179424
procedure main()
A := ["Rock", "Paper", "Scissors", "Spock", "Lizard"]
B := table()
every i := 1 to *A do B[A[i]] := i

while s := { writes(">"); read() } do while true do {
/B[s] & { write("Invalid input!"); break }
x := ?3
write(A[x])
write(case B[s] - x of { ![-4, -2, 1, 3]: "Win"; 0: "Draw"; default: "Lose" })
break
}
end
>>
>>62179366
jej

Challenge should be included in v5.
>>
>>62179366
procedure main()
write("How about challenge nr. ", ?145, "?")
end
>>
rolling hell
>>
rollan
>>
>>62180458
fuck me...
>>
rollfapp
>>
>>62180180
I rolled 31.
procedure convert(n, r)
res := 0
reverse(n) ? while res +:= r ^ (&pos - 1) * move(1)
return res
end
>>
>>62166605
Rololo
>>
>>62174497
it's just a meme, no one here actually does the challenges after they roll
>>
Rollan
>>
>>62166605
Rolling for another.

>>62180671
I did mine, I made a password generator with options. It's pretty neat.
>>
File: IMG_0141.jpg (71KB, 396x499px) Image search: [Google]
IMG_0141.jpg
71KB, 396x499px
>>62166605

Roll, also this book is great for programming exercises
>>
rull
>>
>>62180714
>COBOL
>ALGOL
>Pascal
dude this book is OLD
>>
>>62168555
roll
>>
>>62180981
re
>>
>>62180986
>design esoteric language
Only design? What's difficult in it? This should be green.
next
>>
>>62180993
reroll
>>
>>62181005
No time for AI today.
next
>>
>>62166605
rol
>>
>>62166605
weee
>>
>>62166605
rollll
>>
>>62168555
Roll
>>
>>62166605
Lorring
>>
>>62181152
TCP chat program with basic encryption
>>
>>62166605
Roll
>>
Rooolll
>>
>>62181139
uh oh what is a demo effect??
please enlighten me
>>
Roll yo
>>
Fine, ill do one
>>
>>62168555
rell
>>
>>62168555
>basic neural network
>easy
what???
>>
>>62168555
rolo
>>
>>62166605
rollerino
>>
Rollaru
>>
>>62181248
just stack moar layer
>>
>>62180671
i made the game of life
(more like i searched for a solution in c, but i learned some stuff in the process)
>>
>>62166648
Fk u and roll
>>
>>62179088
>Things are more fun if you are good at it.
well said anon
>>
>>62166605
rolled 42

#include <stdio.h>

int main()
{

float pisum;

for(int i = 1; i <=100000000000000; ++i)
{
if(i%2!=0)
pisum = pisum + 1.0/(2.0*i - 1.0);

else
pisum = pisum - 1.0/(2.0*i - 1.0);
}

printf("The value of pi is %f\n", 4*pisum);

return 0;
}
>>
File: theweak.png (151KB, 561x785px) Image search: [Google]
theweak.png
151KB, 561x785px
rolling

Question: Is there even any difference in syntax between C and Java? Kinda looks the same to me. If I get an easy one I would like to try it in C.
>>
>>62181722
you should use the code tag to ease the reader's eyes.
>>
rolln
>>
>>62166605
Roll, for I have little to do.
>>
>>62166605
bored at work
rollo
>>
>>62182253
oh no.
so fucking complicated.
someone kill me already.
import random
random.choice(['heads', 'tails', 'op is a faggot'])
>>
>>62181021
procedure main(args)
file := open(!args)
seek(file, -355)

s := ""
while s ||:= reads(file)
tag(s[-128:0])
extended(s)

end

procedure tag(s)
if s[1:4] ~== "TAG" then fail
s ? every {
write(move(3))
write("Title: ", move(30))
write("Artist: ", move(30))
write("Album: ", move(30))
write("Year: ", move(4))
comment(move(30))
write("Genre: ", get_genre(any(&cset, move(1))))
}
end

procedure comment(s)
track := any(&cset, s[-2])
write("Comment: ", if (track = 0) then s[1:-2] else s)
if track = 0 then write("Track: ", any(&cset, s[-1]) ~= 0)
end

procedure extended(s)
if s[1:5] ~== "TAG+" then fail

s ? every {
write(move(4))
write("Title: ", move(60))
write("Artist: ", move(60))
write("Album: ", move(60))
write("Speed: ", ["unset", "slow", "medium", "fast", "hardcore"][any(&cset, move(1)) - 1])
write("Genre: ", move(60))
write("Start time: ", move(6))
write("End time: ", move(6))
}
end


Procedure get_genres didn't fit in the field. It just stores a big table with all genre names defined by the standard and for a given genre ID it suspends the genre name string.
>>
>>62168555
Is there a single person on /g/ who could write General Lambert's Problem Solver?
>>
>>62166605
rolo
>>
>>62182272
rolling again
>>
>>62182285
boring again.
fibonacci:
x, y = 0, 1
for _ in range(500):
x, y = y, x + y
print(x)
>>
>>62182338
Try using exceptions for control flow.
>>
rorru
>>
>>62166605
Rolling for hello world
>>
>>62182276
well, what's this language?
>>
>>62182675
Icon.
>>
>>62166605
let's do this
>>
>>62166605
Ebin roll
>>
I won't do it. Mad?
>>
>>62168555
Ebin roll v4.0
>>
>>62166605
role
>>
File: d100.jpg (330KB, 750x750px) Image search: [Google]
d100.jpg
330KB, 750x750px
>>62166605
>>
R0lL BoSs
>>
How do you approach the challenge 07?
>>
>>62183269
https://github.com/Kahdeg-15520487/XASM
like this.
i recommend read this book "GAME SCRIPTING MASTERY"
>>
>>62166605
Rolling
>>
Roll~
>>
>>62183596
Oh neat! Can't wait to try this one.
>>
leeeeeeeeeet's do this
>>
good challenge hope it won't be hard
>>
>>62166605
rolling, long flight ahead.
>>
File: 1494079251629.jpg (87KB, 540x482px) Image search: [Google]
1494079251629.jpg
87KB, 540x482px
rollin
>>
>>62181248
I guess it's easy if you use python and tensorflow.
Otherwise it's only easy up to back propagation.
>>
roll'd
>>
>>62166605
rawl

I'll do it in haskell
>>
>>62166605
Roll
>>
>>62166605
roll
>>
>>62184858
i ain't got time for that shieeeet
>>
>>62168555
Need another one
>>
>>62166605
ding
>>
>>62168555
fucking roll

haskell 4ever
>>
>>62168555
roll
>>
File: MVI_4648.MOV.converted.webm (1MB, 1280x720px) Image search: [Google]
MVI_4648.MOV.converted.webm
1MB, 1280x720px
>>62185444
Done. webm related
Rolling again.
>>
File: IMG_4651-resized.jpg (119KB, 2000x1333px) Image search: [Google]
IMG_4651-resized.jpg
119KB, 2000x1333px
>>62185620
neat. next one done. Now I got a little script to resize muh pictures before uploading. no more gimp opening.

#!/usr/bin/python3
import sys
from PIL import Image

MAX_SIZE = 2000.0

def get_fact(size):
return (MAX_SIZE/size)

for i in range(1, len(sys.argv)):
im = Image.open(str(sys.argv[i]))
fact = 1
if(im.size[0] > 2000):
fact = get_fact(im.size[0])

x = int(im.size[0]*fact)
y = int(im.size[1]*fact)
print(x)
print(y)
im = im.resize((x,y))
im.save(sys.argv[i].split('.')[0] + "-resized.jpg", "JPEG")
#!/usr/bin/python3
import sys
from PIL import Image

MAX_SIZE = 2000.0

def get_fact(size):
return (MAX_SIZE/size)

for i in range(1, len(sys.argv)):
im = Image.open(str(sys.argv[i]))
fact = 1
if(im.size[0] > 2000):
fact = get_fact(im.size[0])

x = int(im.size[0]*fact)
y = int(im.size[1]*fact)
print(x)
print(y)
im = im.resize((x,y))
im.save(sys.argv[i].split('.')[0] + "-resized.jpg", "JPEG")
>>
File: 1337-haxor.jpg (56KB, 640x492px) Image search: [Google]
1337-haxor.jpg
56KB, 640x492px
>>62186044
44 already done in the post before. rerolling.
>>
File: dubsIntensified.jpg (14KB, 480x360px) Image search: [Google]
dubsIntensified.jpg
14KB, 480x360px
>>62186044
>>62185444
checked
>>
>>62168555

> I'll actually try to do it.
>>
>>62166605
roll
>>
>>62166605
They see me rolling
>>
>>62166605
rollin
>>
>>62179366
That C wont compile you shit
>>
File: IMG_1140.png (2MB, 750x1334px) Image search: [Google]
IMG_1140.png
2MB, 750x1334px
>>62168555
>>
>>62166605
if I don't feel too gay I might do it
>>
>>62166605
I don't know shit about programming
>>
>>62188596
Time to learn anon :)
>>
rollerino
>>
File: the guys.png (770KB, 994x796px) Image search: [Google]
the guys.png
770KB, 994x796px
ROLLING RONALD ROVER
>>
I doubt I can make half of this shit but whatever, rolling
>>
>>62166605
rolling
>>
Rollen
>>
>>62166605
roll tbqh
>>
File: terry.png (1MB, 400x800px) Image search: [Google]
terry.png
1MB, 400x800px
>>62166605
already on 2 different projects, fuck it
>>
>>62166605
nah
>>
keep rolling rolling rolling ya
>>
>>62168555
I'm lazy so I probably won't do it.
>>
rollin'
>>
>>62168555
Roll
>>
>>62166605
R O L L
>>
>>62166605
rollerino
>>
>>62166605
i will do this
>>
>>62168555
roll
>>
>>62166605
ROL
>>
Keep rolling
>>
>>62166605
rollin'
>>
rollin'
>>
>>62166605
Rolling for this baby
>>
>>62192313
Re roll because I'm making no fucking games
>>
>>62192324
Roll again because I've done this already in 3 languages...
>>
Llor
>>
>>62166605
BZZZZ
>>
im not doing it
>>
>>62166605
je roll pour ludo et c'est reptilien
>>
>>62166605
roll
>>
>>62166605
Rolling
>>
>>62174497
I like programming, but I agree with you, these problems make me vomit too. Mostly because they are totally pointless or somebody else already did them.
>>
>>62166605
rall
>>
>>62179088
>5) Put it on GitHub.
>6) ???
>7) Profit!

ah what? Sudoku? Isn't that the same as putting HelloWorld on Git?
>>
rolling before this dies
>>
File: 1495078585671.png (349KB, 512x415px) Image search: [Google]
1495078585671.png
349KB, 512x415px
>>62166605
gib
>>
>>62166605
roll.
>>
>>62166605
rell
>>
>>62196335
fizzbuzz get
>>
>>62166605
Rollerino
>>
>>62196403
Reroll because im a massive faggot
>>
Rollerino
>>
>>62166605
Rolly polly
>>
>>62168555
>86 Design an Esoteric Language
What's an 'esoteric' language in a programming sense?
>>
>>62166605

rolling again
>>
rolling jf
>>
>>62168555
im pretty sure there is a more recent version than 4.0 as well, but still rolling
>>
>>62166605
fuck you
>>
>>62166605

roll
>>
>>62166605
rollerino
>>
k
>>
>>62168555
rolllll
>>
>>62166605
roll
>>
File: jimmyboy.jpg (75KB, 1080x807px) Image search: [Google]
jimmyboy.jpg
75KB, 1080x807px
roll for weekend fun
>>
>>62166605
Rolling and failing.
>>
>>62168555
Rolling for v4.
>>
>>62166605
rollan
>>
>>62202348
rerolling
>>
roal
>>
>>62168555
rell
>>
>>62168555
roll
>>
just fuck my shit up
>>
>>62168555
LOL I ROLL ON THIS ONE HEHEHE
>>
>>62168555
Rolling
>>
>>
>>62166605
asd
>>
its been done my /g/tards
>>
>>62166605
Rell
>>
>>62166648
>webdev
>programming
Pick one
>>
>>62168555
roll
>>
>>62168555
roll skrt
>>
>>62168555
reroll xd
>>
>>62166605
ez plzy
>>
>>62168555
Roll
>>
Rolland
Have no friends so I'll try tonight and post results
>>
>>62203716
What the fuck this is literally strtok
>>
File: noot.png (55KB, 1360x738px) Image search: [Google]
noot.png
55KB, 1360x738px
>>62203653
Did it, ready for next one.
>>
>>62166605
Jim Jones roll
>>
>>62166605
>never programmed before
>rolling anyway
pls easy
>>
File: 1497804494907.jpg (109KB, 960x960px) Image search: [Google]
1497804494907.jpg
109KB, 960x960px
>>62166605
>>62168555
>>
>>62166605
rollering
>>
>>62166605
keep them doggies rollin
>>
>>62168555
rollin' rollin' rollin'
>>
>>62166605

I have zero intention of doing whatever comes up but I'm really stalling in my learning how to program so I hope I gain some direction in which to go
>>
>>62166605
Rowell
>>
>>62166605
ree
>>
ok
>>
>>62205358
fuk
>>
>>62168555
ROLL
>>
>>62205457
wtf, too hard

lets roll again
>>
rollin'
>>
>>62166605
Ass
>>
one more time
>>
>>62166605
Make me
Thread posts: 258
Thread images: 21


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.