An open API service indexing awesome lists of open source software.

https://github.com/jamessizeland/tauri-chess

Experiment with tauri passing data from rust to javascript - building a chess app
https://github.com/jamessizeland/tauri-chess

chess react rust tauri tauri-app typescript

Last synced: 5 months ago
JSON representation

Experiment with tauri passing data from rust to javascript - building a chess app

Awesome Lists containing this project

README

          

# Tauri Chess App

[![publish android](https://github.com/jamessizeland/tauri-chess/actions/workflows/build-android.yml/badge.svg)](https://github.com/jamessizeland/tauri-chess/actions/workflows/build-android.yml)
[![publish desktop](https://github.com/jamessizeland/tauri-chess/actions/workflows/build.yml/badge.svg)](https://github.com/jamessizeland/tauri-chess/actions/workflows/build.yml)
![MIT/Apache-2.0 licensed](https://img.shields.io/badge/license-MIT%2FApache--2.0-blue?labelColor=1C2C2E&style=flat-square)

Experiment with tauri passing data from rust to javascript, by creating a chess app where all of the logic is done in Rust and just the frontend is done in TypeScript React.

## Getting Started

Check prerequisites:

-
-

1. `git clone https://github.com/jamessizeland/tauri-chess.git`
2. `cd tauri-chess`
3. `bun install`
4. `bun run tauri dev`

## UI Basics

![Chess UI](./img/move_logic2.gif)

## Moves

![Chess Moves](./img/take_logic.gif)

## Turns

![Chess Turns](./img/turns_logic.gif)

## Checking

![Check and Mate](./img/check_mate_logic.gif)

## Special Moves

### Enpassant, Promoting & Castling

![Enpassand Promoting and Castling](./img/enpassant-promote-castle.gif)

---

## Mobile Support

Set up to run on Android too.

`bun run tauri android dev`

![android](./img/tauri-chess-android.gif)