Add readme and license.
This commit is contained in:
25
LICENSE
Normal file
25
LICENSE
Normal file
@ -0,0 +1,25 @@
|
||||
GLWT(Good Luck With That) Public License
|
||||
Copyright (c) Everyone, except Author
|
||||
|
||||
Everyone is permitted to copy, distribute, modify, merge, sell, publish,
|
||||
sublicense or whatever they want with this software but at their OWN RISK.
|
||||
|
||||
Preamble
|
||||
|
||||
The author has absolutely no clue what the code in this project does.
|
||||
It might just work or not, there is no third option.
|
||||
|
||||
|
||||
GOOD LUCK WITH THAT PUBLIC LICENSE
|
||||
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION, AND MODIFICATION
|
||||
|
||||
0. You just DO WHATEVER YOU WANT TO as long as you NEVER LEAVE A
|
||||
TRACE TO TRACK THE AUTHOR of the original product to blame for or hold
|
||||
responsible.
|
||||
|
||||
IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
DEALINGS IN THE SOFTWARE.
|
||||
|
||||
Good luck and Godspeed.
|
27
readme.md
Normal file
27
readme.md
Normal file
@ -0,0 +1,27 @@
|
||||
The fantastic game *The Talos Principle* has these two dimensional Tetris like
|
||||
puzzles that I find annoying to solve. This program can solve them for me.
|
||||
|
||||
|
||||
First, specify the field size and puzzle pieces:
|
||||
|
||||
```rust
|
||||
fn main() {
|
||||
let field = Field::new(5, 5);
|
||||
let pieces = vec![
|
||||
// Piece::cleveland_z(), // -_
|
||||
// Piece::rhode_island_z(), // _-
|
||||
// Piece::teewee(),
|
||||
// Piece::hero(),
|
||||
// Piece::orange_ricky(), // ___|
|
||||
// Piece::blue_ricky(), // |___
|
||||
// Piece::smashboy(),
|
||||
];
|
||||
let result = solve(field, pieces);
|
||||
match result {
|
||||
Some(field) => println!("{}", field),
|
||||
None => println!("No solution",)
|
||||
};
|
||||
}
|
||||
```
|
||||
|
||||
Then, get the solution with `cargo run --release`.
|
Reference in New Issue
Block a user