This module allows reading and editing puzzles for the Game Boy game Mario's Picross.
marios_picross_puzzle_editor_gui.py
provides a simple GUI for editing a
Mario's Picross ROM to modify the puzzles. A Windows binary is available
here.
Under the hood, the GUI uses mariospicross.py
.
To parse a ROM for puzzles, use read_puzzles_from_rom
:
with open("path/to/picross.gb", "rb") as romfile:
data = romfile.read()
puzzles = mariospicross.read_puzzles_from_rom(data)
See the docstring on read_puzzles
for the format of the parsed puzzles.
To insert puzzles back into a rom, use insert_puzzles
puzzles = [{...}] # whatever puzzles you've made
with open("path/to/picross.gb", "rb") as romfile:
data = romfile.read()
newdata = mariospicross.insert_puzzles(data, puzzles)
with open("path/to/new_rom.gb", "wb") as romfile:
romfile.write(newdata)
The new ROM should work anywhere the original would.
- Python 2.7+ or 3.2+
- cgrr from https://github.com/sopoforic/cgrr
You can install this with pip install -r requirements.txt
.
This module is available under the GPL v3 or later. See the file COPYING for details.