Skip to content

bluebbberry/Law-Maker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Law Maker

First-order-logic-based Zacktronic-like point'n' click game. Here is a short demo.

Requirements

  • Python 3.8+
  • SWI-Prolog 8.0+ (with Janus support)
  • Tkinter (usually included with Python)

Installation

1. Install SWI-Prolog

macOS:

brew install swi-prolog

Ubuntu/Debian:

See here.

Windows:

2. Install Python Dependencies

Create a python virtual environment, source it, then:

pip install janus-swi pillow

Note: janus-swi requires SWI-Prolog to be installed first.

Running the Game

python main.py

Troubleshooting

"janus_swi not available"

  • Ensure SWI-Prolog is installed first
  • Try: pip install --upgrade janus-swi
  • Verify SWI-Prolog: swipl --version

"No levels could be loaded"

  • The game creates sample levels automatically on first run
  • Check that levels/ directory exists

Tkinter missing

# Ubuntu/Debian
sudo apt-get install python3-tk

# macOS (usually pre-installed)
# Reinstall Python from python.org if needed

Creating Custom Levels

Add JSON files to the levels/ directory. See levels/01_student_meal_subsidy.json for the format.

License

MIT License, created by Jan Bingemann

About

Zack-like game centered around logic programming.

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages