Question: In C language The program is to implement the ninja-cowboy-bear game that is similar to the rock-paper-scissors game. The game rules are ninja kicks/beats cowboy,

In C language

The program is to implement the ninja-cowboy-bear game that is similar to the rock-paper-scissors game. The game rules are ninja kicks/beats cowboy, cowboy shoots/beats bear, and bear mauls/beats ninja. Please see link if you want more information. The program prompts the user for a move from player one and a move from player two, and prints out one of the following messages:

Player one wins

Player two wins

The game is a tie

You can assume that the user will always enter exactly one of the following three words: ninja, cowboy, or bear for each players move.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!