Udemy
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
Development
Web Development Data Science Mobile Development Programming Languages Game Development Database Design & Development Software Testing Software Engineering Software Development Tools No-Code Development
Business
Entrepreneurship Communication Management Sales Business Strategy Operations Project Management Business Law Business Analytics & Intelligence Human Resources Industry E-Commerce Media Real Estate Other Business
Finance & Accounting
Accounting & Bookkeeping Compliance Cryptocurrency & Blockchain Economics Finance Finance Cert & Exam Prep Financial Modeling & Analysis Investing & Trading Money Management Tools Taxes Other Finance & Accounting
IT & Software
IT Certifications Network & Security Hardware Operating Systems & Servers Other IT & Software
Office Productivity
Microsoft Apple Google SAP Oracle Other Office Productivity
Personal Development
Personal Transformation Personal Productivity Leadership Career Development Parenting & Relationships Happiness Esoteric Practices Religion & Spirituality Personal Brand Building Creativity Influence Self Esteem & Confidence Stress Management Memory & Study Skills Motivation Other Personal Development
Design
Web Design Graphic Design & Illustration Design Tools User Experience Design Game Design 3D & Animation Fashion Design Architectural Design Interior Design Other Design
Marketing
Digital Marketing Search Engine Optimization Social Media Marketing Branding Marketing Fundamentals Marketing Analytics & Automation Public Relations Paid Advertising Video & Mobile Marketing Content Marketing Growth Hacking Affiliate Marketing Product Marketing Other Marketing
Lifestyle
Arts & Crafts Beauty & Makeup Esoteric Practices Food & Beverage Gaming Home Improvement & Gardening Pet Care & Training Travel Other Lifestyle
Photography & Video
Digital Photography Photography Portrait Photography Photography Tools Commercial Photography Video Design Other Photography & Video
Health & Fitness
Fitness General Health Sports Nutrition & Diet Yoga Mental Health Martial Arts & Self Defense Safety & First Aid Dance Meditation Other Health & Fitness
Music
Instruments Music Production Music Fundamentals Vocal Music Techniques Music Software Other Music
Teaching & Academics
Engineering Humanities Math Science Online Education Social Science Language Learning Teacher Training Test Prep Other Teaching & Academics
Web Development JavaScript React Angular CSS Node.Js PHP HTML5 Vue JS
AWS Certification Microsoft Certification AWS Certified Solutions Architect - Associate AWS Certified Cloud Practitioner CompTIA A+ Amazon AWS Cisco CCNA Microsoft AZ-900 AWS Certified Developer - Associate
Microsoft Power BI SQL Tableau Data Modeling Business Analysis Business Intelligence MySQL Qlik Sense Blockchain
Unity Unreal Engine Game Development Fundamentals C# 3D Game Development C++ Unreal Engine Blueprints 2D Game Development Virtual Reality
Google Flutter Android Development iOS Development React Native Swift Dart (programming language) Mobile App Development Kotlin SwiftUI
Graphic Design Photoshop Adobe Illustrator Drawing Digital Painting Canva InDesign Character Design Procreate Digital Illustration App
Life Coach Training Neuro-Linguistic Programming Personal Development Personal Transformation Life Purpose Mindfulness Meditation Sound Therapy CBT Cognitive Behavioral Therapy
Entrepreneurship Fundamentals Business Fundamentals Freelancing Business Strategy Startup Business Plan Online Business Blogging Home Business
Digital Marketing Social Media Marketing Marketing Strategy Internet Marketing Google Analytics Copywriting Email Marketing YouTube Marketing Podcasting

DevelopmentMobile DevelopmentAndroid Game Development

Tic Tac Toe Game in Kotlin, Android app development Studio

Tic Tac Toe Game in Kotlin, Android app development in Android Studio
Rating: 4.1 out of 54.1 (19 ratings)
1,404 students
Created by Pramila Singh
Last updated 10/2021
English
English [Auto]

What you'll learn

  • Basic Understanding of coding
  • student will be curious to learn because it's an interesting game
  • easy explanations
  • Game development

Requirements

  • student must be curious to learn

Description

The Tic Tac Toe Game is based on a two-player game developed in kotlin.. Each player chooses between X and O. Player play one move at a time simultaneously. In a move, a player can choose any position from a 3×3 grid. The goal here is to get three consecutive X or O in a horizontal, vertical, or diagonal direction. There will be a single activity in this application. This activity will show a 3×3 grid. The status of the game will be displayed at the bottom.

Student can submit it as an assignment.

children's can develop this app , it will grow their interest in coding. 

It will have a grid with 9 boxes or cells. Then it’ll have the Restart button. This button can help the player to restart the game at any time they like. Once the game is over the app will declare who lost the game. If no one wins, it will declare that it was a draw match.

The players are supposed to fill each cell alternatively. The Player one would need to fill the cell with ‘X’and the player will use ‘O’ to fill the cells.


Creating Tic-Tac-Toe in Android Studio

  1. Create a new project by clicking New Projects⇒  fill the required details.

  2. Create Gridview for board in XML

  3. Start Coding in MainActivity.kt

  4. Click listener for all buttons

  5. create 2 players

  6. allow player to play one by one

  7. implement functionality for tie and winning

  8. implement functionality for reset board

  9. show result on top of screen


Student will learn:

  1. start creating new project in android studio

  2. basic structure of android studio

  3. xml layouts

  4. Gradle libraries

  5. if else statements

  6. Toasts

  7. Methods

  8. gridlayout

  9. buttons and button click

  10. textviews

  11. logics for game like winning 'o' , 'x' or Tie game

  12. data types

  13. fonts styles


About IDE:

We are using android studio here. Android Studio is the official integrated development environment (IDE) for Google's Android operating system, built on JetBrains' IntelliJ IDEA software and designed specifically for Android development. It is available for download on Windows, macOS and Linux based operating systems or as a subscription-based service in 2020. It is a replacement for the Eclipse Android Development Tools.


Android Architecture

What is Android Architecture?

Before studying the Architecture, let us go through some of the features of the Android Operating system.

  1. Android OS can be customized as per the need, and hence we can notice many avatars of this OS are deployed in different mobile devices with multiple unique features.

  2. It supports all mobile connectivity technologies viz., Wi-Fi, CDMA, GSM, NFC, Bluetooth etc., and basic functionalities like telephony, SMS and data transfer. With this connectivity, data can be transferred back and forth between devices thru various apps.

  3. It provides Interfaces (APIs) that support location dependent services such as GPS.

  4. SQLite database provides storage functionalities needed by Android. Being a lightweight database, it enables simpler storage and quicker retrieval of data.

  5. It supports all versions of multimedia files (Audio/Video) and integrates a Microphone, Camera, Accelerometer and speaker for effective management of recording, playback operations.

  6. HTML5 and CSS3 are supported for the development of an intuitive and impressive front end screen.

  7. It allows multiple windows to be active at a time, performing different tasks.

  8. Graphics 2D/3D are supported.

  9. Supports NFC technology that enables connectivity between two NFC enabled devices just by touching devices with each other.

  10. Multi-languages support, User-adjustable widgets, Google cloud messaging are the other features.

What are the components of an Android application?

There are some necessary building blocks that an Android application consists of. These loosely coupled components are bound by the application manifest file which contains the description of each component and how they interact. The manifest file also contains the app’s metadata, its hardware configuration, and platform requirements, external libraries, and required permissions. There are the following main components of an android app:

1. Activities

2. Services

3. Content Providers

4. Broadcast Receivers

5. Intents

6. Widgets

7. Notifications


Why kotlin over java :

  1. Null Safety. One of the biggest advantage of Kotlin is that it’s null safe.

  2. Kotlin is more expressive. Kotlin is concise and expressive which means you can write more functionality with much less code.

  3. Kotlin is Functional.

  4. Extension Functions.

  5. Smart Casts.




Who this course is for:

  • beginners
  • game developers

Instructor

Pramila Singh
Senior Android Developer
Pramila Singh
  • 4.0 Instructor Rating
  • 62 Reviews
  • 5,743 Students
  • 6 Courses

I'm developing android mobile apps since 2016 on a daily basis. I hone my skills every day with the help of professional practice in order to make development process faster and qualitative.


Started as an Android developer and then move to work with Flutter and deliver applications to both platforms.


List of my skills that I will use to bring your project to perfection:

Strong knowledge of Dart, Kotlin, Java Core, Flutter, Android SDK

• Java / Kotlin, C / C++;

• Android SDK;

• Android Jetpack (Room, Navigation, WorkManager, Lifecycle);

• Google AppEngine (Google Cloud Endpoints / Servlets);

• Databases: SQL / Room Persistence, Realm;

• Google API's (Maps, Drive, Tasks, Places);

• Firebase Cloud Messaging(Android / Java Server), Database, Remote Config;

• Google Cloud Storage / Database;

• Material Design;

• REST/JSON/XML;

• Retrofit 2, RxJava, Dagger 2, Koin;

• MVVM, MVP;

• OpenCV;

• Gtk3.0 / Vala;

• Git;

• Gradle / Maven.


Also I can help you create technical and business requirements to the Android application if you don't fully understand which features you want.

If you need any further information, please do not hesitate to contact me.


Experince in working with third-party libraries: Retrofit, RxJava, Volley, Dagger2, Butter knife, Gson, GraphView, Retrofit, Picasso, Realm, Social networks integration( Facebook, Twitter, Instagram), Google Maps API, Youtube API

Top companies choose Udemy Business to build in-demand career skills.
NasdaqVolkswagenBoxNetAppEventbrite
  • Udemy Business
  • Teach on Udemy
  • Get the app
  • About us
  • Contact us
  • Careers
  • Blog
  • Help and Support
  • Affiliate
  • Investors
  • Impressum Kontakt
  • Terms
  • Privacy policy
  • Cookie settings
  • Sitemap
  • Accessibility statement
Udemy
© 2022 Udemy, Inc.