Background Image - just some doodles! <- BACK

Adapted Chess Discord Bot

A Discord bot designed to parse (and play) a simplified version of chess.

'The Bean's Gambit' is a game which has similar mechanics to chess, played on a 4x4 board with each player having four beans and two cows.

I wrote a program that could parse a representation of a game board, and a full sequence of moves and determine based on the rules whether this was a valid board state/set of moves.

I really enjoyed this project, and am returning to functional programming for my third year project (see here). However, using the discord-haskell package to communicate with the discord API was very challenging! Consolidating my knowlege of IO in Haskell alongside this took some getting used to, as it is very different to something like Python or Java!

In the future, I would like to extend this project to work with a full version of chess. This will be much more of a challenge, defining types for all of the pieces and working with a much larger board.