Synthesized-Infinity / Whatsapp-Botto-Void

A fully Object Oriented WhatsApp bot built with TypeScript
GNU Affero General Public License v3.0
71 stars 80 forks source link

Command Game Request `chess` #19

Closed PrajjwalDatir closed 3 years ago

PrajjwalDatir commented 3 years ago

Chess Game Using WA Messages. Players will send Chess Notations like e4, e5, Nf3, Qxf5, ... And Bot will reply with Current board image with relevant caption if necessary.

My Approach :

Refer this for Chess notations

Example Chat =>

player1 : &chess @player2

bot :

image Game has began between @player1(white) & @player2(black)

player1 : &chess e4

bot :

image @player1 played e4. Now it's @player2's turn.

player2 : &chess e5

bot:

image @player2 played e5. Now it's @player1's turn.

player1 : &chess Bc4

bot :

image @player1 played Bc4. Now it's @player2's turn.

player2 : &chess Nc6

bot :

image @player2 played Nc6 Now it's @player1's turn.

player1 : &chess Qf3

bot :

image @player1 played Qf3. Now it's @player2's turn.

player2 : &chess Nd4

bot :

image @player2 played Nd4. Now it's @player1's turn.

player1 : &chess Qxf7+

bot :

image @player1 played replaced f7 pawn with Queen and has threatened the opponent king. It's a checkmate!!! @player1 has won 🥳 🔥


Drop a comment if you have any doubts or need any clarification on my idea.

Further ideas :

AlenVelocity commented 3 years ago

@shubham8550

SomnathDas commented 3 years ago

Theoretically easy peasy

PrajjwalDatir commented 3 years ago

@SomnathDas Enjoy the journey 🚀

AlenVelocity commented 3 years ago

Updates here https://github.com/AlenSaito1/chess-node