Project 1: CIFRA Code25

Cifra is a 2 player board game that has the objective of moving more pieces to the opposite side goal. Cifra Code25 is a version of CIFRA that has a 5x5 board size.

Game Description and Rules

Group Members

António Augusto (up202000705@edu.fe.up.pt)
Gabriel Machado Jr. (up202008860@edu.fe.up.pt)
Miguel Curval (up201105191@edu.fe.up.pt)

Prerequisites

  • Python (version >=3.9)
  • Pygame library (version >=2.3)
  • NumPy library (version >=1.24)
  • time library (standard library in Python)
  • math library (standard library in Python)
  • random library (standard library in Python)

You can install pygame, numpy using pip, the Python package manager, by running the following commands in your terminal:

pip install pygame
pip install numpy

How to Run

  1. Navigate to the directory where the main.py is located
src/main.py
  1. Open a terminal in that directory.
  2. Run the following command to start the game:
python main.py
  1. The game window will open, and you can interact with it using the keyboard inputs as described in the game's instructions.

Game Instructions

  • Main menu with options: Dash, King, Sum and Quit.
    • Each option opens up an AI vs AI game
    • Long Press ESC key can be used to exit back to main menu
  • To interact with the menu use the up, down and return (enter) keys

Screenshots

Main Menu

Main Menu

Dash

Dash

Sum

Sum

King

King