Jump to content

  • Log In with Google      Sign In   
  • Create Account

We're offering banner ads on our site from just $5!

1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


#Actualwarnexus

Posted 10 February 2013 - 12:21 AM

I just want to ask how to do game management..I mean in terms of classes and their relation..what should be done should i use design patterns or something..i just want to get the ability to think in terms of management..Today i was writing a basic TIC TAC TOE game and tried to think in terms of OOP but i dont know whether i was doing right or wrong.I just did some paper work..i want help.An example game would be helpful and also if there is some good book out there then do tell me also...

Instead of thinking game management, think of how you can manage your code. Is your code flexible and maintainable? Can I use this code in other project with very few tweaks?

 

Well you are in luck because I coded my TicTacBoard last year and still have it as a good reference so I can tell you how you can make your code reusable and how I lay out my game design. 

 

a folder named buttonimages(that contains the images of the cross and X)

a class that setup the TicTacBoard

a class that setup the board logic

a class that is a TicTacToeButton

a class called TicTacToeMain(the entry point of your program)

 

On a side note, you can also added a class for Player1 and another class for Player2. 

 

Hopefully you can see from my class description that each class sounds like it is an object hence why it is object-oriented.

 

This comes from experience. I must have written so many programs before I learned and adapted into the good OOP style and practice. No book can do a better job than applied experience! You will make mistakes but learn from them! Draw diagrams before coding! Question your design and bugs(this is bound to happen). I ran into so many bugs when I coded Tic-Tac-Toe despite having experience with Java. But I finished it in less than a day's time. You will struggle, but have fun with it. It is programming-the best thing you can do in front of a computer!

 

Best of luck with Tic-Tac-Toe!


#6warnexus

Posted 10 February 2013 - 12:16 AM

I just want to ask how to do game management..I mean in terms of classes and their relation..what should be done should i use design patterns or something..i just want to get the ability to think in terms of management..Today i was writing a basic TIC TAC TOE game and tried to think in terms of OOP but i dont know whether i was doing right or wrong.I just did some paper work..i want help.An example game would be helpful and also if there is some good book out there then do tell me also...

Instead of thinking game management, think of how you can manage your code. Is your code flexible and maintainable? Can I use this code in other project with very few tweaks?

 

Well you are in luck because I coded my TicTacBoard last year and still have it as a good reference so I can tell you how you can make your code reusable and how I lied out my game design. 

 

a folder named buttonimages(that contains the images of the cross and X)

a class that setup the TicTacBoard

a class that setup the board logic

a class that is a TicTacToeButton

a class called TicTacToeMain(the entry point of your program)

 

On a side note, you can also added a class for Player1 and another class for Player2. 

 

Hopefully you can see from my class description that each class sounds like it is an object hence why it is object-oriented.

 

This comes from experience. I must have written so many programs before I learned and adapted into the good OOP style and practice. No book can do a better job than applied experience! You will make mistakes but learn from them! Draw diagrams before coding! Question your design and bugs(this is bound to happen). I ran into so many bugs when I coded Tic-Tac-Toe despite having experience with Java. But I finished it in less than a day's time. You will struggle, but have fun with it. It is programming-the best thing you can do in front of a computer!

 

Best of luck with Tic-Tac-Toe!


#5warnexus

Posted 10 February 2013 - 12:14 AM

I just want to ask how to do game management..I mean in terms of classes and their relation..what should be done should i use design patterns or something..i just want to get the ability to think in terms of management..Today i was writing a basic TIC TAC TOE game and tried to think in terms of OOP but i dont know whether i was doing right or wrong.I just did some paper work..i want help.An example game would be helpful and also if there is some good book out there then do tell me also...

Instead of thinking game management, think of how you can manage your code. Is your code flexible and maintainable? Can I use this code in other project with very few tweaks?

 

Well you are in luck because I coded my TicTacBoard last year and still have it as a good reference so I can tell you how you can make your code reusable and how I lied out my game design. 

 

a folder named buttonimages(that contains the images of the cross and X)

a class that setup the TicTacBoard

a class that setup the board logic

a class that is a TicTacToeButton

a class called TicTacToeMain(the entry point of your program)

 

On a side note, you can also added a class for Player1 and another class for Player2. 

 

Hopefully you can see from my class description that each class sounds like it is an object hence why it is object-oriented.

 

This comes from experience. I must have written so many programs before I learned and adapted into the good OOP style and practice. No book can do a better job than applied expierence! You will make mistakes but learn from them! Draw diagrams before coding! Question your design and bugs(this is bound to happen). I ran into so many bugs when I coded Tic-Tac-Toe despite having experience with Java. But I finished it in less than a day's time.  

 

Best of luck with Tic-Tac-Toe!


#4warnexus

Posted 10 February 2013 - 12:12 AM

I just want to ask how to do game management..I mean in terms of classes and their relation..what should be done should i use design patterns or something..i just want to get the ability to think in terms of management..Today i was writing a basic TIC TAC TOE game and tried to think in terms of OOP but i dont know whether i was doing right or wrong.I just did some paper work..i want help.An example game would be helpful and also if there is some good book out there then do tell me also...

Instead of thinking game management, think of how you can manage your code. Is your code flexible and maintainable? Can I use this code in other project with very few tweaks?

 

Well you are in luck because I coded my TicTacBoard last year and still have it as a good reference so I can tell you how you can make your code reusable and how I lied out my game design. 

 

a folder named buttonimages(that contains the images of the cross and X)

a class that setup the TicTacBoard

a class that setup the board logic

a class that is a TicTacToeButton

a class called TicTacToeMain(the entry point of your program)

 

On a side note, you can also added a class for Player1 and another class for Player2. 

 

This comes from experience. I must have written so many programs before I learned and adapted into the good OOP style and practice. No book can do a better job than applied expierence! You will make mistakes but learn from them! Draw diagrams before coding! Question your design and bugs(this is bound to happen). I ran into so many bugs when I coded Tic-Tac-Toe despite having experience with Java. But I finished it in less than a day's time.  

 

Best of luck with Tic-Tac-Toe!


#3warnexus

Posted 10 February 2013 - 12:09 AM

I just want to ask how to do game management..I mean in terms of classes and their relation..what should be done should i use design patterns or something..i just want to get the ability to think in terms of management..Today i was writing a basic TIC TAC TOE game and tried to think in terms of OOP but i dont know whether i was doing right or wrong.I just did some paper work..i want help.An example game would be helpful and also if there is some good book out there then do tell me also...

Instead of thinking game management, think of how you can manage your code. Is your code flexible and maintainable? Can I use this code in other project with very few tweaks?

 

Well you are in luck because I coded my TicTacBoard last year and still have it as a good reference so I can tell you how you can make your code reusable and how I lied out my game design.

 

a folder named buttonimages(that contains the images of the cross and X)

a class that setup the TicTacBoard

a class that setup the board logic

a class that is a TicTacToeButton

a class called TicTacToeMain(the entry point of your program)

 

This comes from experience. I must have written so many programs before I learned and adapted into the good OOP style and practice. No book can do a better job than applied expierence! You will make mistakes but learn from them! 

 

Best of luck with Tic-Tac-Toe!


#2warnexus

Posted 10 February 2013 - 12:08 AM

I just want to ask how to do game management..I mean in terms of classes and their relation..what should be done should i use design patterns or something..i just want to get the ability to think in terms of management..Today i was writing a basic TIC TAC TOE game and tried to think in terms of OOP but i dont know whether i was doing right or wrong.I just did some paper work..i want help.An example game would be helpful and also if there is some good book out there then do tell me also...

Well you are in luck because I coded my TicTacBoard last year so I can show how you can make your code reusable and how I lied out my game design. Instead of thinking game management, think of how you can manage your code. Is your code flexible and maintainable? Can I use this code in other project with very few tweaks?

 

a folder named buttonimages(that contains the images of the cross and X)

a class that setup the TicTacBoard

a class that setup the board logic

a class that is a TicTacToeButton

a class called TicTacToeMain(the entry point of your program)

 

This comes from experience. I must have written so many programs before I learned and adapted into the good OOP style and practice. No book can do a better job than applied expierence! You will make mistakes but learn from them! 

 

Best of luck with Tic-Tac-Toe!


PARTNERS