MedVision ad

COMP 1021 Assn2 (1 Viewer)

cyrax83

discrete is killing me :(
Joined
Nov 18, 2002
Messages
376
Gender
Male
HSC
2003
So ... ideas on how to start ? :rolleyes:
 

redslert

yes, my actual brain
Joined
Nov 25, 2002
Messages
2,373
Location
Behind You!!
Gender
Male
HSC
2003
lol have fun!
look on the bright side, at least you get the 1 week break to do it
 

Capulet

UNSW rulz!
Joined
Nov 12, 2002
Messages
102
some kind of image rotating stack thingy or rather. seems scary :S
 

underthesun

N1NJ4
Joined
Aug 10, 2002
Messages
1,781
Location
At the top of Riovanes Castle
Gender
Undisclosed
HSC
2010
tetris AI is scarier ,and if you got mattk as tutor he makes you do binf style mutation and evolution for the AI...

btw how annoying is typedeffing a pointer as something with a "ptr" in the end? it makes it seem like its not a pointer, yet it is. Ambiguous :/
 

Ragerunner

Your friendly HSC guide
Joined
Apr 12, 2003
Messages
5,472
Location
UNSW
Gender
Male
HSC
2003
What did u guys get for Assignment 1?

I got 3.7/10

lol.

Anyone joining me in Comp1B again next year? :p

I doubt I can even get 1/100 of the assignment 2 done.

NO DON'T BLAME MY LACK OF ATTENTION IN LECTURES :D
 

tonberry_kun

O RLY?
Joined
Jun 21, 2003
Messages
818
Gender
Undisclosed
HSC
2003
just look at the code he has already given u
it basically has done almost all of stage1 for u... all u need to do is modify it to keep track of more than 1 image
 

ace

is retired
Joined
Oct 25, 2002
Messages
564
Location
Australia
Gender
Male
HSC
2003
I agree, Tetris AI

Welcome to PSYCHO HARD land

People in Comp1721 wish for Comp1021 assignments
 

A J C

New Member
Joined
Feb 14, 2003
Messages
9
Tetris, ahhhhhhhhhhhhhhhhhhhhhhhhhhh

1021 well, just read lectures and yeah.
 
Last edited:

cyrax83

discrete is killing me :(
Joined
Nov 18, 2002
Messages
376
Gender
Male
HSC
2003
it's just that i've done a good amount on stage1 so far. I've created my link list structure and all that, done the functions and updated the loop on the input to put it to the linked list, but i still get a Segmentation fault <core dumped> error when i try to load an image :rolleyes: no idea whats the deal
 

McLake

The Perfect Nerd
Joined
Aug 14, 2002
Messages
4,187
Location
The Shire
Gender
Male
HSC
2002
ace said:
I agree, Tetris AI

Welcome to PSYCHO HARD land

People in Comp1721 wish for Comp1021 assignments
Tetris AI would be hard, but harder than writeing a C complier from scrath that complies to MIPS Assembler?

For debugging get someone smart/who has used *NIX before to show you how to use gdb. And always, ALWAYS complie with dcc (not gcc) with the -Wall -pedantic -O options ON.
 

sunny

meh.
Joined
Jul 7, 2002
Messages
5,350
Gender
Male
HSC
2002
If you are developing at home on Cygwin, there is no dcc, so once in a while, upload your work and compile it with dcc over ssh.
 

McLake

The Perfect Nerd
Joined
Aug 14, 2002
Messages
4,187
Location
The Shire
Gender
Male
HSC
2002
And just one more word of advise: BACKUP. Once you have a segment working, save a copy of your program in case you screw it up. Trust me, I screwed up several time in COMP1721 and regretted having not made enough copies. Again, if you have a smart friend/have expericence with *NIX use CVS or an equivalent to save your backups ...
 

cyrax83

discrete is killing me :(
Joined
Nov 18, 2002
Messages
376
Gender
Male
HSC
2003
for some reason the program doesn't seem to work properly over putty :confused:
 

sunny

meh.
Joined
Jul 7, 2002
Messages
5,350
Gender
Male
HSC
2002
cyrax83 said:
for some reason the program doesn't seem to work properly over putty :confused:
You're lucky you found out early then! Under Cygwin, and especially when programming in C you get very litte protection against crap you do to yourself, such as writing over bits of memory you shouldn't be (eg, reading/writing out of bounds on an array).

By compiling with dcc under a Unix environment, you'll be able to pick out these errors that don't normally show up.

You just watch, you're going to see people panicking when they try and submit over ssh and their program won't even compile with dcc.
 

McLake

The Perfect Nerd
Joined
Aug 14, 2002
Messages
4,187
Location
The Shire
Gender
Male
HSC
2002
cyrax83 said:
for some reason the program doesn't seem to work properly over putty :confused:
My guess is that you are accessing unintlised memory, which happended to always come from the same place on your computer (and hence appear to work), but now comes from a different palce on the CSE machines (and hence has exposed a bug).
 

ace

is retired
Joined
Oct 25, 2002
Messages
564
Location
Australia
Gender
Male
HSC
2003
McLake said:
Tetris AI would be hard, but harder than writeing a C complier from scrath that complies to MIPS Assembler?
Yes, I here that is the next assignment we will be given. Fun times ahead, I predict lots of failing students or ones that want Andrew Taylor 6 feet under the ground :p
 

sunny

meh.
Joined
Jul 7, 2002
Messages
5,350
Gender
Male
HSC
2002
ace said:
Yes, I here that is the next assignment we will be given. Fun times ahead, I predict lots of failing students or ones that want Andrew Taylor 6 feet under the ground :p
It is actually a fun assignment to do =) Just so you know, theres a 3rd year subject called Compilers, but no, andrewt doesn't teach it :p
 

McLake

The Perfect Nerd
Joined
Aug 14, 2002
Messages
4,187
Location
The Shire
Gender
Male
HSC
2002
sunny said:
It is actually a fun assignment to do =) Just so you know, theres a 3rd year subject called Compilers, but no, andrewt doesn't teach it :p
Which I now feel like I don't need to do, thanks to 1B :)
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Top