Git Product home page Git Product logo

liquid's Introduction

This repo contains source code for (Li)chess search engine bot's Discord chess engine, and (Li)quid chess engine both are part of the Lise bot code family.

Liquid Search Engine [LISE]

Liquid chess engine tries to replicate human play, self-adjusting according to the opponent's Lichess blitz rating, named Liquid as it adapts to the opponent's rating play meaning plays strong against stronger players, weak against beginner players.

Liquid comes in 4 modes

  • Beast [2400+]
  • Strong [1900 - 2400]
  • Novice [1400 - 1900]
  • Beginner [0 - 1400]

Liquid's helpers

Liquid uses Stockfish's best move to come up with the right one, but according to its mode, it can self-adjust to using Stockfish or its logic.

  • Stockfish [running at various depths for various modes] (The Stockfish developers (see AUTHORS file). Stockfish [Computer software]. https://github.com/official-stockfish/Stockfish)
  • Negamax algorithm
  • frequency-based blunder logic that plays a stockfish or the best move according to eval function and uses random frequency technique to "throw" like a human and mess up but at same time play the best move

Liquid's Eval

  • the amount of pieces both sides have
  • both kings are attacked
  • board space and center space
  • look at captures
  • look at which pieces are where

UCI Protocol

Liquid uses UCI protocol it supports following commands:


LISE UCI COMMANDS: 

-------------------------------------------------------
isready (check if engine is ready)
level (Change level)
position <FEN_STRING> (get Lise's best move in given FEN)
eval <FEN_STRING> (get Lise's eval in given FEN)
uci (view Lise UCI commands)
quit (Quit the engine)


Running Liquid locally and use it via UCI

git clone LiseChessEngine

cd LiseChessEngine/src/main/java/engine/UCIStarter

java -jar LISEBOT.jar 


Lise Chess Engine

Lise is an effortless engine that runs at low depths and performs a chess engine role in Discord, it's part of the Lichess search engine bot's repo code

Lise mode

  • Beginner

Lise's helper

simple negamax method to search for moves at lower depths

Challenge (Li)quid search engine Lise

Please only challenge white side casual/rated

Play Lise Here

Authors

@jalpp

liquid's People

Contributors

jalpp avatar

Stargazers

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

Watchers

 avatar

liquid's Issues

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.