Skip to content

SpaceEngineer17/chess_extension

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

chess_extension

A Browser extension for chess.com.

Disclaimer

This entire project done for the purpose of challenge and education. Not for the purpose of cheating.

⚠ USE AT YOUR OWN RISK. YOUR ACCOUNT WILL GET BANNED IF CHEATED ON REAL PLAYERS WHICH VIOLATES CHESS.COM's FAIR PLAY POLICY. ⚠

Usage

Download the Source.

  • git clone URL

Load the Extension in Browser.

Chrome

  • GOTO chrome://extensions (Type in URL bar)
  • SELECT Load Unpacked and OPEN the manifest.json file (chess.com (github)/chrome/manifest.json)

Firefox:

  • GOTO about:debugging (Type in URL bar) and then CLICK This Firefox
  • CLICK Load Temporary Add-On
  • OPEN the manifest.json file

Start the Server and Connect.

  • cd 'chess.com (github)/engine'
  • python server.py

Using the Extension.

  • The Extension loads when you go to chess.com/play/computer
  • Next, you need to Connect to the Server from Extension's Connection Info Element
    • 😈 == Connection is Down...
    • Click on it.
    • 😀 == Connection is connected on the connection channel so that the connector can communicate to the other connecting side.
  • Click Start
  • It will show the next best move for both armies.

Tips:

😈 --> 😀 on First Run. On First Run of Extension, Clicking 😈 won't change to 😀, as connection is failed to establish.
To solve this, visit "https://localhost:9999" once and procede to Advance/Trust the Certificate as this makes your browser trust the self-signed certs and is is necessary to establish as secure websocket connection. Now 😈 onclick --> 😀.

On Chrome, Since we are running on a HTTPS website, we cannot use HTTP for websockets as of this and hence forced to use Secure WebSockets.

But note it can work with HTTP WebSocket in FireFox, all you need to do change one line in server.py to not use tls.

When you are playing in the middle of game and use forward/backward moves, please note it will mess up the game logic as of now. If so,

  1. Go the starting position, (better Stop befor that)
  2. Reset Game Data,
  3. Start,
  4. Now come to the last position and wait for the bestmove.

Credits

About

A Browser extension for chess.com.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors