Giter Club home page Giter Club logo

php-grandmaster's Introduction

PHP-Grandmaster - chess engine written in PHP

Minimum PHP Version Build Status AWS Lambda

Inspiration from great post: A step-by-step guide to building a simple chess AI

Tutorial

Write your own simple chess AI in PHP

Live demo running on AWS Lambda - serverless PHP

https://arkadiuszkondas.com/php-grandmaster/

Local demo

Run local web server and play :D

php -S localhost:8000 -t public

Performance check

composer benchmark

License

php-grandmaster is released under the MIT Licence. See the bundled LICENSE file for details.

Author

Arkadiusz Kondas (@ArkadiuszKondas)

php-grandmaster's People

Contributors

akondas avatar dependabot[bot] avatar jakubthedeveloper avatar mgrajcarek avatar simoheinonen avatar tiso avatar

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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

php-grandmaster's Issues

Game over message on mate in 1

While playing on https://arkadiuszkondas.com/php-grandmaster/ I got a "game over" message when it was only mate in one.

image

e4 Nf6
e5 Ne4
Nc3 Nxc3
dxc3 f6
exf6 exf6
Bc4 g6
Nf3 c6
O-O b5
Qe2+ Be7
Bd3 Qa5
Bd2 Qa4
b3 Qg4
h3 Qh5
Rae1 Qc5
b4 Qd6
Bf4 Qe6
Nd4 Qxe2
Rxe2 Na6
Rfe1 Nxb4
Rxe7+ Kd8
cxb4 a5
a3 g5
Bd6 axb4
axb4 Ra3
Bf5 h5
R1e3 Ra2
Nb3 Ra3
Na5 Ra1+
Kh2 Ra4
Bg6 Rg8
Re8+ 

its not making a move and gives strange message

*php time, http request latency not included

i ran the deploy.sh and got error

[Tue Mar 15 11:23:13 2022] 127.0.0.1:55626 [500]: POST /api.php - Uncaught Error: Failed opening required '/var/www/html/apps/games/chess/public/../vendor/autoload.php' (include_path='.:/usr/share/php') in /var/www/html/apps/games/chess/public/api.php:17
Stack trace:
#0 {main}
thrown in /var/www/html/apps/games/chess/public/api.php on line 17

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.