Go Back   GotGames.com.au > GotGames Off Topic Discussion > Programming

Reply
 
LinkBack Thread Tools
Old 27-10-2007   #1 (permalink)
Honorary Member
 
fUtz's Avatar
 
Join Date: Nov 2006
Location: Brisbane, QLD
Posts: 1,746
Rep Power: 4
Default Need Help With C# !! Programming Yahtzee !!

Well, topic pretty much says it all.

If anyone could help me out with some things I'd really appreciate it. I'm pretty horrible at the language and need to do this thing by Monday

Contact me on msn: kuff_89@hotmail.com

Thanks alot,
ztuf
__________________
fUtz is offline   Reply With Quote
Old 27-10-2007   #2 (permalink)
Monster Member
 
Join Date: Jan 2007
Location: Brisbane, Australia
Age: 19
Posts: 3,500
Rep Power: 6
Default

bahahahah... I've finished mine nearly

EDIT: oooo 777 posts...
__________________
Jayson
Jayso is offline   Reply With Quote
Old 27-10-2007   #3 (permalink)
Honorary Member
 
fUtz's Avatar
 
Join Date: Nov 2006
Location: Brisbane, QLD
Posts: 1,746
Rep Power: 4
Default

Then help me!
__________________
fUtz is offline   Reply With Quote
Old 27-10-2007   #4 (permalink)
jsd
Monster Member
 
jsd's Avatar
 
Join Date: Nov 2006
Location: Wezza
Posts: 3,161
Rep Power: 6
Default

Help futz
__________________
jsd is offline   Reply With Quote
Old 27-10-2007   #5 (permalink)
Pro Member
 
chemicalNova's Avatar
 
Join Date: Jun 2006
Age: 19
Posts: 5,593
Rep Power: 8
Default

What specifically are you requiring?

I'm going to assume that because this is a project, your teacher has you using something **** like XNA for it.

What is the setup so far?

chem
__________________
There are no stupid questions... but there are alot of inquisitive idiots.
-
chemicalNova is offline   Reply With Quote
Old 28-10-2007   #6 (permalink)
Honorary Member
 
fUtz's Avatar
 
Join Date: Nov 2006
Location: Brisbane, QLD
Posts: 1,746
Rep Power: 4
Default

It's a uni assignment.

Pretty much they have given us a skeleton, with a bunch of classes. In each class they gave us each method that needs to be implemented in that class.

The rest is pretty much go code yahtzee. I'm pretty far into it now, just having trouble getting the gameplay to work.

I'm guessing someone who isn't doing the assignment would have quite a hard time trying to catch up to the point I'm at in the game. So perhaps this was a silly thread.

However, if anyone is kind enough to have a look at my code and take a while to see if they can follow it that would be awesome.

If you want me to post the specification sheet, I can do that also.
__________________
fUtz is offline   Reply With Quote
Old 28-10-2007   #7 (permalink)
Pro Member
 
chemicalNova's Avatar
 
Join Date: Jun 2006
Age: 19
Posts: 5,593
Rep Power: 8
Default

Yeah throw the sheet up here.. be interesting to see how your Uni course stacks up against my course. Attach the code aswell.. I'll have a look.

chem
__________________
There are no stupid questions... but there are alot of inquisitive idiots.
-
chemicalNova is offline   Reply With Quote
Old 28-10-2007   #8 (permalink)
Honorary Member
 
fUtz's Avatar
 
Join Date: Nov 2006
Location: Brisbane, QLD
Posts: 1,746
Rep Power: 4
Default

PM me for code so I don't get done for plagerism ****ing leeching bastards... No one will help me, yet everyones glad to steal my code -.-

There you go, try not to laugh

Thanks a lot!
__________________

Last edited by fUtz; 28-10-2007 at 05:28 PM..
fUtz is offline   Reply With Quote
Old 28-10-2007   #9 (permalink)
zaM
Monster Member
 
zaM's Avatar
 
Join Date: Jul 2007
Location: CYBERTRON!!!! Power
Age: 19
Posts: 2,861
Rep Power: 4
Default

ITB003 REPRESENT

thanks for the code, lawl.
__________________


#VividMedia
#Anexias
zaM is offline   Reply With Quote
Old 28-10-2007   #10 (permalink)
GotGames Moderator
 
esjay's Avatar
 
Join Date: Aug 2006
Location: brisbane
Posts: 6,023
Rep Power: 9
Default

Cheers for the code futz.

I just handed it in so you better redo yours I dont want you to copy
__________________

Find me at: #gotgames @ gamesurge

esjay ~ scoTT ~ ~ joeL ~ osprey_ ~ khooy ~ defi|er ~ pudge ~ KEGGGy ~ kotso ~Manji ~ dNb ~ Constance_ ~ aceh ~ subnOize ~ smiterz
Handsome gentleman crew
(club closed - must be a gentleman and a handsome)
esjay is offline   Reply With Quote
Old 28-10-2007   #11 (permalink)
Honorary Member
 
fUtz's Avatar
 
Join Date: Nov 2006
Location: Brisbane, QLD
Posts: 1,746
Rep Power: 4
Default

ROFL oops, that was dumb... esjay i'll kill you

Seriously though, I'll kill you...

Seriously.
__________________

Last edited by fUtz; 28-10-2007 at 05:33 PM..
fUtz is offline   Reply With Quote
Old 28-10-2007   #12 (permalink)
Pro Member
 
chemicalNova's Avatar
 
Join Date: Jun 2006
Age: 19
Posts: 5,593
Rep Power: 8
Default

I don't even understand Yahtzee.. LOL.

Give me specific examples of help you will need, and I can give you a ballpark on how to implement them.

BTW: Is it part of your assignment to do this:
Code:
void functionName() {
    // stuff
}
..instead of.. this:
Code:
void functionName()
{
    // stuff
}
?

You don't really see that these days.. considering Visual Studio auto-formats it for you.

chem
__________________
There are no stupid questions... but there are alot of inquisitive idiots.
-
chemicalNova is offline   Reply With Quote
Old 28-10-2007   #13 (permalink)
Pro Member
 
chemicalNova's Avatar
 
Join Date: Jun 2006
Age: 19
Posts: 5,593
Rep Power: 8
Default

Also:

You're lucky the .NET garbage collector unwinds and cleans this up for you:
Code:
private int[] GetDiceValues() {
    int[] diceValues = new int[5];
    for (int i = 0; i <= 4; i++) {
        diceValues[i] = dice[i].FaceValue;
    }
    return diceValues;
}
..anything like that in C/C++ would result in a memory leak :P

chem
__________________
There are no stupid questions... but there are alot of inquisitive idiots.
-
chemicalNova is offline   Reply With Quote
Old 28-10-2007   #14 (permalink)
Honorary Member
 
fUtz's Avatar
 
Join Date: Nov 2006
Location: Brisbane, QLD
Posts: 1,746
Rep Power: 4
Default

Quote:
Originally Posted by chemicalNova View Post
I don't even understand Yahtzee.. LOL.

Give me specific examples of help you will need, and I can give you a ballpark on how to implement them.

BTW: Is it part of your assignment to do this:
Code:
void functionName() {
    // stuff
}
..instead of.. this:
Code:
void functionName()
{
    // stuff
}
?

You don't really see that these days.. considering Visual Studio auto-formats it for you.

chem
Yeah, for some stupid reason our lecturer wants us to format it like that... Shes an idiot...

I'm sorta getting it now... I can play Yahtzee by myself...
__________________
fUtz is offline   Reply With Quote
Old 28-10-2007   #15 (permalink)
Honorary Member
 
fUtz's Avatar
 
Join Date: Nov 2006
Location: Brisbane, QLD
Posts: 1,746
Rep Power: 4
Default

Quote:
Originally Posted by chemicalNova View Post
Also:

You're lucky the .NET garbage collector unwinds and cleans this up for you:
Code:
private int[] GetDiceValues() {
    int[] diceValues = new int[5];
    for (int i = 0; i <= 4; i++) {
        diceValues[i] = dice[i].FaceValue;
    }
    return diceValues;
}
..anything like that in C/C++ would result in a memory leak :P

chem
Can you elaborate ? What would make that result in a memory leak in C/C++ ?
__________________
fUtz is offline   Reply With Quote
Old 29-10-2007   #16 (permalink)
Monster Member
 
Join Date: Jan 2007
Location: Brisbane, Australia
Age: 19
Posts: 3,500
Rep Power: 6
Default

You're not allowed to use i as a variable - it has to be more meaningful...

I've gotta finish mine tommorow....
__________________
Jayson
Jayso is offline   Reply With Quote
Old 29-10-2007   #17 (permalink)
zaM
Monster Member
 
zaM's Avatar
 
Join Date: Jul 2007
Location: CYBERTRON!!!! Power
Age: 19
Posts: 2,861
Rep Power: 4
Default

Quote:
Originally Posted by Jayso View Post
You're not allowed to use i as a variable - it has to be more meaningful...

I've gotta finish mine tommorow....
I've gotta DO mine tomorrow.
__________________


#VividMedia
#Anexias
zaM is offline   Reply With Quote
Old 29-10-2007   #18 (permalink)
Honorary Member
 
fUtz's Avatar
 
Join Date: Nov 2006
Location: Brisbane, QLD
Posts: 1,746
Rep Power: 4
Default

Jayso, I realize mine is a heap of ****... It's slowly coming together now though...
__________________
fUtz is offline   Reply With Quote
Old 29-10-2007   #19 (permalink)
Monster Member
 
Join Date: Jan 2007
Location: Brisbane, Australia
Age: 19
Posts: 3,500
Rep Power: 6
Default

Quote:
Originally Posted by fUtz View Post
Jayso, I realize mine is a heap of ****... It's slowly coming together now though...
Coding ITB007's website in C# helps a lot with 003 lol...
__________________
Jayson
Jayso is offline   Reply With Quote
Old 29-10-2007   #20 (permalink)
Honorary Member
 
fUtz's Avatar
 
Join Date: Nov 2006
Location: Brisbane, QLD
Posts: 1,746
Rep Power: 4
Default

Quote:
Originally Posted by Jayso View Post
Coding ITB007's website in C# helps a lot with 003 lol...
I don't do 007.. :s
__________________
fUtz is offline   Reply With Quote