https://github.com/kiwamizamurai/miso-numeron
A Bulls and Cows number guessing game built with Haskell and Miso framework, compiled to WebAssembly
https://github.com/kiwamizamurai/miso-numeron
functional-programming game haskell miso nix wasm webassembly
Last synced: about 1 month ago
JSON representation
A Bulls and Cows number guessing game built with Haskell and Miso framework, compiled to WebAssembly
- Host: GitHub
- URL: https://github.com/kiwamizamurai/miso-numeron
- Owner: kiwamizamurai
- Created: 2025-09-13T01:20:05.000Z (2 months ago)
- Default Branch: main
- Last Pushed: 2025-09-13T01:21:35.000Z (2 months ago)
- Last Synced: 2025-09-13T03:22:13.839Z (2 months ago)
- Topics: functional-programming, game, haskell, miso, nix, wasm, webassembly
- Language: Haskell
- Homepage: https://kiwamizamurai.github.io/miso-numeron/
- Size: 17.6 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Miso Numeron
A number guessing game built with Haskell and Miso, deployed as WebAssembly.
## Game Rules
Guess a 4-digit number (each digit 0-9 is unique):
- **EAT**: Correct digit in correct position
- **BITE**: Correct digit in wrong position
## Prerequisites
- **Nix** (required): https://nixos.org/download.html
## Quick Start
```bash
# Enter WASM development environment
make dev
# Build WASM for deployment
make build
# Test locally
make serve
# Open http://localhost:8080
```
## Development
All development is done through Nix for reproducible builds:
```bash
# Available commands
make help # Show all commands
make build # Build WASM
make serve # Serve locally
make lint # Run hlint
make format # Format code
make clean # Clean artifacts
```
## Deployment
The `docs/` folder contains the WASM build artifacts for GitHub Pages deployment.