[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]

>300 line Java project due tomorrow >haven't even

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: 73
Thread images: 12

File: received_953442484761024.jpg (116KB, 1948x858px) Image search: [Google]
received_953442484761024.jpg
116KB, 1948x858px
>300 line Java project due tomorrow
>haven't even started it yet
I should just drop out now shouldn't I?
>>
>>58637389
What kind of project?
>>
File: homersexual.png (196KB, 335x455px) Image search: [Google]
homersexual.png
196KB, 335x455px
Write a program to fill the lines for you
>>
>>58637389
punish yourself
>>
>>58637389

How about you write it now you lazy shit?
Could have probably written 20 lines instead of opening your browser to type a shitpost on 4 chan
>>
>>58637415
Gotta write tic tac toe, honestly don't know how I'm gonna do it
>>58637440
pls no bully
>>
>>58637460
gui or no gui?
>>
>>58637460
http://www.ntu.edu.sg/home/ehchua/programming/java/JavaGame_TicTacToe.html
>>
>>58637483
No gui
>>
>>58637484
But anon copying work defeats the point of the assignment
>>
>>58637460
What is tic tac toe ?
>>
>>58637497
Then google it, it has been done a milion times, or kys.
>>
>>58637460
Server also? I imagine it has to be multiplayer?
>>
>>58637518
X and O

https://www.youtube.com/watch?v=Uj8rPV6JbCE
>>
lines of code are a useless metric for complexity
>>
>>58637389
Just do this:
System.out.print("h");
System.out.print("e");
System.out.print("l");
System.out.print("l");
System.out.print("o");
>>
>>58637537
If it's not multiplayer, then op is just a lazy ass
>>
File: girls code.png (311KB, 652x669px) Image search: [Google]
girls code.png
311KB, 652x669px
>>58637701
mandatory
>>
>>58637518
Naughts and Crosses for the non subhumans
>>
>>58637389
You might as well drop out if this shit is complicated and you don't have the motivation to learn it.

I ask people to design a multiplayer game as an interview question and expect them to be able to do it within 30 minutes.
>>
>>58637389
>He can't write 300 lines of code
Yes, you should just drop out.
>>
>>58637389
>300 lines are too much
are you retarded or a lazy faggot?
>>
>>58637431
>300 commands to output lines of text plus the standard boilerplate is somehow < 300
Retard
>>
>>58640148
this desu
>>
>>58637389
>300 line Java project

Fizzbuzz or more simple stuff?
>>
File: 1471696478466.jpg (56KB, 600x810px) Image search: [Google]
1471696478466.jpg
56KB, 600x810px
>>58637497
>no gui
Dude, even a novice could easily do that in the span of a couple of hours.

ffs, just make a 3x3 array, fill in shit that the user inputs via the console, have the cpu pick a random unfilled square to put its shit in (lazy AI), and check if any of the 4 ways that tic tac toe can be made are satisfied. Print the winner and return if true. Rinse, repeat.

But more realistically, >>58640071
Even more realistically, you're putting out bait to rumble /g/'s collective jonathans.
>>
>>58640273
>Putting bait out
You might be right there friendo :^)
>>
File: bateman.gif (461KB, 200x316px) Image search: [Google]
bateman.gif
461KB, 200x316px
>>58640331
memes. :3
>>
>>58637389
>>58637460
>300 lines for tictactoe
>>
>>58637497
>Doesn't pay attention in class
>Doesn't practice programming
>Cries when he can't do the assignment
ayy lmao
>>
Alright boys an update.
Got it finished, piece of piss
>>
>>58639986
where can i find more images like this
>>
>>58637512
It shows you're resourceful imo
better than being a codemonkey
>>
>300 lines
>Java
Hello World?
>>
File: 1467938039325.png (154KB, 3000x3000px) Image search: [Google]
1467938039325.png
154KB, 3000x3000px
>>58640890
Sit around /wdg/ and /dpt/
>>
>>58637389
>what is google
>what is stackoverflow

Low effort bait op
>>
I had this homework too OP, can you tell me your solution?
>>
>>58637460
>pls no bully
it´s no bully, it´s a sincere opinion, you fucking lazy piece of shit. It´s not bully since we are not attacking you as an indentifiable individual.
>>
>>58637389
i will say this only once you little twat, take my advice:
you are rigth at the fucking begin of the year, fucking 24 days since we started, you have tthis assingment and came here to show your misery?
really? are you for reral? are you a fucking person? what the fuck is wrong with you? people like you shit fire in finals, grow the fuck up, and instead of wasting your time asking stupid questions put your lazy ass to study hard, hard you fucking cunt, what the fuck do you expect from the future if you are so fucking lazy?
do you want to flip fucking burgers? do you want to be a fucking cunt in Walmart?
come on dude!!!!
>>
Way to shit up the thread

>total code lines are meaningless when you have code re-use through methods/etc
>Do you count { and } as a line
>Do you count // as a line
>Do you count autist-tastically spacing out the lines as a line
>>
>>58637389
>implying you can classify the complexity of a program by the lines of code you need to write it, like an essay.
disregarding that, 300 lines doesn't sound too bad.
You can do that in one night (assuming you don't have to solve a hard algorithmic problem first)
>>
>>58637389
I'll sell it to you for 10 bucks in bitcoin.
>>
File: received_965296660242273.jpg (42KB, 720x785px) Image search: [Google]
received_965296660242273.jpg
42KB, 720x785px
>>58641418
>>
File: 1484011511505.png (422KB, 600x530px) Image search: [Google]
1484011511505.png
422KB, 600x530px
>>58640801
Is this even possible?
>>
>>58637389

Post java memes!
>>
just plagerize someones code and change enough so it looks like yours?

https://sourceforge.net/projects/tictactoe-javab/
>>
>>58642282
Yes, padding it with empty comments
>>
>>58639986
>without using the operator *
So how would /g/ do it then? Serial addition is what you're left with if you can't multiply.
>>
I suck at Java when I can't just scum off of stackexchange but so far I'm almost done getting a mock up done for this off memory.

It's not hard, just tedious with no GUI and I'm guessing they don't want you using libraries or object oriented programming quite yet so I'm moving forward with that in mind.
>>
>>58637497

So either this is challenging for you, and you don't find that exciting and motivating that you will push your own limits and have to create your own solutions, or it's not challenging and you're just lazy.

Holy fuck. Drop out. I'm 99% serious. The world doesn't need any more mediocre-IQ, unmotivated, lazy-ass Java programmers.
>>
>>58642777

Trips have spoken. OP, time to drop out.
>>
>>58642605

// assuming a and b are non-negative
long total = 0;
While (b-- > 0) {
total += a;
}
return total;
>>
File: 1481414081199.jpg (84KB, 680x771px) Image search: [Google]
1481414081199.jpg
84KB, 680x771px
OP here:
You really didn't recognise this as a shitpost?
>>
>>58642834

Correcting myself after thinking for a second, it's only assuming b is non-negative, and you could actually make it work for any combination of positive and negative integers by adding this before the loop:
if (b < 0) {
b = b * -1;
a = a * -1;
}
>>
>>58642932
The question literally says you can't use the* operator
>>
>>58642777
trips of truth
im sry op, but u can't argue with meme magic
>>
>>58642932
You can use an if statement in the loop to decide whether to use addition or substraction.
>>
File: 1475696606404.jpg (41KB, 800x447px) Image search: [Google]
1475696606404.jpg
41KB, 800x447px
>>58637460
it's one of those threads again, isn't it
>>
>>58637460
Nah you're not fucked, you can jumble up a shitty Tic Tac Toe game in a few hours.

If the game is not multiplayer, don't even bother with AI / solving algorithm, just make the computer do random moves / choose the first free tile.

Make the player input his move with the number pad; that's bad programming since not all keyboard have a number pad but at this point who gives a fuck, you just want to get it done.

That's about it, if even after all that you still can't figure it out then honestly just drop out because CS doesn't get any easier than that.
>>
>>58642605
int prod = 0;
for (int i = 0; i < b; i++) {
prod += a;
}
return prod;
>>
>20 lines Python assignment due in 6 billions years and still haven't started
>>
>>58637389
300 lines in Java is not that much. It's doable in 4 hours with testing.
>>
>>58637389
Tell you what, here's what you need:
1: Some sort of object that represents the board.
You can use a class, or an array of size 9, or whatever.

2: Some way of showing that thing.

Can be JFrame, text console or what have you.

3: Some way to change the state of the board.
4: Some way to orchestrate playing around.

Text based interface is easiest way to go.
>>
File: 1485140444687.png (545KB, 600x800px) Image search: [Google]
1485140444687.png
545KB, 600x800px
Fake name generator,

Add what you need then the rest can be names
300 lines ez
>>
Jesus fucking Christ, tic tac toe is simple. Why can't you just start doing it. You can represent the board as an array if your lazy.
>>
>>58642605
You just use the recursive definition ala peano arithmetic and convert it to a while loop (which is isomorphic to tail recursion)
>>
>>58642941

b = -b;
>>
>>58637460
>>58637484
LITERALLY an hour at most.
>>
>>58648464
Maybe for a Chad like you
>>
>>58640801
Just dumb your code down you elitist

No one wants your autism compression shit
>>
>>58649648
I am completly retarded and barely hugged a girl once.

I also dont code very often.
>>
File: 254.png (777KB, 680x631px) Image search: [Google]
254.png
777KB, 680x631px
>>58642777
The trips have decided op
>>
>>58637389
>java
spit in their face and demand a refund from those hacks.
Thread posts: 73
Thread images: 12


[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.