1
00:00:00,530 --> 00:00:10,200
Along the way come to the project Tyler's choice choices game CCG solution Tyler the choices game coding

2
00:00:10,220 --> 00:00:11,130
and bison.

3
00:00:11,130 --> 00:00:15,350
Red yellow orange green blue CCG.

4
00:00:15,420 --> 00:00:18,630
Table of Contents introduction asking which.

5
00:00:18,900 --> 00:00:19,500
Project.

6
00:00:19,500 --> 00:00:26,910
Helpful Note Project helpful steps which we talk about it ends our last two lectures

7
00:00:33,470 --> 00:00:41,670
firstly in bolting needed modules for our project and both random declared computer score and later

8
00:00:41,670 --> 00:00:53,330
score as variable show color choices to user to choose and enter a color value numbers.

9
00:00:53,490 --> 00:00:55,620
The message winning.

10
00:00:55,620 --> 00:01:03,560
Rules of colors choices game as follows close parentheses.

11
00:01:03,590 --> 00:01:11,610
The loss of embed entities escaping character into a number from 1 to 5 and the match computer of choice

12
00:01:11,610 --> 00:01:14,600
2 wins a computer.

13
00:01:14,610 --> 00:01:17,670
Computer score equal zeal computer.

14
00:01:17,670 --> 00:01:21,880
Blair score equal 0 while 2.

15
00:01:21,880 --> 00:01:23,650
Brent red equal 1.

16
00:01:23,730 --> 00:01:27,360
Yellow equal 2 in the second line in the cell.

17
00:01:27,360 --> 00:01:29,930
The line 0 range equal 3.

18
00:01:30,060 --> 00:01:31,740
Ends a false line.

19
00:01:31,820 --> 00:01:35,860
Green equal 4 in the fifth line.

20
00:01:36,000 --> 00:01:38,040
Blue equal 5 ends.

21
00:01:38,100 --> 00:01:40,970
Last line take a turn.

22
00:01:41,020 --> 00:01:41,840
Blair choice.

23
00:01:41,850 --> 00:01:45,800
Equal end embossed user.

24
00:01:46,040 --> 00:01:57,030
Tell the second why loop while players choice more than 5 and Blair A is less than 1 column for their

25
00:01:57,030 --> 00:02:07,650
choice equal and end both enter a valid handbooks if Blair choice equal 1 choice color equal rights

26
00:02:07,830 --> 00:02:19,830
Elif player choice equal 2 choice color equal yellow Elif player choice equal 3 choice color equal orange

27
00:02:20,660 --> 00:02:26,240
Elif player choice equal 4 choice color equal green.

28
00:02:26,520 --> 00:02:28,410
Else choice color.

29
00:02:28,440 --> 00:02:42,660
Equal blue Brent user choice print user color choice is the last choice color value print.

30
00:02:43,220 --> 00:02:44,440
And the second is

31
00:02:48,290 --> 00:02:49,140
print.

32
00:02:49,230 --> 00:02:52,770
Now it's commuter turn to choose a color

33
00:02:55,300 --> 00:02:56,490
computer a choice.

34
00:02:56,490 --> 00:03:00,420
Equal random the random from 1 2 5

35
00:03:04,500 --> 00:03:07,960
held while white commuter is choice.

36
00:03:07,960 --> 00:03:16,790
Equal players choice commuter choice equal were random dot rained in it from 1 to 5.

37
00:03:18,080 --> 00:03:26,370
If commuter choice equal 1 comedy or choice color equal read Elif computer choice.

38
00:03:26,380 --> 00:03:28,950
Equal to Camille.

39
00:03:29,260 --> 00:03:33,160
Choice underscore call equal.

40
00:03:33,160 --> 00:03:44,300
Yellow and the same for the rest of a 5 colors Brent commuter color choice is plus Camille underscore

41
00:03:44,300 --> 00:03:54,240
his choice underscore call value f choice color equity combo underscore and thus court choice underscored

42
00:03:54,290 --> 00:03:58,170
color V'landys score plus 1.

43
00:03:58,170 --> 00:04:02,790
We now welcome the conditions for winning.

44
00:04:02,970 --> 00:04:12,440
Uh choice underscore called equal combo you under a school choice underscore call the layout score plus

45
00:04:12,440 --> 00:04:23,060
1 blend blend score plus string player score to avoid 5 errors brain computer underscored score plus

46
00:04:23,180 --> 00:04:29,180
string can be altered to score to avoid type Error.

47
00:04:29,210 --> 00:04:40,880
Else computer score plus equal 1 friend Blair score plus string player school brain computer score plus

48
00:04:40,910 --> 00:04:42,650
string computer scores.

49
00:04:44,480 --> 00:04:54,020
So we will rent to scores in the two conditions case of the players have one point and also in case

50
00:04:54,530 --> 00:04:59,370
f computer has one point player has one point.

51
00:04:59,390 --> 00:05:05,840
And also computer has one point.

52
00:05:05,840 --> 00:05:09,170
Also we will let Brent do you want to play again.

53
00:05:09,980 --> 00:05:14,700
Yes or no Hansen equal input.

54
00:05:14,850 --> 00:05:19,240
We will take the answer for this question from someplace.

55
00:05:19,340 --> 00:05:28,020
If the answer equal and small or the answer equal pen capital break we will break all the rules and

56
00:05:28,140 --> 00:05:30,410
get outside these loops.

57
00:05:30,420 --> 00:05:36,060
Now we will run our could use our term for example where shoes three

58
00:05:41,450 --> 00:05:50,600
player score zero and computer score is one why Blair the choice is all three is Oren's computer his

59
00:05:50,610 --> 00:05:58,350
choice is five blue which is this match.

60
00:05:58,450 --> 00:05:59,860
Do you want to play again.

61
00:06:00,580 --> 00:06:01,530
Yes or no.

62
00:06:01,570 --> 00:06:02,200
We will dive.

63
00:06:02,200 --> 00:06:08,140
Yes and the game will run again.

64
00:06:08,140 --> 00:06:10,670
We will choose another number.

65
00:06:10,990 --> 00:06:11,920
For example one

66
00:06:18,040 --> 00:06:20,350
so the player lose again.

67
00:06:21,220 --> 00:06:25,480
So that's going to zero and the computer scored two.

68
00:06:25,630 --> 00:06:27,010
Do you want to play again.

69
00:06:27,010 --> 00:06:28,200
No.

70
00:06:30,450 --> 00:06:36,930
So the could stop running and will run.

71
00:06:36,960 --> 00:06:41,690
Zell asked for a block of code after coming out of that.

72
00:06:41,730 --> 00:06:42,880
Why do we.

73
00:06:42,950 --> 00:06:48,480
Brent thanks for playing and the overall results of the game.

74
00:06:49,030 --> 00:06:52,730
If computers score echoed this good print game is tight.

75
00:06:54,730 --> 00:06:55,280
Brent.

76
00:06:55,550 --> 00:06:57,230
Or as I said in the set of the line.

77
00:06:57,230 --> 00:06:59,460
Thanks for playing Elif.

78
00:06:59,660 --> 00:07:10,820
Scored more than Player Score Brent player his victorious Brent player Wentz friend Brent thanks for

79
00:07:10,870 --> 00:07:23,560
play I left commuter scored more than Blair score Brent computer Wentz Brent player is defeated.

80
00:07:23,750 --> 00:07:26,060
Brent thanks for playing.

81
00:07:26,080 --> 00:07:27,560
There is a list of our code.

82
00:07:27,560 --> 00:07:35,520
Computer wins because he has two points and the player scored is is zero points.

83
00:07:35,630 --> 00:07:36,890
Blair is defeated.

84
00:07:36,890 --> 00:07:38,680
Thanks for the link.

85
00:07:38,960 --> 00:07:40,250
Thanks for watching.

86
00:07:40,250 --> 00:07:44,060
Don't forget to add your conclusion to the project.

87
00:07:44,060 --> 00:07:45,800
See you next lecture.
