In this video series we will create an offline 2 player Tic Tac Toe game. We will code the whole game logic, count player points, add a reset functionality and handle orientation changes, so we don’t lose our game state when we rotate the device.
In part 1 we will create the layout by creating 9 buttons within nested LinearLayouts and we will even them out over the screen by adding the layout_weight attribute. Our player points and reset button will be in a RelativeLayout.
Watch the whole playlist:
Source code:
____________________
❗ Subscribe to the channel:
⏯ Watch more tutorials:
㊙ Help translating the videos:
💚 Support the content:
💬 Join the Discord chat:
🎧 Audiobooks and podcasts for programmers:
👶 How to get started with Android development:
📣 Follow Coding in Flow on social media:
Facebook:
Instagram:
Twitter:
Blog:
Nguồn: https://bus-rush.info/
Xem thêm bài viết khác: https://bus-rush.info/game/
i have made the game and even done some changes in the ui
but i want to know can u add the online feature to the game??
pls do you have the source code for computer moves?
Anyone having problems manually making the constraint layout to a linear layout, just use the design view and right-click the ConstraintLayout, click 'convert view', and select Linear Layout. Not sure why but manually editing it was impossible for me lol
unfortunately tic-tac-toe game has stopped (sir what issue is this) anyone can help me.
Thank you Coding In Flow.
I just created and modified the app with google ads. If someone need source code of this app with google ads then message me. I also changed some designs. Check it from apk link:-
https://drive.google.com/file/d/1Wltukul9X4NSCOqeE26pBTED5G7aLqaB/view?usp=drivesdk
Zooming the video
Is this plugin in android studio or
Just for video editing
??
If this is a plugin then please let me know
Which plugin is that?
can you make tutorial player vs computer,plz??
How about Board games like chess? It is Advisable to use buttons as tiles of it? If not, what will you suggest?
I can't drag button just simple like that. I have to use those circle icons, but it moves a button only in horizontal orientation.
you're a god, tysm
give me link of full playlist of android course
thankx
after seeing this video subscribed it
hello I watch you in Uzbekistan
Which language u are using ?
Hi Coding in Flow, I love your tutorials. I was just wondering why the last move X or O is not displayed on the button? I tried to delay the check winner logic with Thread.sleep but even with one second delay the last move is not displayed on the button. Any idea why that happens?
your video in show tools:context="com.codinginflow.tictactoe.MainActivity"
but my new letest version of android studio show only tools:context="MainActivity" i tyr many times but cannot fix problem
Using canvas is a better approach, canvas can make not only tic tac toe, but also 1-n in a row.
Saw you comment on someone else's video who stole your code lol
How to save our self from copyright the app. if it is created from other app from play store
amazing <3
Bro can you send me this project final report. I have to submit. royanjos279@gmail.com this is my gmail id.
would be very helpful with english subtitles.
which code is used for this video,java or kotlin??
Thank you so much for this tuts. Is there a way where you could add a player vs. computer? Do you have the code with this? Thank you 🙂
Can u do tutorial about libGdx?
Pls give apk file
Excellent tutorial but is it possible to make this game a two online player game
is using designer instead of editing raw xml worse?
Thanks alooooooooooooooooooooooooooooooooooooot
subscriped
خیلی ممنونم عالی بود
i can t move the button..
reset
So i have that little issue, I can't drag buttons.. code is exactly like yours, i tried to look for something on the internet but found nothing except for things that didn't help, can you please land me a hand..? Great video, tho 🙂
Are anyone tried,its working..??