A simple android chess app that follows FIDE standards.

Overview

Chess

A simple android chess app that follows FIDE standards.

I had no idea about this game and I didn't even know the rules. To learn this game, I started coding it, and after a day's research, I made a simple but complete version of this game. The interesting point was that pawn was relatively the most difficult part of implementing the game, because two of the three special moves of the game were related to the pawn, and the pawn's movement and capture were different from the other pieces, so the pawn needed a few more conditions to be able to simulate checkmate.

Roadmap

  • Board
  • Pieces
  • BoardSimulator
  • Check
  • En passant
  • Castling
    • Kingside
    • Queenside
  • Pawn Promotion
  • Checkmate
    • Winner
  • Draw
    • Stalemate
    • Dead Position
    • Threefold Repetition
    • 50-Move Rule
  • Algebraic Notation
  • Double Check

Output

Download APK

Promotion

In chess, promotion is the replacement of a pawn with a new queen, rook, bishop, or knight of the same color. It occurs immediately when the pawn moves to its last rank, with the player choosing the piece of promotion. Read more

En passant

The en passant capture is a move in chess. A pawn may capture en passant a horizontally adjacent enemy pawn that has just advanced two squares in one move. The capturing pawn moves to the square that the advancing pawn passed over, as if the advancing pawn had advanced only one square. Such a capture is permitted only on the turn immediately after the two-square advance; it cannot be done on a later turn. The en passant capture is the only capture in chess where the capturing piece does not replace the captured piece on its square. Read more

Castling

Castling is a move in chess. It consists of moving one’s king two squares toward a rook on the same rank and then moving the rook to the square that the king passed over. Castling is permitted only if neither the king nor the rook has previously moved; the squares between the king and the rook are vacant; and the king does not leave, cross over, or end up on a square attacked by an opposing piece. Castling is the only move in chess in which two pieces are moved at once. Read more

References

License

Copyright 2022 Amir Hossein Aghajari
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

LCoders | AmirHosseinAghajari
Amir Hossein Aghajari • EmailGitHub
You might also like...
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

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

The Privacy Friendly 2048 app is an addictive puzzle game

Privacy Friendly 2048 The Privacy Friendly 2048 app is an addictive puzzle game. The game is considered to be won if you reach the number 2048 by push

 🛥 Stream Draw - a real-time multiplayer drawing & chat game app built entirely with Jetpack Compose
🛥 Stream Draw - a real-time multiplayer drawing & chat game app built entirely with Jetpack Compose

🛥 Stream Draw is a real-time multiplayer drawing & chat game app built entirely with Jetpack Compose. Draw and guess words with your friends! This pr

Android-application used as an introduction to Android development and Android APIs.
Android-application used as an introduction to Android development and Android APIs.

Android-application used as an introduction to Android development and Android APIs. This application is an implementation of the game Thirty and written in Kotlin.

Android OpenGL ES 2.0/3.0 Engine

Build Status Master Branch Status Develop Branch Status News 06/23/2017 Bombshell 1.1.970 has been released. It fixes behavior of Objects of zero size

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

Desktop/Android/HTML5/iOS Java game development framework
Desktop/Android/HTML5/iOS Java game development framework

Cross-platform Game Development Framework libGDX is a cross-platform Java game development framework based on OpenGL (ES) that works on Windows, Linux

Free Android 2D OpenGL Game Engine

AndEngine Donations While developing AndEngine was a lot of fun, it also also consumed many(!) months of my life. It actually continues to cost me a s

Owner
AmirHosseinAghajari
AmirHosseinAghajari
Simple lemonade game app for "gabut" people (maybe)

Project: Lemonade App - Starter Code Starter code for the first independent project for Android Basics in Kotlin Introduction This is the starter code

Imamuzzaki Abu Salam 0 Nov 21, 2021
A simple launcher for Meta Quest VR headsets supporting Android/Official Quest/SideQuest apps and games

Quest PiLauncher This is a simple launcher for Meta Quest VR headsets supporting Android/Official Quest/SideQuest apps and games. Builds, VIdeo Compil

Luboš Vonásek 47 Dec 29, 2022
🔡Simple game from Android Basics course

Unscramble ?? Android Open Source Project Simple game where user unscrambles words and get points! Updates v1.1.0: Добавлена руссфикация! ???? EditTex

null 2 Aug 24, 2022
A simple Snake game implemented using Compose for Desktop

A simple Snake game implemented using Compose for Desktop

Arkadii Ivanov 58 Dec 27, 2022
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

Reza Darvishian 11 Jul 2, 2022
Simple 2D platform game.

FloreProject Simple 2D platform game. Supported platforms OS Support Android ❌ Not playable Windows ✅ Full support Linux ✅ Full support MacOS ✅ Full s

Victor Varenik 4 Jan 7, 2022
A simple game that was developed using Kotlin

TruthOrDare About the App: A simple Android game that reminds you of your childhood . How to use? 1 - Clone or download the Project to your machine. 2

Leandro Santos 1 Jan 15, 2022
Gameforma is a simple game list application where user could explore more than 350.000 games

Gameforma is a simple game list application where user could explore more than 350.000 games data provided from RAWG Video Games Database API. Built with MVVM repositoy pattern, clean architecture in order to finish Dicoding Menjadi Android Developer Expert's (MADE) class submission.

Naufal Aldy Pradana 3 Sep 22, 2022
Android Game App made with kotlin. Allows to play online on the same network!

Reversi - Kotlin/Android Project made for Arquiteturas Móveis at ISEC 2021/2022 Notes Build gradle to run app or install the 'reversi.apk' directly on

André Lopes 1 Feb 5, 2022
TicTacToe Game App For Android

TicTacToe App Android Tic-tac-toe, noughts and crosses, or Xs and Os is a paper-

null 0 Jan 20, 2022