Major Project IF1221 Computational Logic 2024/2025
This project is a text-based turn-based Pokémon-style adventure game built in GNU Prolog. Players explore an 8x8 map, encounter wild Pokémon, engage in battles, and build their party in preparation for a final boss fight. The game demonstrates the power of declarative programming using recursion, list processing, backtracking, and logical rules.
- UNIX Environment: Linux, MacOs, Linux, etc.
- GNU Prolog (version 1.4.x recommended)
- UNIX terminal (bash, etc.)
- Git for cloning the repository.
- Install GNU Prolog via package manager (if not already installed):
sudo apt update
sudo apt install gprolog- Verify installation:
gprolog --version- Clone this repository. Make sure you have git installed.
git clone https://github.com/GAIB22/praktikum-if1221-logika-komputasional-kawalsampailulus.git- Go to the repository folder, then to the
srcfolder, then opengprolog.
cd src
gprolog- Consult the main file, then start the game.
[main].
startGame.- Install GNU Prolog using Homebrew (if not already installed):
brew install gnu-prolog- Verify installation:
gprolog --version- Clone this repository. Make sure you have git installed.
git clone https://github.com/GAIB22/praktikum-if1221-logika-komputasional-kawalsampailulus.git- Go to the repository folder, then to the
srcfolder, then opengprolog.
cd src
gprolog- Consult the main file, then start the game.
[main].
startGame.- Turn-based Pokémon adventure game in Prolog
- 8x8 map generation with hidden wild Pokémon and grass patches
- Randomized starter Pokémon
- Full battle mechanics: attack, defend, skill usage, switching
- Experience, leveling, and evolution system
- Bag management with item drops, inventory slots, and Pokéball logic
- End-game boss fight against Mewtwo
Class 01 - Group 4:
- 13521099 - Muhammad Akmal (@m-akma1)
- 13521011 - Muhammad Iqbal Raihan (@Gixgine-budi)
- 13521049 - Arina Azka (@arinazkk)
- 13521079 - Angelina Andra Alanna (@andraalanna)