Skip to content

Enum and Struct example#6

Open
Forrest-Flowers wants to merge 2 commits intomasterfrom
week8-1
Open

Enum and Struct example#6
Forrest-Flowers wants to merge 2 commits intomasterfrom
week8-1

Conversation

@Forrest-Flowers
Copy link
Owner

No description provided.

if (e2 == Element.Water)
{
return "Fire is weak against water.";
}
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, for extra bonus points, how would you create an app, where the code is the same to play RockPaperScissors, but i get to choose what the "characters" are (ie, rock/paper/scissors, wate/fire/nature, cockroach/boot/nuclearBomb") etc ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants