Skip to content

MatthewDorner/mattermost-plugin-chess

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

67 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mattermost-plugin-chess

Chess plugin for Mattermost

screenshot

This plugin allows Mattermost users to have their conversations over a game of chess.

Installation

Use

Challenge a user to a game by clicking on the user's name and selecting "Challenge User to Chess". The challenge will create a new private channel and both users will be invited. The user to play first will be decided at random. Clicking on the "Open Game" link in any of the posts generated by the plugin will bring up the game board. Actions that change the game state will generate a new post in the channel, and the new game state will be embedded in that post. The game board will always display the game state (including history) based on the most recent plugin-generated post in the channel.

AI Opponent

This plugin is purely front-end and doesn't include any AI chess engine, but it is possible to add an AI chessbot to play against using the script developed by @Roy-Orbison: https://github.com/Roy-Orbison/mmpychessbot.

Uses cm-chessboard and chess.js.