Along the way come to the project Tyler's choice choices game CCG solution Tyler the choices game coding
and bison.
Red yellow orange green blue CCG.
Table of Contents introduction asking which.
Project.
Helpful Note Project helpful steps which we talk about it ends our last two lectures
firstly in bolting needed modules for our project and both random declared computer score and later
score as variable show color choices to user to choose and enter a color value numbers.
The message winning.
Rules of colors choices game as follows close parentheses.
The loss of embed entities escaping character into a number from 1 to 5 and the match computer of choice
2 wins a computer.
Computer score equal zeal computer.
Blair score equal 0 while 2.
Brent red equal 1.
Yellow equal 2 in the second line in the cell.
The line 0 range equal 3.
Ends a false line.
Green equal 4 in the fifth line.
Blue equal 5 ends.
Last line take a turn.
Blair choice.
Equal end embossed user.
Tell the second why loop while players choice more than 5 and Blair A is less than 1 column for their
choice equal and end both enter a valid handbooks if Blair choice equal 1 choice color equal rights
Elif player choice equal 2 choice color equal yellow Elif player choice equal 3 choice color equal orange
Elif player choice equal 4 choice color equal green.
Else choice color.
Equal blue Brent user choice print user color choice is the last choice color value print.
And the second is
print.
Now it's commuter turn to choose a color
computer a choice.
Equal random the random from 1 2 5
held while white commuter is choice.
Equal players choice commuter choice equal were random dot rained in it from 1 to 5.
If commuter choice equal 1 comedy or choice color equal read Elif computer choice.
Equal to Camille.
Choice underscore call equal.
Yellow and the same for the rest of a 5 colors Brent commuter color choice is plus Camille underscore
his choice underscore call value f choice color equity combo underscore and thus court choice underscored
color V'landys score plus 1.
We now welcome the conditions for winning.
Uh choice underscore called equal combo you under a school choice underscore call the layout score plus
1 blend blend score plus string player score to avoid 5 errors brain computer underscored score plus
string can be altered to score to avoid type Error.
Else computer score plus equal 1 friend Blair score plus string player school brain computer score plus
string computer scores.
So we will rent to scores in the two conditions case of the players have one point and also in case
f computer has one point player has one point.
And also computer has one point.
Also we will let Brent do you want to play again.
Yes or no Hansen equal input.
We will take the answer for this question from someplace.
If the answer equal and small or the answer equal pen capital break we will break all the rules and
get outside these loops.
Now we will run our could use our term for example where shoes three
player score zero and computer score is one why Blair the choice is all three is Oren's computer his
choice is five blue which is this match.
Do you want to play again.
Yes or no.
We will dive.
Yes and the game will run again.
We will choose another number.
For example one
so the player lose again.
So that's going to zero and the computer scored two.
Do you want to play again.
No.
So the could stop running and will run.
Zell asked for a block of code after coming out of that.
Why do we.
Brent thanks for playing and the overall results of the game.
If computers score echoed this good print game is tight.
Brent.
Or as I said in the set of the line.
Thanks for playing Elif.
Scored more than Player Score Brent player his victorious Brent player Wentz friend Brent thanks for
play I left commuter scored more than Blair score Brent computer Wentz Brent player is defeated.
Brent thanks for playing.
There is a list of our code.
Computer wins because he has two points and the player scored is is zero points.
Blair is defeated.
Thanks for the link.
Thanks for watching.
Don't forget to add your conclusion to the project.
See you next lecture.