// developer portal > puzzle algorithm platform
Initialize your puzzle environment and connect to the PPUZZL network.
import { PuzzlEngine } from '@ppuzzl/core';
const engine = new PuzzlEngine({
apiKey: process.env.PPUZZL_KEY,
mode: 'streaming',
difficulty: 'adaptive'
});
await engine.connect();
// Generate a puzzle matrix
const matrix = engine.generate({
type: 'logic-grid',
size: [8, 8],
constraints: 24
});
matrix.solve().then(result => {
return result.steps;
});
Adaptive difficulty engine rewrite. 4x solver throughput.
Stream relay protocol upgraded to WebTransport.
New logic-grid puzzle type with constraint propagation.