Skip to content

Zaphoood/shikaku

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Shikaku

A fun and challenging japanese puzzle game. My implementation was inspired by this website.

Rules

You have to divide the grid into rectangular pieces such that each piece contains exactly one number, and that number is equal the area of the rectangle. (Source)

Setup

Python version 3.10 is required.

Install necessary packages with

python -m pip install -r requirements.txt

Usage

To start the game, run python shikaku.py.

Create new rectangles by clicking and dragging the mouse, delete rectangles simply by clicking them.

Alternatively, use the arrow keys to navigate: Press Space to start creating a rectangle, resize using the arrow keys and press Space again to confirm. To delete a rectangle under the cursor, press D. While resizing, use Ctrl+<Arrow Key> to auto-fill.

Have fun!

Example

This is what a solved game might look like: