how does one go about any given problem.
problem solving
Started by phil67rpg, Feb 02 2012 08:32 PM
11 replies to this topic
Ad:
#5 Members - Reputation: 103
Posted 02 February 2012 - 09:11 PM
1. get your idea on paper... this case tic tac toe
2. separate the elements of the game (marks (X,O), game rules, board, AI, user input, etc)
3. take a big cup of coffee, or red bull.. always helps.
4. sort your elements from what has the broadest effect on the application, and the ones that have the least effects on the application. (Board, marks, user input, game rules, AI)
5. Program in the order from the the most broad to the least
6. Each time you apply a element, test it until you feel confident that is working the way it should
7. Play your game for a while.
8. Set yourself a new project, and start at number 1 again.
just my 2 cents.
2. separate the elements of the game (marks (X,O), game rules, board, AI, user input, etc)
3. take a big cup of coffee, or red bull.. always helps.
4. sort your elements from what has the broadest effect on the application, and the ones that have the least effects on the application. (Board, marks, user input, game rules, AI)
5. Program in the order from the the most broad to the least
6. Each time you apply a element, test it until you feel confident that is working the way it should
7. Play your game for a while.
8. Set yourself a new project, and start at number 1 again.
just my 2 cents.
#7 Members - Reputation: 241
Posted 02 February 2012 - 09:58 PM
Phil, I love you brother, and I hope you keep up this fight to learn programming. But, I have to ask, have you actually gone through a C++ tutorial? Did you understand all of it? If not, you really need to. Let me suggest this one:
http://cplusplus.com/doc/tutorial/
I know you're in a hurry to write a cool game, and to play it. But, nothing truly worth the effort comes easy. When I was young (13/14), I learned to program in BASIC. I wrote crappy code. There was no internet, only BASIC reference manuals. But, i started by writing text adventure games, that had thins interface:
And, I had a blast writing those programs. Slowly, I advanced, learned about variables, how they worked, I wrote increasingly more complex programs. But, this was over a span of a few years. You need to show patience, start with a step, then another step. You're trying to run a marathon before you can sprint.
You can have fun with simple programs while you learn too. As you go through the tutorials, try to use what you learn and make a simple game from it. Guess the number, roulette wheel gambling, hangman, etc.
GL.
http://cplusplus.com/doc/tutorial/
I know you're in a hurry to write a cool game, and to play it. But, nothing truly worth the effort comes easy. When I was young (13/14), I learned to program in BASIC. I wrote crappy code. There was no internet, only BASIC reference manuals. But, i started by writing text adventure games, that had thins interface:
You are in a dark room. You see an exit north and South. What would you like to do: 1) Go North 2) Go South
And, I had a blast writing those programs. Slowly, I advanced, learned about variables, how they worked, I wrote increasingly more complex programs. But, this was over a span of a few years. You need to show patience, start with a step, then another step. You're trying to run a marathon before you can sprint.
You can have fun with simple programs while you learn too. As you go through the tutorials, try to use what you learn and make a simple game from it. Guess the number, roulette wheel gambling, hangman, etc.
GL.
My Gamedev Journal: 2D Game Making, the Easy Way
---(Old Blog, still has good info): 2dGameMaking
-----
"No one ever posts on that message board; it's too crowded." - Yoga Berra (sorta)
---(Old Blog, still has good info): 2dGameMaking
-----
"No one ever posts on that message board; it's too crowded." - Yoga Berra (sorta)
#9 Members - Reputation: 241
Posted 02 February 2012 - 10:30 PM
It's not really the parts of C++ that you need to grasp, it's more of understanding the philosophy of programming. Going though the C++ tutorials will help you learn to program, but it will also teach you the C++ syntax, which you can then apply to other API's (SDL, or SFML).
Once you understand the basics of programming structures, you'll be able to apply all of it to making games.
Once you understand the basics of programming structures, you'll be able to apply all of it to making games.
My Gamedev Journal: 2D Game Making, the Easy Way
---(Old Blog, still has good info): 2dGameMaking
-----
"No one ever posts on that message board; it's too crowded." - Yoga Berra (sorta)
---(Old Blog, still has good info): 2dGameMaking
-----
"No one ever posts on that message board; it's too crowded." - Yoga Berra (sorta)
#11 Senior Moderators - Reputation: 2447
Posted 02 February 2012 - 11:23 PM
Problem solving is a complex field, and there are a lot of studies and books on how to approach it.
How a person attempts to solve a problem will differ from person to person based on how they think, organize, and even visualize a problem.
That being said, there are a few common things you can do to help yourself solve problems:
How a person attempts to solve a problem will differ from person to person based on how they think, organize, and even visualize a problem.
That being said, there are a few common things you can do to help yourself solve problems:
- Write down the problem, be as descriptive as possible without going overboard. This is to get the problem solidly described in your head and on paper. It helps you to build a proper visualization, rather than some vague description.
- Break the problem up into smaller pieces, these pieces should be relatively self contained and you should be able to describe how the different pieces talk to the other pieces to produce the whole problem.
- Repeat for each of the smaller pieces till you have something more manageable.
In time the project grows, the ignorance of its devs it shows, with many a convoluted function, it plunges into deep compunction, the price of failure is high, Washu's mirth is nigh.
ScapeCode - Blog | SlimDX
ScapeCode - Blog | SlimDX


















