# Third-party notices

WoodWhiz Smart Chess is WoodWhiz's own software. The WoodWhiz board, pieces,
3D models, PCB and enclosure are designed in-house by WoodWhiz. This file lists
every third-party component, with the copyright notices and licence texts their
licences require.

## Deployed with the website and shipped with the app

These files are part of the website (`dist/`, built by `npm run build:site`)
and of the local app.

| Component | Version | Files | Licence |
|---|---|---|---|
| three.js (core and the OrbitControls, GLTFLoader and BufferGeometryUtils add-ons) | r160 (0.160.1) | `public/vendor/three-v160.module.js`, `public/vendor/addons/**` | MIT |
| chess.js (includes a PGN parser generated by Peggy 4.2.0) | 1.4.0 | `public/vendor/chess.js` | BSD-2-Clause |

### three.js — MIT License

```
The MIT License

Copyright © 2010-2023 three.js authors

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS 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.
```

### chess.js — BSD 2-Clause License

```
Copyright (c) 2025, Jeff Hlywa (jhlywa@gmail.com)
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above copyright notice,
   this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice,
   this list of conditions and the following disclaimer in the documentation
   and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.
```

The PGN parser inside `chess.js` is generated by Peggy (https://peggyjs.org/,
MIT); Peggy's generated output carries no extra licence terms.

## Coming in Phase C (not yet included)

| Component | Licence | Note |
|---|---|---|
| Stockfish (computer opponent, WebAssembly build) | GPL-3.0 | When it ships, its complete corresponding source code (including any changes) will be offered with the app, with the GPL-3.0 licence text added here. |

## Local app only (not deployed to the website)

Used by the local server (`scripts/`, started by `Start WoodWhiz Smart Chess.bat`)
to find the board on the Wi-Fi. Never copied to `dist/`.

| Component | Version | Licence | Copyright |
|---|---|---|---|
| multicast-dns | 7.2.5 | MIT | Copyright (c) 2015 Mathias Buus |
| dns-packet (dependency of multicast-dns) | 5.6.1 | MIT | Copyright (c) 2016 Mathias Buus |
| thunky (dependency of multicast-dns) | 1.1.0 | MIT | Copyright (c) 2018 Mathias Buus |
| @leichtgewicht/ip-codec (dependency of dns-packet) | 2.0.5 | MIT | Copyright (c) 2021 Martin Heidegger |

Their full MIT licence texts are in each package's `LICENSE` file under
`node_modules/` after `npm install`.

## Development only (not deployed, not shipped)

| Component | Version | Licence | Use |
|---|---|---|---|
| jsdom (and its dependencies) | 30.1.2 | MIT | Runs the start-up smoke tests (`tests/`) |
| three, chess.js (npm packages) | 0.160.1, 1.4.0 | MIT, BSD-2-Clause | The same libraries as `public/vendor/`, resolved by Node for the tests |
