Finished the War Card Game? Post Your Screenshot Here!

1 Like

Well done, congratulations on your first badge! :slight_smile:

Keep on going! Hope you had fun. Enjoy your new badge!

All the best, Bob! Thanks for doing this challenge! Enjoy your badge!

Thank you for a highly informative and productive session! Looking forward to incorporating my domain expertise into app building!

1 Like

Yay! Congratulations! I just awarded to you your well-deserved first badge. Keep on going!

1 Like

Hi @Jasim_Altaf

Welcome to the Code Crew community.

In your code you have a warning at the bottom where I have added an arrow in the attached image. The reason is that you are performing a comparison rightScore == leftScore and the result returns either true or false.

I’m pretty sure you intended to use an if statement so what you should have is as follows:

if rightScore == leftScore {
    print("It is a TIE")
}

Thank you so much for your response, I will go ahead and update this code. All your lessons were very helpful and I’m looking forward to continuing and learning more from you. Thank you once again, keep up the good work.

1 Like

Thanks but don’t confuse me with the owner of CodeWithChris. We are two different people. Chris Ching is the owner of CodeWithChris and I am one of the Moderators on this group who just happens to have the same first name.
:+1: