In the last blog, we saw about the basic and common
logic which is used in both one user and two user modes. In this blog, we will
see the logic used for both the modes with the help of flowchart.
In one user mode, user will always get ‘X’ for playing
the game and computer will always get ’O’ symbol, this can be swapped as well.
When user plays ‘X’, computer will make the nearest empty button zero. It is
the main logic behind one user mode.
In two users mode, let us assume that user one will
use ‘X’ and by default, second user will use ‘O’. If it is win condition then
Winner will be displayed in those three winning boxes and it will appear in the
above text box as well. When any button is clicked, the win condition is
checked. Once, a user puts either a ‘X’ or ‘O’, that button should be locked.
The flow will become more clear in the flowchart given below.
So this was all about the number of users and how
we managed it in our game.
In the next blog we will share a part of the source
code and what kind of output we get in particular stages. Until then, HAPPY
CODING!
Creatively informative...Great !!
ReplyDeleteThanks!!
DeleteNice read. Good work guys! It would be fun to play this online.
ReplyDeleteYes!Absolutely!!
DeleteInformative and nice presentation of content.
ReplyDeleteThanks a lot!
DeleteGreat creation guys !
ReplyDeleteThank you!
DeleteThose flowcharts help a lot...very well done !!! Great work !!
ReplyDeleteThanks!Keep motivating us!
DeleteVery well presented !
ReplyDeleteespecially those flowcharts help us understand the content quickly.
Thanks a lot!!Keep supporting us!!
DeleteHighly logical...good luck !
ReplyDeleteThanks a lot!Wait for some more interesting stuff!
DeleteFun to read. Logical. Keep doing it✨
ReplyDeleteWell written, logical, informative.!
ReplyDeleteThanks a lot!Keep supporting us.
DeleteWell written. Great.
ReplyDeleteThanks a lot!
DeleteVery informative!! Good work! !
ReplyDeleteNice content!!!
ReplyDeleteThank you!!Keep supporting us
DeleteWell done guys!!!Very good attempt for one user and two user modes!!
ReplyDeleteThanks a lot!!Please keep supporting us!!
DeleteWell portrayed!
ReplyDeletenice info
ReplyDeleteThank you so much!!Keep motivating us!!
DeleteVery nice
ReplyDeleteThanks!!
DeleteGood information
ReplyDeleteShort & informative read ! Nicely put with flowcharts 👍
ReplyDeleteThank you so much!!
DeleteVery well presented👍flow charts are very helpful for conceptual understanding. Keep doing it.
ReplyDeleteNice work with flowcharts...They are really helpful
ReplyDelete