Sir i am with your channel code with harry since 2 months and i learned wordpress and many things from your channel. Sir i request you to make a playlist about flutter android development from basic to advanced in hindi. Sir, i am trying to learn it only from you during lockdown. Please sir🙏
Sir I have completely watched this video tutorial and successfully developed Tic tac toe game , and run on my phone it was really an exciting experience. Further we should add sounds when someone won
Harry bhai maza aaya tutorial follow kar ke. Game bana diya maine. Lots of LOVE from Hyderabad Ideas i added on it are 1. Added "New Game" button so that onClick resetGame function is called. 2. Score maintain kiya hai so that after a game, Score is recorded on the top. 3. Added "Clear Scores" button
I will add a return statement after gameReset() function so that after first tap, the game will reset and in the next one, I could play it again. Loophole: The app will stop if the game ends at draw, we need to check that condition also and reset the game accordingly. Ideas: 1) I will add two Name texts and instead of X and 0 in the status bar, will use their names instead. 2) I will add a text for scoreboard to tell who won how many times, if same players continue to play. 3) I'm not sure about it, but I could change the game by making it playable for 3 persons like changing the size of the grid a little bit. 4) I will create theme options for the colors of grid and 0 & X. 5) I could make that game to be played by single player like vs Computer option kind of a thing.
harry bhai me personally aapke video isliye dekhta hu bcz muje maja aata hai aapke video dekhne me ...or plus sikhne ko to milta hi hai.. and the best part of this video is jab hamari app ban jati hai and aap last me moral dete ho ki dhyan rakhna app ko khele wakt ..it was so funny and cute.. ase videos banate rahe harry bhai :) thx
Condition when the game is draw: put this after the for loop checking the winning condition boolean emptySquare = false; for (int squareState : gameState) { if (squareState == 2) { emptySquare = true; break; } } if (!emptySquare && gameActive) { // Game is a draw gameActive = false; String winnerStr; winnerStr = "No one won"; TextView status = findViewById(R.id.status); status.setText(winnerStr); }
The video was very very helpful ! I made the app and made the app multiscreen and added music to it. It looks very nice. Thank you so much for this video and kudos to you for your hard work😊
@@ankitgoswami2358 Declare a global variable : MediaPlayer media; I added a button showing start Game. Then added the following code in the startGame function, which is called when the button is tapped. media=MediaPlayer.create(this,R.raw.music); media.start();
Thank you so much!! I finally made my first working Tic Tac Toe game. I would also like to appreciate the way you explained, really appreciable. I will surely make some change ( if I could hahahaha) and share the game with you to have a look. In sha Allah!
Thanks CWH for this project. My addition: What will happen if all boxes are filled and no one is the winner in that case we will use this.................................... if(count>=9){ count=0; String winnerStr="No Winner Restarted..."; TextView status=findViewById(R.id.statusbar); status.setText(winnerStr); ResetGame(view); }
Harry Bhai, Thank you for all this tutorials and I wanna ask something, kya aap issi course me Google Firebase k baare m bhi bataenge? I don't have any problem if you do it later but at least please make a few vidoes on how to use Firebase or any Database managment with Android studio to make apps
2 activity ka use kr sakte he...like 1st activity me 2 players ka name le k intent k through 2nd activity me le jake game start kr sakte he or x and o's turn ki jagah player name's turn esa use kr sakte he and player won esa display kr sakte he or game draw wali condition b apply kr sakte he
Draw wala part v add kr skte hai humlog game me Ek aur chij hum log kr skte hai ki game to single player v bna skte hai Which I am surely gonna try Thanks a lot Harry bhai
Harry bhai aapne to app thik thak bana liye Lekin aapne aesa situation ko handle nahin kiya hain jab match draw rahega . Ye app iss cheez pe focus karna chahiye.. Agar ho sake to iss par thoda najar dalna Love u for ur eagerness and lovely videos😁😁😁😁🤗
Thanks for the tutorial. I made my 1st Android gaming app. Can please help me to add Google ad Mob (all 4 types) ? Or any tutorial like this for Ad Mob And thanks again, thanks Harry vai 👍👌☺️
harry bhai game draw hone pe screen lock ho rahi hai usse reset krna pdega..... maine "welcome to tic tac toe" text view ko hi onclick GameReset assign kr diya hai... problem solve.... Harry bhai your are amazing teacher, programmer and coder.... and your teaching skills are fantastic... Love you Harry bhai
Hi Harry Bhai, thank you for this tutorioal & 1 question he "agar koi bhi player won hota he to us ki jo wining line hoti he us per ek line aajni chahiye vo kese kare, please reply me 🙏
bhai ho skta he. hume hr line ke liye ek ek naya imageview dalna padega aur jab koi winning position hota he uske according line ko hum activate kr denge
Superb sir .. Like kar diya Subscribe kab ka kar chuka hu Shere bhi kar diya frinds ke sath. Bookmark bhi kar diya.. And waiting for your next video..😍😍
Harry bhai 😘 yrrr aap awesome ho Hame itna ache se sab kuch sikhane k liye This is the only channel on RUclips which share a best n complete knowledge,😘😘😘
Sir, Es game me ek aur function add kijiy Jab koi bhi winner nahi hota hai toh status bar me tie likha hua aay aur apna game restart ho jaye Mazza aa jayga😎
sir , where we defined in this code that 2 means null similarly 0 means x and 1 means o. you write these statements in comments of the code which has no meaning. please help me
Can anyone help me how the 2-d array winpostion is iterated in java file to check win state has happen or not . Why 2-d array isn't iterate like : For(int i=0 ; i
can u please tell me ..whenever I try to run the tic tac toe project in avd .. UI show not responding .. I am using mac book air ... how to resolve this
Bhai mere hisaab se isme 2 players ke names add karna chahiye jis se agr 1st player jeet jaye to uska name aaye aur 2nd jeete to uska naam aaye game over hone ke baad jaise, For example: Harry won the game Veer won the game And nice video h bhai
Harry Bhai, there is an issue in the game, when a player has won, the game has crash suddenly, I have tried everything please give the solution of that issue...
Harry bhai Thank you so much for this tutorial. Ek suggestion/request hai. Jo bhi winPosition achieve ho jaaye usko STRIKE-THROUGH jaise karke display kaise kiya jaaye? Aur No-win case kaise handle kareiñ?
Status bar ko "header" par hona chaiye. Ek bada sa Red colour ka "Reset button" hona chaiye. Or "Won" hone par ek popup aana chaiye...Hurrah Ya Party time or kuch animated things... -I m a beginer for Java...(m aisa minimum 3mnths m bana sakta hu bcoz abhi mere paas koi bhi equipments nhi hai) - ?ek page ko dusre page se link kaise karate hai esme?...(1st page par 'start' ya 'Play' aaye then click go to the 'Grid' and then play.) Thanks.....
Harry Bahi Ap kay tutorial bht axhay han..Meri Ap say Ek Request hn kay andriod to ap phra rhay hn agar eskay (Object Oriented Programming (OOP) kay uper bhe ap agar Video bna kay Smjha day to kafi Help milay gi andriod ko phrnany me .....
Yeh bhai ke wajha se placement hua hain mera.Now abb android bhi sikhunga bhai se.Thank you bro!
The way u r teaching ,reflects hardwork done by u bhaya..👏👏
Quiz work done.
I'm from Pakistan. I just wanna say, they way you teach is brilliant.
bhai share your journey to motivate us.
@@TechnicalAkshay par master blaster toh sachin tendulkr sir hai. 😂
@Dilip Sahu Baha'i sachin coding nahi carte
Yes bro
Anyone has made this app?i want this app
@@sanjaybora380 you can get it from source code.
Sir i am with your channel code with harry since 2 months and i learned wordpress and many things from your channel. Sir i request you to make a playlist about flutter android development from basic to advanced in hindi. Sir, i am trying to learn it only from you during lockdown. Please sir🙏
Thank you harry bhai. Your osm. Me apke channel k sath 1years s hu or apka teaching style was osm thank you so much harry bhai...
Sir I have completely watched this video tutorial and successfully developed Tic tac toe game , and run on my phone it was really an exciting experience. Further we should add sounds when someone won
i m getting tic tac toe keep stopping when i run this on emaluator
plz help
@@rjsuryavanshi922 same here
@@rjsuryavanshi922 Give me your problem and i solve it
Harry Bhai aap Kamal k programmer ho..aapke videos see programming seekhne ka Maja hi much alag hai.. thank u Bhai.
sir u r my role model; thank very much...........luv u........gbu
bhaiya u r the best...jo gyan deta hai vo sabse bada dil vala hota hai
Wow bro, amazing video u just taught me how to make such a nice app in only 1 hr.❤️
Harry bhai maza aaya tutorial follow kar ke. Game bana diya maine.
Lots of LOVE from Hyderabad
Ideas i added on it are
1. Added "New Game" button so that onClick resetGame function is called.
2. Score maintain kiya hai so that after a game, Score is recorded on the top.
3. Added "Clear Scores" button
Bhai
Draw wali condition kaise karni hai ?
I will add a return statement after gameReset() function so that after first tap, the game will reset and in the next one, I could play it again.
Loophole:
The app will stop if the game ends at draw, we need to check that condition also and reset the game accordingly.
Ideas:
1) I will add two Name texts and instead of X and 0 in the status bar, will use their names instead.
2) I will add a text for scoreboard to tell who won how many times, if same players continue to play.
3) I'm not sure about it, but I could change the game by making it playable for 3 persons like changing the size of the grid a little bit.
4) I will create theme options for the colors of grid and 0 & X.
5) I could make that game to be played by single player like vs Computer option kind of a thing.
Thanks you so much
How to add Draw Condition ??
Code kya h bhai?
Can you share code with me
Yeah u can use minimax algorithm to do v/s computer
harry bhai me personally aapke video isliye dekhta hu bcz muje maja aata hai aapke video dekhne me ...or plus sikhne ko to milta hi hai..
and the best part of this video is jab hamari app ban jati hai and aap last me moral dete ho ki dhyan rakhna app ko khele wakt ..it was so funny and cute..
ase videos banate rahe harry bhai :)
thx
Condition when the game is draw: put this after the for loop checking the winning condition
boolean emptySquare = false;
for (int squareState : gameState) {
if (squareState == 2) {
emptySquare = true;
break;
}
}
if (!emptySquare && gameActive) {
// Game is a draw
gameActive = false;
String winnerStr;
winnerStr = "No one won";
TextView status = findViewById(R.id.status);
status.setText(winnerStr);
}
great dude. You are awesome
thank you so much bro
can you explain a bit
great
thank u very much
THANK YOU TO YOU AND HARRY BHAI BOTH
Thanku harry bhaii... 💟😄For this project... Aaj is project ne bacha liya muje😂
We can improve animation
We improve the back ground
Make the 3d buttons for each
Wow I am so happy...... Chla ab apne dosto ke bich ye app install krwane...
bro plz give me x, o, grid pics?
The video was very very helpful ! I made the app and made the app multiscreen and added music to it. It looks very nice. Thank you so much for this video and kudos to you for your hard work😊
hello can you please tell me how to add music
i am just completd it and want to add some music
@@ankitgoswami2358
Declare a global variable :
MediaPlayer media;
I added a button showing start Game.
Then added the following code in the startGame function, which is called when the button is tapped.
media=MediaPlayer.create(this,R.raw.music);
media.start();
Sir, Me appke saare efferts ke liye thanks bolna chahta hu. 😇aap kitni mehnt se hamare liye video bnate ho. I really thanks a lot. 😅
Hiii
@@mokshpatel3108 hello
Thank you so much!! I finally made my first working Tic Tac Toe game. I would also like to appreciate the way you explained, really appreciable. I will surely make some change ( if I could hahahaha) and share the game with you to have a look. In sha Allah!
Apki ban Gai
what dimension you took for grid,X,0 img.
Draw case????
Thanks CWH for this project. My addition: What will happen if all boxes are filled and no one is the winner in that case we will use this....................................
if(count>=9){
count=0;
String winnerStr="No Winner Restarted...";
TextView status=findViewById(R.id.statusbar);
status.setText(winnerStr);
ResetGame(view);
}
Harry Bhai, Thank you for all this tutorials and I wanna ask something, kya aap issi course me Google Firebase k baare m bhi bataenge?
I don't have any problem if you do it later but at least please make a few vidoes on how to use Firebase or any Database managment with Android studio to make apps
bro, when i tap on the screen to play, it doesn't show neither "O" nor "X". Plz fix my issue
@@sush9889 please all code copy in harry bhai's website
Yes ✔️
2 activity ka use kr sakte he...like 1st activity me 2 players ka name le k intent k through 2nd activity me le jake game start kr sakte he or x and o's turn ki jagah player name's turn esa use kr sakte he and player won esa display kr sakte he or game draw wali condition b apply kr sakte he
If someone wins (o or x) straight line appears btw that.
Draw wala part v add kr skte hai humlog game me
Ek aur chij hum log kr skte hai ki game to single player v bna skte hai
Which I am surely gonna try
Thanks a lot Harry bhai
Yaar aap kitne intelligent ho😍
Not at all.. It was just a compliment!!
Harry bhai aapne to app thik thak bana liye
Lekin aapne aesa situation ko handle nahin kiya hain jab match draw rahega .
Ye app iss cheez pe focus karna chahiye..
Agar ho sake to iss par thoda najar dalna
Love u for ur eagerness and lovely videos😁😁😁😁🤗
mujhe v jehi problem aa rahi bro
kush pta chla kaise krna hai
please reply karna bro
This is my first app, running sucessefully. Thank u Harry.
harry bhai love you me boht silow learner hon but es lockdown me ap ki video se boht sekha hon love you
Thanks for such a great tutorial!!!
Try using SSD in your PC .... Things will become much faster.
Sir aap great ho mee bhi try karunga ki future mee aap jesa banu aur sbki help karu
Love u sir😙
Those who are having problem try to remove the animation code. If it works then write the animation code with your own values
one word to describe harry bhaiya ------> devmanus
we can use AI to make unbeatable tic tac toe also will title it as impossible
and use the random function to generate o and X for making easy game
The combinations are so less that you can make impossible tic tac toe even hard coding.
@@RishiRaj-by5bn yes 2^9
but here's a problem what will be your next move ?
Nah man. Please consider the symmetry of the figure also.
Much Respect Harry bhai🙌🏻
Guys just add Reset button and call "gameReset" method to onclick
for reset issue : put the if(!gameActive){} after if (gameState[tappedImage]==2){} clause.
direct button rakho and game reset (onclick) chalake game reset karo simple janekaa
The way he was wring the code , impossible to understand the beginners .because he seems expert , no time left for viewers to think 😅
Thanks for the tutorial. I made my 1st Android gaming app.
Can please help me to add Google ad Mob (all 4 types) ?
Or any tutorial like this for Ad Mob
And thanks again, thanks Harry vai 👍👌☺️
your teaching style is addiction bro.
Nice video vai love you from nepal❤❤
Niraj bhai Dhangadhi se mera dost h ek muji machikne lado khub sikha h bhai se😂🤣😂😂kasto ch
@@saulgoodman997 😂😂😂 Gali hai vai wo Nepali mey
@@nirajacharya6668 han janta hu isliye to bta rha😂🤣kabhi socha tha dusre desh se apne hi gaali wale words pta chalenge?😂😂😂
@@saulgoodman997 hahaha nahi yar
😂😂
harry bhai game draw hone pe screen lock ho rahi hai usse reset krna pdega..... maine "welcome to tic tac toe" text view ko hi onclick GameReset assign kr diya hai... problem solve....
Harry bhai your are amazing teacher, programmer and coder.... and your teaching skills are fantastic... Love you Harry bhai
Hi Harry Bhai, thank you for this tutorioal & 1 question he "agar koi bhi player won hota he to us ki jo wining line hoti he us per ek line aajni chahiye vo kese kare, please reply me 🙏
bhai ho skta he. hume hr line ke liye ek ek naya imageview dalna padega aur jab koi winning position hota he uske according line ko hum activate kr denge
We need teachers like Harry bhaiyya...bhaiyya love from Assam ❤️
U r best ♥️🔥
Superb sir ..
Like kar diya
Subscribe kab ka kar chuka hu
Shere bhi kar diya frinds ke sath.
Bookmark bhi kar diya..
And waiting for your next video..😍😍
Respect!!
harry bhai share your journey to motivate us.
For reset issue:
if(!gameActivity){
}
else if(gameState[tappedImage] == 2){
}
Yeah, it will work, also we could use return statement after gameReset function for the same purpose.
ye code kaha par add kar sakte he?
Add a new imageview and call the gameReset function onClick
@@SagarSharma-pl5ce
Button button = (Button) findViewById(R.id.button);
button.setOnClickListener(new View.OnClickListener() {
public void onClick(View v) {
gameReset(v);
}
});
Have you know how to handle tie sitution
Harry bhai 😘 yrrr aap awesome ho
Hame itna ache se sab kuch sikhane k liye
This is the only channel on RUclips which share a best n complete knowledge,😘😘😘
Hello sir ji ❤️
Sir,
Es game me ek aur function add kijiy
Jab koi bhi winner nahi hota hai toh status bar me tie likha hua aay aur apna game restart ho jaye
Mazza aa jayga😎
you didnt told about the draw condition.What to do in that case!! please have a look and tell.
Yes , I am not able to solve that
Have you solved it ?
best channel to learn coding....great work sir
Nice video 👌
But agar isame x and o bhi nahi jita to game firase restart honi chahiye ,isake liye Kya codding karani padegi ,plz reply
draw wala maine bnaya h
and reset button bhi dala h
harry bhai ap baht hi accha kam kar rahe ho sir .....
I made a additional 'reset' button which can reset the game
nice n hot XD
how sir please tell me. please watsapp me 7974100884 or please mail me 1vinayshastri@gmail.com
Can you provide the source code for the reset button please
Sir can you send me the code please? +94756049015 WhatsApp
damithkumararoxx55@gmail.com
Thank you
We can not make this game in html ,css and is on android studio?
You explaning style is BEST bro
if player 1wins the one cross line should be appear on the wining position.
Really Glad that i found your channel timely. Done with the app with different colours and patterns.
sir , where we defined in this code that 2 means null similarly 0 means x and 1 means o. you write these statements in comments of the code which has no meaning. please help me
40:04 Harry bhai code ko accha dikhane ke liye CTRL+ALT+L press karo for code reformating
Can anyone help me how the 2-d array winpostion is iterated in java file to check win state has happen or not . Why 2-d array isn't iterate like :
For(int i=0 ; i
Int j=i
Bhai aap to multitallented ho
Aapne java pe tutorial banaya django flask or bhi bahut se cheejo pe
can u please tell me ..whenever I try to run the tic tac toe project in avd .. UI show not responding .. I am using mac book air ... how to resolve this
harry bhai mujhe java to nhi ata but mai apke course ke sath sath kotlin sikhte hue apps develope kr rha hoon
Bhai mera TicTacToe app crash kr rha h baar baar
sudo rm -rf /*
@@Black_Ghost69😂😂
Bhai mere hisaab se isme 2 players ke names add karna chahiye jis se agr 1st player jeet jaye to uska name aaye aur 2nd jeete to uska naam aaye game over hone ke baad jaise,
For example: Harry won the game
Veer won the game
And nice video h bhai
When I opened and try to tap on any image it doesn't work except last two positions..
How to fix this problem..
I like this totorial and following in the first video ... Great sir keep working and uploading this types of contains..
thanks u so much
Minimax algorithm use kiya he kia isme
I love your teaching............................... very much.
Harry Bhai, there is an issue in the game, when a player has won, the game has crash suddenly, I have tried everything please give the solution of that issue...
You should go stackoverflow website with your problem. You will get your solution there
Kammmaaal hi kar diya harry bhai aapne🤘
Harry bhi I am getting on error
"The resource name must start with a letter"
How can I fix this please tell me
jo bhi resources tumne add kiye hain unke name check karo
lovely bro thanx for teaching us for freeee
❤❤❤
I have tried whole the day to solve the quiz. But i wasn't able to do that.
How to stop the game from staring immediatly when game is restarted
put the for loop in else if condition
Got the solution?
@amirmalkani7374 can you please help by elaborating it
Aapka channel sabse best h ❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️😊😊😊😊😊
Bhai mere channel ko ek bar jarur dekhna
Harry bhai Thank you so much for this tutorial. Ek suggestion/request hai. Jo bhi winPosition achieve ho jaaye usko STRIKE-THROUGH jaise karke display kaise kiya jaaye? Aur No-win case kaise handle kareiñ?
My app is crashing when I am running it after creating tap function to get cross or 0
Bro same problem have you got solution till now let me share.
@@PRAVEENPk no , had stopped learning this since my online sem has started and my college acads are messed up
For those who read this in future
Check your tag name,check gamestate
Harry bhai aadhi coding sar ke upar se jaarhi hai 🤯
Bhai support karo mujhe bhi
Harry bhai great teaching method..
I included the case when all cells filled but no one won. "Its a Tie, No more moves possible".
Please reply how you done it. Please i get stuck in this problem
very very nice sir ,you are awesome
Thanks Harry Bhaiya 🥰❤
Dost , U r very easy explained android studio ..... Love u bro .....
Fantastic
thnk u bn gya... and also add reset button
Harry sir ki jay ho
Mne apke sari video dekhi ap bhot acha teach krty han....mujhe just ap ludo game bnana sikha de plzz
Maza aa gaya sir ji 💥💥💥💥💥💥BOOM
great course for android learning
Bahut achha sir really
very very very nice
Status bar ko "header" par hona chaiye. Ek bada sa Red colour ka "Reset button" hona chaiye. Or "Won" hone par ek popup aana chaiye...Hurrah Ya Party time or kuch animated things...
-I m a beginer for Java...(m aisa minimum 3mnths m bana sakta hu bcoz abhi mere paas koi bhi equipments nhi hai)
- ?ek page ko dusre page se link kaise karate hai esme?...(1st page par 'start' ya 'Play' aaye then click go to the 'Grid' and then play.)
Thanks.....
Android studio chale na chale mere pc pe lekin Video dekhne mein maza aata hai bohot
Nice Explanation Harry Bhai!
Harry Bahi Ap kay tutorial bht axhay han..Meri Ap say Ek Request hn kay andriod to ap phra rhay hn agar eskay (Object Oriented Programming (OOP) kay uper bhe ap agar Video bna kay Smjha day to kafi Help milay gi andriod ko phrnany me .....
thank you very much my app is working