dokublocks

BlockLogic - Blockudoku Game

A browser-based puzzle game combining Sudoku grids with Tetris-style block placement mechanics. Players strategically place polyomino shapes on a 9x9 grid to clear rows, columns, and 3x3 subgrids.

Play Offline Demo

BlockLogic Game

Features

How to Play

  1. Drag and Drop - Select a piece from the hand (bottom of screen) and drag it to the grid
  2. Place Strategically - Position pieces to fill rows, columns, or 3x3 squares
  3. Clear Lines - Complete lines disappear, earning you points
  4. Plan Ahead - Game ends when no valid moves remain for any piece in your hand

Installation

# Clone the repository
git clone https://github.com/theredone89/dokublocks.git
cd dokublocks

# Install dependencies
npm install

# Start Nuxt in development mode
npm run dev

The game will be available at http://localhost:3005

Development

# Run in development mode
npm run dev

# Build for production
npm run build

# Preview production build
npm start

# Run Neon DB migration (if using Neon)
npm run migrate

If you are using Neon, set one of these environment variables:

NETLIFY_DATABASE_URL=...
# or
DATABASE_URL=...

Technology Stack

Frontend

Backend

Game Mechanics

API Endpoints

Project Structure

dokublocks/
├── pages/            # Nuxt pages
│   └── index.vue
├── server/           # Nitro API and server utilities
│   ├── api/
│   │   ├── leaderboard.get.ts
│   │   └── score.post.ts
│   ├── database/
│   │   └── migrations/
│   └── utils/
├── public/           # Static assets and game scripts used by Nuxt page
│   ├── css/
│   │   └── styles.css
│   ├── js/
│   │   ├── Grid.js
│   │   ├── Pieces.js
│   │   ├── ScoreManager.js
│   │   ├── Renderer.js
│   │   ├── InputHandler.js
│   │   └── Game.js
├── scripts/
│   └── migrate.mjs
├── nuxt.config.ts
├── db/               # Data storage
│   └── scores.json
└── tasks/            # Development tasks and specs

Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Submit a pull request

License

ISC License - See LICENSE file for details

Credits

Developed as a web implementation of the popular Blockudoku puzzle game concept.

Live Demo

🎮 Server is running! Open http://localhost:3005 in your browser to play!


Enjoy the game! 🎲