GithubHelp home page GithubHelp logo

functionalchess's Introduction

Functional Chess!

chess

This is the repository for a functional chess implementation done in elm for the course Functional Programming. You can download and run it in your browser, or play it at heroku

Project info & resources

Creator: Francisco Depascuali - [email protected]

Bootstrap project

Run the following commands:

git clone [email protected]:FranDepascuali/FunctionalChess.git
cd FunctionalChess/
./run.sh

If any of the previous commands fail please submit an issue

Scripts

make.sh: Compiles chess
run.sh: Compiles & run chess

Screenshots

screen shot 2016-02-13 at 00 48 13

screen shot 2016-02-13 at 00 43 52

screen shot 2016-02-13 at 00 43 37

Report

There is a written report(spanish) of the game on the docs folder

I was heavily inspired by this elm2048 implementation.

functionalchess's People

Contributors

frandepascuali avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

functionalchess's Issues

Can't switch colors

White pieces will always be at the lower side of the screen and black ones at the upper side. Solving this issue involves lots of changes.

Constantly sending events with Tick

Right now, we are constantly sending events for the game to update. This was because of Mayhem's move (AKA computer vs computer). It would be nice to have these events being send only when the game is in Mayhem mode.

Castling isn't allowed

This isn't trivial, as we need to ensure that:

  1. Pieces involved in Castling didn't move (as there are some pieces that can move from and to their initial position). Promoting pawns is easy because they cannot move to a previous position.
  2. None of the tiles involved in Castling are threatened by an opposite color's piece.

Intelligence is just random

The only "intelligence" is that a player cannot move a piece and remain in check. He either loses or defends his king.

As this chess game is done in Elm, there would be performance issues if I decide to implement the intelligence in that language. Probably, the best idea is to have another process running which receives the current board, the player moving and the difficulty level and returns the corresponding move. This involves communicating with that process (that could be running in another computer).

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.