Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/fadi-george/piece-fitting-project

Work In Progress
https://github.com/fadi-george/piece-fitting-project

Last synced: about 1 month ago
JSON representation

Work In Progress

Awesome Lists containing this project

README

        

# Piece Fitting Project (Babel and Node)
Given some empty cube, determine best possible arrangement of pieces so they can fit into the cube.

Small project I made for school. Project files utilize ES6 features.
Can be transpiled Google's transpiler traceur.

### Input Format
First line of input file should be the dimension of the empty cube.
Second line should be the number of pieces to fit into the cube.
Next lines have the form:
- Number (to denote a piece)
- Number (how many cubes is the piece comprised of)
- Number Number Number (x,y,z coordinate for the center of each cube)

### Solver
Solver comprises of breadth-first-search where it will stop once all the pieces have been fitted and not overlapping.
Project can be ran as such:

```
traceur ./src/index.js
```
or
```
babel-node ./src/index.js
```