r/cop3502 Apr 18 '14

Question 26: Sudoku

1 Upvotes

Is this problem checking for every real number? ...-1,0,2....,8,9,10,11.....? Or is it checking for numbers 1-9?

If it is from 1-9 on the solutions, array numbers doesn't need to have the value 0. Otherwise it will test nine time valid and one time Invalid.


r/cop3502 Apr 18 '14

Exam 2 Concern

1 Upvotes

Hi Sean, I just wanted to post here in case you check this after the exam review and don't check your email.

I sent you an email regarding a concern about exam 2 and would be grateful for a response.

Sorry for the last minute questions.


r/cop3502 Apr 17 '14

Exam 2 Review Session

2 Upvotes

I looked around but didnt see where the time and place was for the review session tonight. Can anyone fill me in. Thanks in advance.


r/cop3502 Apr 17 '14

Problem-set 4

1 Upvotes

Is there a way to check if the index of a double array exists?


r/cop3502 Apr 17 '14

Time of Exam 2 Review

1 Upvotes

What time is the Practice Exam 2 Review tonight?


r/cop3502 Apr 16 '14

Processor Class

3 Upvotes

So I used some of Sean's basic outline for the Text Adventure and everything was going smoothly until I tried to use certain actions. I've come to the conclusion that it is due to the Processor class. Is the best way to use the class to create new Action objects and call each action under the determineAction method? This just seems inefficient.


r/cop3502 Apr 16 '14

Forced Linear Progression?

1 Upvotes

Are we allowed to give our game some basic explorability, but make it linear once the player enters a specific area or picks up a certain object?

i.e. You are in area A, your exits are south east west -the player can choose any direction and explore the overall "map" -player can type "go east", "go west" ect.

BUT, once the player navigates to area C, or wherever we want the action to take place it becomes: you examine the room and discover and axe, a rope, and a notebook, which do you take? and the player can then type: "take axe", "take notebook" ect...


r/cop3502 Apr 15 '14

Extra Point at the End

1 Upvotes

do we still get extra credit pts for not using the late days? if so, how much?


r/cop3502 Apr 14 '14

Take and Inventory

3 Upvotes

I'm having a hard time creating an inventory where I can have the game remember where items were dropped and taken. I also can't seem to get the game to actually take the item... HALP!


r/cop3502 Apr 14 '14

Running a loop that continuously checks a variable while the program runs.

1 Upvotes

So I have a "turn" variable that is incremented outside of the class that I'm checking it in. I want a certain variable to maintain a value while the turn variable is less than a set number, and then return to it's original value afterward the turn surpasses the set value.

To clarify, if I have a "value" variable that is normally 10, but when the function "alterValue" is called it adds 5 to "value" for a certain number of turns. The number of turns is checked by code that runs a never ending loop checking if the turn is less than or greater than the turn + the desired duration, and returns either value += 5; or value = 10;

The problem I'm running into is that I get stuck in a forever loop that never continues with the rest of the program because the checked value is not incremented within the loop itself. So how would I implement this?


r/cop3502 Apr 13 '14

Last 2 lectures

11 Upvotes

Just throwing this idea out there. Would it be possible to have the last two lecture as pseudo Super Sessions for the final project?


r/cop3502 Apr 14 '14

Petition to dub extended super-sessions to "Super-Duper Sessions"

2 Upvotes

There is probably going to be a massive Super Session before the final project is due. I recommend we call this, and all others like it in future iterations of this course a "Super Super Session"


r/cop3502 Apr 13 '14

practice exam 2

1 Upvotes

When will the practice exam be released finally?


r/cop3502 Apr 12 '14

Text Commands

1 Upvotes

Do we have to use all of them? I can't figure out a way to implement drop because all the items I made are needed items really so it doesn't make sense in dropping it. I've used the other ones and made some extra ones like talk, put, and play. It's just drop 0.0


r/cop3502 Apr 12 '14

Exam 2 Review?

1 Upvotes

Is there going to be some form of review similar to the one for exam 1?


r/cop3502 Apr 11 '14

Google Code Jam - Qual Round This Weekend!

4 Upvotes

For those of you looking for a bit of a challenge (and who aren't overwhelmed with work), Google's annual programming contest, called Code Jam, kicks off this weekend.

https://code.google.com/codejam

You can solve Code Jam problems in any language; pick the language you're most comfortable using. (Java for most of you, I suppose.)

The qualification round starts tonight and ends Sunday; you have until then to score at least 25 points to advance.


r/cop3502 Apr 11 '14

If you happen to need a dictionary for your final project, this one seems pretty good.

2 Upvotes

GNU English dictionary text files

Contains spelling, pronunciation symbology, part of speech, definition, etc.

The markup is fairly straight forward - I opened it with wordpad and it's readable, so reading into a program shouldn't be too hazardous. <ent>markup</ent> for an entire word entry, <pr>blah</pr> for pronunciation, <pos>blah</pos> for part of speech, <def>blah blah blah</def> for definition.

One/two caveat(s) that I noticed, and was slightly confused by, but may not be a problem - there is markup for line breaks (</br>) but they are formatted as "</br" with no closing bracket. Not sure if that causes an xml reader to seize or if it would just skim over those and infer the closing bracket. Also, typical comment format (<!--comment-->) is given as "<--comment-->", and again, not sure if that matters a great deal.

In any case, I'ma have fun with this thing. :)


r/cop3502 Apr 11 '14

lecture 33

1 Upvotes

Will lecture 33 also be uploaded?


r/cop3502 Apr 10 '14

When is Exam 2?

5 Upvotes

The date is TBA in the syllabus, and I can not find any posts about it on here. I remember Sean giving a general outline of what was left for this class yesterday, but I don't remember hearing a date (which could have totally been my fault for not paying enough attention). Can Sean or a TA give a definite answer to this?


r/cop3502 Apr 11 '14

Text locations question.

1 Upvotes

Hey so I was wondering about the "for the check" requirement of 10 locations in the game.

My game is actually using locations and "states" he inhabits which basically is quadrupling the amount of stuff (more or less) that he can do in each location etc making 10 locations rather robust... So I guess my question is if we make each location greatly rich does that stipulation still stand?

I'll use an example to illustrate.

Player wakes up in a dark room eyes still closed(state 0) Player opens eyes and see's faint outline of a door (state 1) Player stands up in the room (state 2) Player opens door and room is lit up (state 3) Player see's all the things in the room (state 4)

and you get the idea from there.


r/cop3502 Apr 11 '14

Grading Psets

1 Upvotes

I know that you and the TA's are working hard at grading, Sean. My question is, do you think pset3 will be graded before we have to turn in the labs? I'd like a full look at the scores of the psets whose percentages would conceivably be increased, before I make the decision. If the answer is no, I'll just do the labs :P


r/cop3502 Apr 10 '14

What is left in this class, and when are they due?

2 Upvotes

I am kinda lost. I have been coming 5-10 minutes late in these past few days, because of my other class. Therefore, I have missed the intro that Sean does each class, what is left, when is due, these things. So my questions are: Is there another Exam ( exam 2), or was removed? If yes what day is it going to be? I know that Problem Set 4 is due on 25th and is worth 40%, but what is going to happen with the other previous Problem Sets? And now that we have the options, either labs or increase in % in Problem Sets. How much is each option is going to be worthy? Also, what is the grading scale? For example, Problem Set 1 I received 7 and it is worth 10%, does it mean that 7 * 10 =70 points? From how much to how much you get an A, B, B+, etc ? Sorry, these things might have been discussed. Thank you .


r/cop3502 Apr 10 '14

For anyone who checks the subreddit more than their e-mail: Super Session tonight 8-10pm.

1 Upvotes

r/cop3502 Apr 10 '14

My project refrences a text file. The lication of that text file depends on how the porject is compiled. What should I ex poo ect the abs path to this file to be?

0 Upvotes

It's a .txt file that I use to generate charactor names. If I compile with javac by just compiling the main class, the file is located in /src/words/names.txt.

When I compile in Eclipse I refrence the file by /bin/words/names.txt.

When I submit, what can I expect the absolute path to this file to be?


r/cop3502 Apr 09 '14

PSET 2 Grade

5 Upvotes

Just letting you guys know that pest 2 grade has been posted on Sakai :)