Tic Tac Toe is a two-player game in which the objective is to take turns and mark the correct spaces in a 3x3 (or larger) grid

Overview

Tic Tac Toe Game

Kotlin Android Studio

-----------------------------------------------------

📜 Table of Contents

♦️ Description
♦️ Rules
♦️ Game Flow

-----------------------------------------------------

✏️ Description

Tic Tac Toe is a two-player game in which the objective is to take turns and mark the correct spaces in a 3x3 (or larger) grid.

The player always starts the game. After the player's move, the computer randomly selects a place to move from the remaining free cells. There are 9 buttons (3 lengthwise and 3 widthwise), each of them is assigned a number (e.g. button1 from the top left is button1, then button2, button3...button9). When the game starts, after pressing any field, the '' '' sign will appear and the background will change to pink and purple. You will immediately see the computer move ('' ⭕️ '' on an orange background). After the movement of the computer is our movement again.

📌 Rules

👉🏼 The game is played on a 3x3 board
👉🏼 You are (the cross), the computer is ⭕️ (the circle).
👉🏼 Players take turns placing their characters in the empty squares.
👉🏼 The first player to place 3 of his characters in a row (up, down, across or diagonally) is the winner.
👉🏼 The players take turns placing their signs in the empty squares.
👉🏼 When all 9 squares are filled, the game is over. If no player has 3 characters in a row, the game ends in a draw.


🎲 Game Flow

1️⃣ . The board before the game starts

The board before the game starts

2️⃣ . The player always makes the move first

In this case player puts a cross in the middle of the board, and the computer automatically after him puts a circle in a random place (from the remaining free spaces), in this case in the middle of the the bottom row.

The board after you make the first move

3️⃣ . In case the computer wins the Winner dialog box is displayed, dialog box, which informs us that the computer won the game. After pressing the OK button, the application will close.

The board before the game starts

4️⃣ . If the player wins, the Winner dialog box is displayed, which informs us that we have won the game. After pressing the OK button, the application will close.

The board before the game starts

You might also like...
Game made with Korge (Kotlin Multiplatform game engine)

MolesAttack Kotlin Multiplatform Game Play Html/js: https://feliperce.github.io/MolesAttack-Distribution/ Jar: https://feliperce.github.io/MolesAttack

Our maze game is an 2d-animation game developed using android studio.
Our maze game is an 2d-animation game developed using android studio.

Our maze game is an 2d-animation game developed using android studio. The game consists of a ball and a board with a hole in the center of it. We are using accelerometer as controller to guide ball towards the hole. T

simple game implements with kotlin and jetpack.(covered by unit test)
simple game implements with kotlin and jetpack.(covered by unit test)

Simple Spy Game: Source Code 🚨 Published version 🚨 This repository contains a detailed game app that implements simple game using Koin, Room, Corout

Spooky house game with monsters and sounds
Spooky house game with monsters and sounds

SHGWMAS Spooky house game with monsters and sounds INSTRUCTIONS to play the game you must: have a brain downloaded the world + jar from the releases t

Terminal Game. Black and White have only pawns. White wins if their pawn moved to 8th line. Black wins if their pawn moves to 1st line. If black or white haven't any move, then no one wins(stalemate))

Only-Pawns-Chess Terminal game for 2 players Regular chess but all sides have only pawns Rules This game extend all the rules of regular chess but it

Butterfly - Small and powerful weapons, own it, let your Android are developed like Tiger, Carry whole game!

Butterfly - Small and powerful weapons, own it, let your Android are developed like Tiger, Carry whole game!

 A Ktor-based server that handles game process, user registration and packs provision
A Ktor-based server that handles game process, user registration and packs provision

Polyhoot! Server backend A Ktor-based server that handles game process, user registration and packs provision Deploying server locally You can deploy

Multiplayer Dots and Boxes game for Android

Multiplayer Dots and Boxes game for Android. One player is the server, and the rest connect to them. Has player customization and in-game chat! Still in development, but fully compatible with version 2.0 of my NetDot protocol.

An easy open source Android Native Game FrameWork.
An easy open source Android Native Game FrameWork.

JustWeEngine - Android Game FrameWork An easy open source Android Native Game FrameWork. Engine Flow Chart How To Use? Import Engine's module as Libra

Owner
Sylwia
IT Support Specialist who works full-time during the week and studies at weekends.
Sylwia
TicTacToe - An android Tic-tac-toe, also known as noughts and crosses

Tic Tac Toe An android Tic-tac-toe, also known as noughts and crosses, or Xs and

null 2 Feb 28, 2022
A tic-tac-toe application for foss-weekend.

TIC - TAC - TOE How to Setup? Fork the repository to your GitHub account. Clone the forked repository to your local machine. Add upstream to the clone

Ayush Kumar 6 Mar 14, 2022
Tapping-Game - Following the random instruction one has to tap the correct ball or balloon with correct text on it

Tapping-Game A simple game where a player has to follow the random instruction a

Manish 1 Jan 18, 2022
Cities is a popular game in which each player takes turns naming a city in any country, starting with a letter that ends with the name of the previous city.

Game Cities Example Download Download the latest version of the Android app from this link. Building Using Android Studio Clone the repo, open it in A

Dmitry Savin 1 Mar 13, 2022
Wordle-solver - This application supports in finding the correct answer to the daily word puzzle game Wordle

Wordle-solver - This application supports in finding the correct answer to the daily word puzzle game Wordle

Jiri Bakker 1 Jan 19, 2022
This is an application that is about an X / O game. You can enter the names of the game, and there is also a screen for those who win and there is a button to continue playing and the game determines the result of each player

Game-X-O This is an application that is about an X / O game. You can enter the names of the game, and there is also a screen for those who win and the

Mohamed Rafat 2 Aug 20, 2022
**Bigger Number Game ** propose the user to select largest number between the two numbers.

**Bigger Number Game ** propose the user to select largest number between the two numbers.

Shivangee Rajput 0 May 24, 2022
A single player game app that displays scrambled words

Unscramble App Starter code for Android Basics codelab - Store the data in a ViewModel Unscramble is a single player game app that displays scrambled

null 0 Nov 11, 2021
Single player game app that displays scrambled words

Unscramble App Single player game app that displays scrambled words. To play the game, player has to make a word using all the letters in the displaye

João Victor Mendes da Silva 1 Nov 23, 2021
Minesweeper is a single-player puzzle video game

Minesweeper Minesweeper is a single-player puzzle video game. The objective of the game is to clear a rectangular board

ADITYA RAJ 1 Jun 26, 2022