Giter Site home page Giter Site logo

hamza3256 / chess Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 541 KB

Implemented a web-based chess program that supports PvP and player vs AI. Used AWS Lambda function wrapper for the stockfish chess engine to find the best move for a given chess position in FEN notation and the requested move depth

Home Page: https://muhammadhamza.dev/projects/chess

HTML 1.75% CSS 6.57% JavaScript 86.93% Shell 4.75%

chess's Introduction

chess

A web-based chess program written in React and React-dnd that supports any combination of player vs AI. Includes support for drag and drop for human players and animation effects for computer players.

See it running at https://muhammadhamza.dev/projects/chess.

Game image

Prereqs:

  • Node.js and gulp on a linux server
  • npm install -g gulp to install gulp if you already have Node.js
  • A web server (like Apache).

Installation steps:

  • git clone <clone url>
  • cd chess/
  • npm install - this will install required packages as specified in package.json
  • Modify movesUrl in app.properties as needed
  • gulp build - this will build all required files to the build/ directory

Test it:

  • Open build/index.html in a browser.
  • For testing purposes, if you don't have a web server, running python -m SimpleHTTPServer in the build/ directory and navigating to http://localhost:8000 should do the trick.
  • You should see several buttons asking what kind of chess game to play.
  • To troubleshoot, look for javascript errors in the browser console.

chess's People

Contributors

hamza3256 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.