Git Product home page Git Product logo

nationale-hypotheekbond-queens-problem's Introduction

QueensProblem: The last solution

Live demo:

https://queensproblem-78c2c.firebaseapp.com/


The challenge is to place several queens on a board without any of them able to hit another.

For this project the back-end will be hosted on heroku; which at the time of writing is not able to calculate the solutions on a 8x8 chessboard using the algorithm currently provided.

The backend is written in PHP and the front-end is written in VueJS. The cool thing about this solution is that it can calculate possible solutions for any pre-set board.

Pre-set boards can be made by clicking on the chess-tiles in the interface.

TheLastSolution

How to run

Setup

First time setup is to install the dependencies:

composer install

In the frontend folder

npm install

Development

For running the backend traverse to the api folder and run this command:

php -S localhost:8000

For running the frontend traverse to the frontend folder and run this command:

npm run serve

Deployment

Since the PHP backend is hosted on heroku, it can be deployed by pushing it to the heroku repository.

git push origin heroku

Front-end is hosted on firebase

firebase deploy

Technical dept

This application was written in a rush, therefore has no quality guarantee. It should be noted that the algorithm for calculating the possible solutions is not optimized and could quite easily be improved by at least a factor 4.

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.