SgtMe 46 Veteran Poster Featured Poster

scan -> all-in-one printer

SgtMe 46 Veteran Poster Featured Poster

Reminds me of the annoying paperclip from an old word proccessor...I used to speak to it as well.
"Are you writing a letter?"
"No. P*ss off".

Looks nice as an avatar though :)

EDIT: YAY 500 POSTS :D:D:D:D:D:D

SgtMe 46 Veteran Poster Featured Poster

and........629 agaaaaaaaaaaaaaaaaaaaaaain... :L

SgtMe 46 Veteran Poster Featured Poster

So you don't get any chance to enter input or anything in between the prints, and it's just wildly looping? It appears that your main game loop will always be true. You should use couts to check the values of variables and the expected output as you go. Use "system("pause")" [if your on windows] to pause the program after each loop and see what has happened.

You also appear to have something funny going on at line 83 (in your latest full code). You have

while (moveIsValid (Move) != true);

and then all the bits for changing who's turn it is. This would suggest that if the move is not valid, you change turn, therefore you will keep changing turn as the input is not valid.

SgtMe 46 Veteran Poster Featured Poster

I'm playing "Inside the fire" on electric guitar :D:D:D

SgtMe 46 Veteran Poster Featured Poster

smart -> brain

SgtMe 46 Veteran Poster Featured Poster

Nor do you.
Well this has gone well :/

SgtMe 46 Veteran Poster Featured Poster

Could you copy and paste the output (just one line of the repeating bit)? Even if the "else if" didn't work, it's still more conventional and would be better if you had more if statements.

SgtMe 46 Veteran Poster Featured Poster

What shall I say of today?
629.

SgtMe 46 Veteran Poster Featured Poster

reflect -> think

SgtMe 46 Veteran Poster Featured Poster

Aaaah yes.
629

SgtMe 46 Veteran Poster Featured Poster

glass -> mirror

SgtMe 46 Veteran Poster Featured Poster

damaged -> broken

SgtMe 46 Veteran Poster Featured Poster

No I haven't. What happens?
629.

SgtMe 46 Veteran Poster Featured Poster

Weakness -> Injury

SgtMe 46 Veteran Poster Featured Poster

LOL I never knew that! It's still in full development, so I guess it's becoming better with age.

SgtMe 46 Veteran Poster Featured Poster

Gaming -> Consoles

SgtMe 46 Veteran Poster Featured Poster

So it keeps printing "Computer Moves"?
It would appear that your block of "if" statements are constantly going to the "else" option. Try this:
At line 72:
Change

else (Whose_Turn == 2);

To

else if (Whose_Turn == 2);

However, if that is the case, it will probably keep reverting to the "else if" and we will have another problem.

SgtMe 46 Veteran Poster Featured Poster

Evenin' Jon :)
629, I do believe
PS. I kept the truce :)

SgtMe 46 Veteran Poster Featured Poster

"Walk This Way" - Aerosmith

SgtMe 46 Veteran Poster Featured Poster

Something associated to "world of warcraft". Sorry I kinda mucked that up didn't I?!

SgtMe 46 Veteran Poster Featured Poster

629
BlueScreen Error: The thread got stuck in an infinite loop ;)

SgtMe 46 Veteran Poster Featured Poster

629

SgtMe 46 Veteran Poster Featured Poster

Say something about the avatar of the person above you!!!
I'll start...

codeorder commented: :) +0
SgtMe 46 Veteran Poster Featured Poster

Which line is the print statement on? Please repost the code.

SgtMe 46 Veteran Poster Featured Poster

629

SgtMe 46 Veteran Poster Featured Poster

Utgarde Keep -> World of warcraft.
EDITED TO MAKE CLEARER ;)
Safe to say, I don't play it. It just came up on a google and I had nothing else to say :L

SgtMe 46 Veteran Poster Featured Poster

Erggggggggggggggggggggggggggggggggggg...*nervous* :/ ;)

SgtMe 46 Veteran Poster Featured Poster

walmart -> asda

SgtMe 46 Veteran Poster Featured Poster

Please upvote my post that helped you. Thanks.
Which part is it that gets printer constantly?
PS. I'll be back later I'm going to the fish and chip shop :D

SgtMe 46 Veteran Poster Featured Poster

bullseye -> target

SgtMe 46 Veteran Poster Featured Poster

Just a quick question from myself. I have next to no SDL experience but I was having a logical look through your code.
From lines 93 - 120, in your "handle_input()" function, you check for key downs and key ups. Surely this won't move while the key is held, but only when pressed down or released? It's probably just my lack of knowledge ;)

SgtMe 46 Veteran Poster Featured Poster

625!

SgtMe 46 Veteran Poster Featured Poster

water -> drink

SgtMe 46 Veteran Poster Featured Poster

Well Ruby isn't so popular these days, but Ruby on Rails is used a fair bit for the web, but again it's not Ruby as such. Yeah I'm trying to learn a bit of Ruby at the moment, just to broaden my horizons.

SgtMe 46 Veteran Poster Featured Poster

Could you post your entire code? I have an idea for how it could work, but I would need to implement it in your existing code.
My idea:

  • Read line from file and convert to int
  • If int is less than 2, discard, if it is 2 or above, add the original string to an array
  • Repeat this until you get to your maximum number

It's a little long winded but it may work.
I'll code it once you have posted your code (don't forget code tags!)
Thanks :)

SgtMe 46 Veteran Poster Featured Poster

Python has growing support for things like OpenGL, which are huge in the sofware/games development industry. Also, there are several Python modules enabling the use of web apps or sites. There are a surprising amount of desktop programs that were programmed in Python, Blender being just one of them. So yes, I think they have space to go. Python is a much simpler language than C++, for example, but it still has great capabilities. With a bit of luck, Python could become a great language for indie game dev.

SgtMe 46 Veteran Poster Featured Poster

What is the problem you are having?

SgtMe 46 Veteran Poster Featured Poster

slippery -> ice

SgtMe 46 Veteran Poster Featured Poster

"Summertime Suicide" - Murderdolls

SgtMe 46 Veteran Poster Featured Poster

The error is around lines 70 and 75. The user input changes the value of "Move" and the computer random value writes to the value of "move". Notice the difference?
Now look at lines 88 to 98. This is where you execute the moves. They both use "Move", which will always be the user input. Change line 75 to:

Move = rand () % 8;

Also:
http://www.cplusplus.com/reference/clibrary/cstdlib/rand/
Here is a reference to rand.
Have a look through.
You should reseed the random value:

#include <time.h>
//...............
//Between current lines 74 and 75
srand (time(NULL));

This should hopefully sort it :)

SgtMe 46 Veteran Poster Featured Poster

Please upvote the helpful posts. Thanks.

SgtMe 46 Veteran Poster Featured Poster

OK I'll tell you my secret weapon: My secret weapon is that I don't really have a secret weapon, but it sounds intimidating and can make your opponent edgy ;)
It's now just a weapon...that...won't work anymore... :P

WASDted commented: LOL +0
SgtMe 46 Veteran Poster Featured Poster

625!!!

SgtMe 46 Veteran Poster Featured Poster

fishing -> rain

SgtMe 46 Veteran Poster Featured Poster

Is the problem solved?

SgtMe 46 Veteran Poster Featured Poster

:D Me loves KSE :P
Currently,
"Bloodmeat" - Protest The Hero

SgtMe 46 Veteran Poster Featured Poster

no no no no nooooooooooooooo...623

SgtMe 46 Veteran Poster Featured Poster

OK sorry if I confused a lot of people with my post, but I only meant for you to remove the args, not to make the blank main function. Put the others lines back in the main function. It's much more conventional.

SgtMe 46 Veteran Poster Featured Poster

Scream...aim...fffffirrrrrreeeeeeeeee!!!!!! (bfmv)