Skip to content

About

Python projects for the Programming Languages course at the University of Gdańsk (Computer Science).

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

22 Commits

Folders and files

Repository files navigation

Python Coursework

Selected projects from the Programming Languages course at the University of Gdańsk. The work covers algorithmic problem solving, object-oriented design, simulation, and automated testing.

Projects

Project What it contains
Project01 Exercism practice; solutions are hosted on Exercism.org rather than in this repository.
Project02 Python exercises: prime numbers, amicable numbers, the Josephus problem, and insertion sort for dates.
Project03 Chessboard puzzle with queen-attack detection, randomized pieces, and a Pygame interface. This is a Git submodule.
Project04 Turn-based grid simulation with plants and animals, movement, combat, reproduction, aging, and a plague event. Includes pytest tests.
Project05 Shop, invoice, and inventory model using dependency injection; tests demonstrate fake, dummy, stub, spy, and mock test doubles.

Run the tests

Install pytest if it is not already available:

python3 -m pip install pytest

Run the simulation tests:

cd Project04
python3 -m pytest -q tests.py

Run the shop tests from the repository root. PYTHONPATH is set because the exercise uses direct module imports:

cd Project05
PYTHONPATH=Invoice:. python3 -m pytest -q Invoice/test_shop.py

Run Project03

Project03's graphical interface requires pygame, pygame_gui, and pygame_widgets:

cd Project03
python3 main.py

The repository does not currently include a dependency manifest.

Clone with the submodule

git clone --recurse-submodules https://github.com/szfkamil/programming-languages.git

If the repository was cloned without its submodule, initialize it with:

git submodule update --init --recursive

About

Python projects for the Programming Languages course at the University of Gdańsk (Computer Science).

Resources

Stars

0 stars

Watchers

0 watching

Forks

Contributors

Languages