Skip to content

Project for Computational Logic (Semester 2 24/25), creating CLI based Pokemon game with Prolog.

Notifications You must be signed in to change notification settings

m-akma1/if1221-project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

91 Commits
 
 
 
 
 
 

Repository files navigation

Pokémon!

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.

Getting started

Prerequisites

  • UNIX Environment: Linux, MacOs, Linux, etc.
  • GNU Prolog (version 1.4.x recommended)
  • UNIX terminal (bash, etc.)
  • Git for cloning the repository.

Linux Setup

  1. Install GNU Prolog via package manager (if not already installed):
sudo apt update
sudo apt install gprolog
  1. Verify installation:
gprolog --version
  1. Clone this repository. Make sure you have git installed.
git clone https://github.com/GAIB22/praktikum-if1221-logika-komputasional-kawalsampailulus.git
  1. Go to the repository folder, then to the src folder, then open gprolog.
cd src
gprolog
  1. Consult the main file, then start the game.
[main].
startGame.

MacOS Setup

  1. Install GNU Prolog using Homebrew (if not already installed):
brew install gnu-prolog
  1. Verify installation:
gprolog --version
  1. Clone this repository. Make sure you have git installed.
git clone https://github.com/GAIB22/praktikum-if1221-logika-komputasional-kawalsampailulus.git
  1. Go to the repository folder, then to the src folder, then open gprolog.
cd src
gprolog
  1. Consult the main file, then start the game.
[main].
startGame.

Features

  • 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

Authors

kawalsampailulus

Class 01 - Group 4:

About

Project for Computational Logic (Semester 2 24/25), creating CLI based Pokemon game with Prolog.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages