Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/fadi-george/piece-fitting-project
- Owner: fadi-george
- License: mit
- Created: 2016-04-29T02:21:19.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2021-11-06T21:05:24.000Z (about 3 years ago)
- Last Synced: 2023-10-04T16:59:08.862Z (about 1 year ago)
- Language: JavaScript
- Size: 86.9 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```