Giter VIP home page Giter VIP logo

chess's Introduction

chessGPT

a chessbot using OpenAI

chessgpt

I didn't have anyone to play chess with so I made openai play me. Uses embeddings to rank possible moves based on move history. Unlike traditional chess engines that rely on predefined heuristics and complex algorithms, ChessBOT uses a unique method to rank and select moves, making it really bad at chess, but maybe it'll get good?


Features:

Import Chess: Uses 'import chess' as the gamespace.

OpenAI Integration: ChessBOT uses OpenAI API for choosing move.

Sentence Transformers: ChessBOT uses Sentence Transformers to convert the state of the chess board and moves into embeddings, which are then used to calculate cosine similarities.

Cosine Similarity: The cosine similarity between the current state/move and previous states/moves is used to rank the potential moves.

Novel Move Generation: Instead of using traditional heuristics, ChessBOT ranks moves based on their cosine similarity scores and OpenAI evaluation.

Memory: Stores embeddings for future recall as JSON.

r . b q k . . r
p p . p . p . .
B . . . p . p p
. . P . . . . .
Q . . P . . n .
. . . . P . . N
P . . . . P P P
R N B . K . . R
Enter your move:

chess's People

Contributors

everyoneisgross avatar

Watchers

 avatar

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.