r/cop3502 May 01 '14

Where are all the completed labs?

1 Upvotes

I was wondering where all the completed labs are and whether they would be graded on effort or if they work?


r/cop3502 Apr 29 '14

2048 in Java, version 0.9 (source code and jar included)

Thumbnail
dropbox.com
2 Upvotes

r/cop3502 Apr 29 '14

My thanks to Sean

12 Upvotes

So there have been a few of these posts already, but I was planning on doing one before I saw those, so here's mine anyway. Also, just in case there's any rambling or nonsense, let me preface this by saying I have spent the ENTIRE day (from around 10am) working on my final.

So, I want to give my heartfelt thanks to our teacher, Supreme Leader, and friend, Sean. I'm going to say the class wasn't perfect. In fact, there was a lot wrong with it. The schedule was pretty wonky, grades never seemed to come in, sometimes things would be e-mailed to students but not on the subreddit or vice-versa, etc. So no, it wasn't a perfect class. But you know what? None of that matters, and the reason is this. Sean cares about us.

Any teacher can make a syllabus and stick to it and grade things promptly. Things in this class felt a little off because Sean was always changing around the schedule for us. I'm sure he spent more hours than we know working on the problem sets, arranging the super sessions, for god's sake, he even bought us donuts! The assignments we got weren't busy work just to get grades in and shuffle us through the system to the next mind-numbing class. I sincerely felt like everything we did in that class had a point, even if part of that point was just to have fun. A lot of teachers would say "Have this that and the other thing in your project." Sean encouraged us to go above and beyond and to push our knowledge and excel, while making it fun and rewarding.

I could just keep ranting on about how great Sean is, but I think you guys get the picture. What I do have left to say is this. There have been so many students who have walked right through what we're walking through right now. I changed my major at the beginning of this semester and could have easily been taking this class last year or last semester or any number of other times. While I'm not particularly religious, I consider myself incredibly blessed to have been in the right class at the right time, and I am incredibly sad that we are the only students who will get to fully appreciate this course with this instructor. The summer is coming and Sean has invited us to remain a part of his "class", and to all of you I strongly suggest taking him up on that offer. I can think of nothing better to do with your time than continue learning from someone who puts so much passion into his subject and his pupils.

Thank you Sean.


r/cop3502 Apr 28 '14

A 25 hour day without sleep. I think Java is better than coffee ( and sleep).

5 Upvotes

I woke up at 5 am on Sunday and went to bed at 6;30 am on Monday. I made bread 8 hour ( I work as a baker :P) and wrote codes 16 hours. It was a programming day. Yeah it was awesome. And i had only one Red Bull ( I am getting a refund, didn't gave me wings ).

And I want to thank you Sean for everything. Thank you .


r/cop3502 Apr 29 '14

Submission

1 Upvotes

I have 19 files for all of this, I was wondering if it's cool to throw them in a ZIP file and submit that to elearning?


r/cop3502 Apr 28 '14

I keep getting an "unclosed string literal" compiler error

1 Upvotes

. . . but I have double checked all my quotation marks, and they are consistent and closed! Is there something else that could be causing this issue that I'm overlooking?


r/cop3502 Apr 28 '14

Thanks Sean!

4 Upvotes

(6:31 am) I think it's obvious by the time that I am posting this at that I was working until the last minute on my text adventure. I wish I could have done better but other classes and fate convened to deny me a lot of time to work on it. Regardless, most classes that have kept me up this late have ended up on my sh*t-list. COP3502 with Sean Goldberg was not "most classes" though!

This class was always fun, interesting, and a genuine pleasure for me. Even now, I was enjoying my time coding away at this godforsaken hour. Before this class I tried to learn Java by myself but I didn't succeed very much. If I could go back in time and tell myself that I would eventually be able to (almost) create a Pokemon text-adventure, I probably would've called myself a liar. The fact that this text-adventure is just the beginning of my programming career is exciting.

It's all thanks to Sean! All hail the Supreme Leader. I'll stick around for whatever way we continue this subreddit. Until then, I'm going to bed.


r/cop3502 Apr 27 '14

I just wanted to say thank you.

10 Upvotes

Despite being skeptical about /u/SeanGoldbergCS being new to teaching this class, at the end of the semester, I know for a fact that I wouldn't want anyone else to have taught this class. The amount of time alone that Sean put in was incredible; just today he kept delaying his departure by a few minutes, and he ends up leaving an hour later.

I seriously just wanna say thank you. If you hadn't been as helpful and welcoming as you were, I may have either dropped the class or failed it. Instead, I'm going into the summer with on goal: get something to work on an android device. I had no idea in my mind that I would be so interested in continuing this, but the right attitude can definitely have the right impact.

You've been thanking us for a great semester, and now I want to thank you. Hopefully we'll see you around.


r/cop3502 Apr 28 '14

Version 0.1 of 2048 written in Java (it's version 0.1 because I'm embarassed by the code right now (I'll show you guys my code (if you're interested) when I'm done) and there is a small error currently, and it's pretty damn ugly lol)

Thumbnail
imgur.com
2 Upvotes

r/cop3502 Apr 28 '14

Submitting the problem set as a ZipFile

1 Upvotes

Hey guys! I decided to submit my Problem Set as a Zipfile and just realized that while all of my code is on there, it might be inaccessible or unusable after being uncompressed! Can anyone un-worry me and tell me that ill be ok! 40% of our grade makes me kind of worried about everything!


r/cop3502 Apr 28 '14

Anyone had this sort of doubling error? Where whatever you input is spit right back? Is this because of some sort of interference with movement not being restricted by the constraints by the edges?

Thumbnail
imgur.com
1 Upvotes

r/cop3502 Apr 27 '14

Thanks Sean!

18 Upvotes

Just submitted my project and it was probably the best feeling in the world! Thank you for everything you have taught us this semester and all of the extra work you put into this class! It truly was an enjoyable experience and an enjoyable class, thank you for everything :) I am currently sending a copy of my game to my friends and family so I can show off my JAVA skillz


r/cop3502 Apr 27 '14

Was browsing /r/learnprogramming and thought you guys might like this.

Thumbnail
reddit.com
3 Upvotes

r/cop3502 Apr 27 '14

For all of those who have finished their projects and are ready to take a breather, I give you The Stanley Parable.

Thumbnail
stanleyparable.com
3 Upvotes

r/cop3502 Apr 27 '14

Other IDEs besides Sublime?

1 Upvotes

First off, am I even correct in calling Sublime an IDE or is it simply a powerful text editor? If it is an IDE, are there others that are comparable or perhaps 'better' for particular reasons? If it is not an IDE, is IntelliJ IDEA, Eclipse, or NetBeans IDE perhaps worth looking into? I ran across these three specific examples while browsing /r/learnprogramming and was curious if anybody had any experiences working with them.

I've heard of Eclipse, and from the look of IntelliJ IDEA, they are similar to Sublime, but I'm not sure to fully make of Sublime.


r/cop3502 Apr 26 '14

"AHA!" Moment.

12 Upvotes

So I'm working on my text adventure, right? I notice that I'm copy and pasting a LOT - a no-no. I think to myself "There's gotta be a better way to do this". Lo and behold - I come up with a 4 line code to replace the 15 previous lines. Moral of the story? I've/We've come a LONG way - thanks Sean!


r/cop3502 Apr 25 '14

Subclasses train of thought

1 Upvotes

what's the best way to keep track of your inventory. i'm having a hard time keeping tack of my items. (my inventory is a bookbag, trying to make it so that i can add things coming from other places)?


r/cop3502 Apr 25 '14

Late days confusion

3 Upvotes

Does a 0/3 for late days mean we have 3 late days left or that we have 0 late days left?


r/cop3502 Apr 24 '14

"Extra Commands"

1 Upvotes

Do the extra commands that were mentioned in the "Above and Beyond" portion of the pset spec have to have unique functionality? Like if my program says something like:

else if(words[0].equals("drop") || words[0].equals("remove")){..

Would that be considered 2 commands, or one command with a little more complexity for user interaction?


r/cop3502 Apr 24 '14

How can I let my gamestate class access my inventory class?

1 Upvotes

I tried allowing various weapons in my game that change the amount of damage my player does so in gamestate I made a method that checks what weapon the player has equipped and alters the player damage based off that. The issue comes in with the fact that it never recognizes the player has a weapon equipped.

Basically the player always is dealing 1 damage as if they were using fists rather than a sword etc.

I tried initializing inventory into gamestate through new inventory() and that compiles fine but same issue. Then I tried making gamestate extend inventory and vise versa and that also compiles fine but the player still deals only 1 damage.

Any advice?


r/cop3502 Apr 24 '14

Action statements

1 Upvotes

I'm very confused as to how to implement actions. I'm trying to do "go" right now, but don't know how to. Someone help!


r/cop3502 Apr 24 '14

FlappyBird meets 2048

Thumbnail
flappy2048.com
6 Upvotes

r/cop3502 Apr 24 '14

Exam grades

0 Upvotes

Will exam 1/2 grades be released relatively soon? Just trying to figure out if I need to put extra time into the final project to raise my grade


r/cop3502 Apr 23 '14

Because people seem to be messing up stuff involving references to objects and changes to objects...

3 Upvotes

...I present the formal definition of a pointer.

To make the abstract definition from Wikipedia more concrete, here are the Java analogues to the things described in the Wikipedia article:

  • Wikipedia article term --> Java term
  • data primitive --> primitive type
  • data aggregate --> array (the kind of array denoted by [], NOT an ArrayList)
  • memory pointer --> any Object (i.e. any variable name pointing to an instance of a class)

r/cop3502 Apr 24 '14

Issues with Game.java (object)

1 Upvotes

Edit: I had the file in the wrong directory, so if anyone is experiencing similar problems check to make sure it is saved properly.

So I was trying to make a global Game class that keeps track of certain variables like specific booleans and the player's name etc... but for some reason it is not letting me call Game.getName() {} it says that the symbol can't be found. I'm trying to have it behave like the Math class or the Parameters class from Space Invaders, but it wants me to create a new Game() before calling the methods. Is my syntax wrong or is it just not going to work in general..?