A Rust + React/TypeScript project to find solutions for the game GAGNE TON PAPA! ("Win Your Daddy").
This project implements a solver for the puzzle game where players must fit wooden pieces of different shapes (pentaminos) into a specific rectangular area.
- Core Logic: Efficient solver written in Rust.
- Web Interface: Interactive web application built with React and TypeScript.
- WASM Integration: Runs the Rust solver directly in the browser using WebAssembly.
- CLI Tool: Terminal-based application for testing and running the solver locally.
-
Clone the repository:
git clone https://github.com/manuroe/gagne-ton-papa.git cd gagne-ton-papa -
Run the CLI app:
cargo run
-
Run the Web App: First, build the WASM library:
cd lib-wasm wasm-pack build --target webThen, start the web server:
cd ../web npm install npm start
The repository is organized into the following components:
- lib: The core Rust library containing the game logic and solver algorithms.
- src: A CLI application to interact with the library from the terminal.
- lib-wasm: WASM bindings for the core library, enabling usage in web applications.
- web: The web frontend application built with React and TypeScript.
Check out the live web application here: https://manuroe.github.io/gagne-ton-papa/