Ugh... separate the decision logic from the result. Bad code style, dude. There is so much duplication of code in there that my head was spinning. That whole thing could be reduced to about 20 lines.
IA is right. But since you seem to be new at this, we won't be too harsh
Write a single function that checks two pieces and returns a result of who won (or a tie). Then based on that result, you only have a couple of branches to tell the player and the game what happened.
[/quote]
This guy knows what he's talking about. The code that can be pulled into its own function should be clear as day. Since you have it repeated for every if statement. **hint, hint**