scan -> all-in-one printer
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
and........629 agaaaaaaaaaaaaaaaaaaaaaain... :L
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.
I'm playing "Inside the fire" on electric guitar :D:D:D
smart -> brain
Nor do you.
Well this has gone well :/
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.
What shall I say of today?
629.
reflect -> think
Aaaah yes.
629
glass -> mirror
damaged -> broken
No I haven't. What happens?
629.
Weakness -> Injury
LOL I never knew that! It's still in full development, so I guess it's becoming better with age.
Gaming -> Consoles
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.
Evenin' Jon :)
629, I do believe
PS. I kept the truce :)
"Walk This Way" - Aerosmith
Something associated to "world of warcraft". Sorry I kinda mucked that up didn't I?!
629
BlueScreen Error: The thread got stuck in an infinite loop ;)
629
Say something about the avatar of the person above you!!!
I'll start...
Which line is the print statement on? Please repost the code.
629
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
Erggggggggggggggggggggggggggggggggggg...*nervous* :/ ;)
walmart -> asda
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
bullseye -> target
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 ;)
625!
water -> drink
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.
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:
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 :)
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.
What is the problem you are having?
slippery -> ice
"Summertime Suicide" - Murderdolls
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 :)
Please upvote the helpful posts. Thanks.
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
625!!!
fishing -> rain
Is the problem solved?
:D Me loves KSE :P
Currently,
"Bloodmeat" - Protest The Hero
no no no no nooooooooooooooo...623
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.
Scream...aim...fffffirrrrrreeeeeeeeee!!!!!! (bfmv)