Hey everyone and welcome to this video.
In this video we are going to have a look on the problem and try to build the algorithm for that.
So here if you notice I have the game from last match and up.
Now in this module they're going to work in most practical way.
The Tao actually and how properly the problems are solved.
The past three projects are just to explain you how actually by 10 bucks for building the applications.
Now first we will have a look at the problem.
So if you notice the first thing I notice here is he's asking for the input of playing again or not.
That is input for loop.
We can see and you can also define the same thing in your own words.
Then we have this interface but that interface is not actually a major task.
But you notice there we have this figure that is we can see that both structure
that is also not our typical task the difficult task here is if you notice that we have input in this
board structure that is nine inputs from this to this.
So these places are actually not vacant.
They are some variables.
So we have to define the strategy in a way that it will be an input for nine values so that's the second
thing you notice there.
After that third thing then you try to play the game.
You actually notice that when I add a move there by entering the number it convert that move to that
particular position with the cross marks.
So we can name this one like user we didn't see that user move.
Instead of input then we had as you have noticed the computer move against to us.
That's the thing there.
Rest you will notice when I die there with the computer.
It shows me time again.
How did you get to know that it actually ties and how it get to know that all the positions are filled.
So the issues here is like we can see that free space is any free space
then we have something like inside that Veena it actually decided that to actual events like when I've
been here on this one match then I've been he shows me X on the game X is actually this one.
So it actually can we do that.
Who is the winner at that particular position.
Like on that current move and his his top then he did not work after that particular move.
So there's something like beside oh we can see that those look after the winner.
As this unfolds on Like after dinner he shows that X won't this time.
Good job like this one.
So these are the main things I notice in the scheme.
Maybe you notice more things than I have noticed them.
And then that will also be good and you will get some perfect output.
Then mine so these are the things.
Now how to develop them.
We are going to again write an algorithm here.
That's actually not algorithm just steps algorithms as answers steps.
You can see that there a little systematic idea like algorithms.
So the algorithm for this one will be something like first I need to design the wall.
I believe this is the first dance because before the input we require both there and also you can make
this one like first I have the input then I will design.
There is also something that is similar to this thing like first to design the board or go for input
and vice versa.
So design the.
I have noticed the input first so I'm going to develop the input first day after designing the board.
We have something like men the right the users move and the computer respond to that move.
Then before players move like the computer may move there's a thing that either these spaces are empty
there like it has decided that all these spaces are full.
So we tried again.
So we have something to check like is this board is full or not so is free space defined something like
that one you understand this thing also that is and is free space there.
Then after free space then this get completely full.
How did you decide it decided it.
Who's the winner.
So we have also something like is venal.
Who is the winner.
Like the computer is we know we are the winner.
Something like that.
After that these things done we have the input board input for nine values and the we know we have also
decided.
But here we have noticed this problem in the last bar that actually needs to be defined first.
So after that we have these things like player move
then we have computer move these teams we have to work on after that this computer move will consist
of the A.I. type thing.
Then we require the main logic as usual in every program and this will not be answered by my logic.
The computer will not do everything by itself.
We have to define that one also because the computer will do only the things that we give him instructions
of after that something like these things.
That is.
Please select a position to place from one to 9 something like that we can see that interface and then
also an immediate interface.
Maybe these are the only things that we need to do in this problem and we are going to work on this
one by one.
And if you have different algorithms then go for your own algorithm.
Maybe that will also Vogue and maybe that will begin even tougher than this one because they some bugs
in still still in this program that I'm going to give you as a homework.
So thanks for watching.
We will continue in the next video.