Giter Site home page Giter Site logo

mhonert / chess Goto Github PK

View Code? Open in Web Editor NEW
91.0 4.0 12.0 9.48 MB

:sushi: Wasabi Chess Engine - written in AssemblyScript

Home Page: https://mhonert.github.io/chess

License: GNU General Public License v3.0

HTML 0.33% JavaScript 4.92% CSS 0.06% TypeScript 91.13% Python 3.55% Shell 0.01% Batchfile 0.01%
react chess chess-engine styled-components react-dnd web-workers assemblyscript wasm javascript

chess's Introduction

๐Ÿฃ Wasabi Chess Engine

Release Test Website mhonert.github.io./chess License: GPL v3

Screenshot

Wasabi Chess is a web-based chess engine, written in AssemblyScript that runs directly in the Browser.

Play here!

The React web application embeds the engine using Web Workers to compute the AI moves in the background without blocking the main thread for the UI.

Features

  • Chess engine implemented in AssemblyScript
  • Computer opponent with 6 difficulty levels
  • Opening Database for varied gameplay
  • Move history to undo player moves
  • Drag'n'Drop support to move chess pieces
  • Touch support for mobile devices

Built With

License

This project is licensed under the GNU General Public License - see the LICENSE for details.

Attributions

  • Images for the chess pieces come from Wikimedia Commons
  • The opening book was generated from a selection of chess games from the FICS Games Database
  • A set of 725000 test positions collected by the author of Zurichess was used to tune all evaluation parameters

chess's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

chess's Issues

Win7 problem + fix

Hi Martin,

Today I found your Wasabi engine announced in the public CCRL forum and as I am the maintainer
of the XB/UCI chronology I wanted to check it before adding it to the chronology.
https://rwbc-chess.de/
https://docs.google.com/spreadsheets/d/1GXoy3lGhdKPJbatdw2_2dhWT3TkpthPcNtHs51MQydM/edit#gid=175552346

Wasm gives me an error on my old Win7-64 machine.
The procedure entry point GetSystemTimePreciseAsFileTime could not be located in the dynamic link library KERNEL32.dll.
Some googling led to attempting me to install a certain KB file from MS, but it couldn't be installed here. (KB2533623)

Another try was successful though and I just replaced Wasm with Wasmer and linked against it.
https://github.com/wasmerio/wasmer/releases
May be this helps people with the same problem. (still a lot Win7 users in the computerchess scene)

0.000: - Starting server: C:\Program Files (x86)\Wasmer\bin\wasmer.exe run C:\Engines\UCI\Wasabi_121-64\engine.wasm
0.046: - Priority class set to normal
0.046: - Thread priority set to normal
2.074: < Wasabi 1.2.1 by mhonert
3.775: > uci
3.775: < id name Wasabi 1.2.1
3.775: < id author mhonert
3.775: < option name Hash type spin default 32 min 1 max 768
3.775: < option name OwnBook type check default false
3.775: < option name UCI_EngineAbout type string default Wasabi Chess Engine (https://github.com/mhonert/chess)
3.775: < uciok

Do you have an idea of the speed difference with Wasmer vs. Wasm?

Guenther (RWBC)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.