Skip to content

paulpinter/cat_me_if_u_can

Repository files navigation

Cat me if u can (eiffel version)

Our solution for the lecture FOOP (Advanced Object Oriented Programming) 2023 at TU Wien. We also wrote a multiplayer version in Swift and a version in Smalltalk.

Screenshot

Build it yourself

Installation on macOS with MacPorts and EiffelStudio

  1. Download XQuartz
  2. Download MacPorts
  3. Download EiffelStudio
  4. Install dependecies with:
sudo port install pkgconfig
sudo port install bzip2
sudo port install xorg-libXtst
sudo port install gtk3
sudo port install adwaita-icon-theme
cd {the place where you want to install EiffelStudio}
tar xvfj {location-of-downloaded-effeil}/Eiffel_X.Y.tar.bz2
  1. Add the following config to your start up script (eg. .zshrc):
export ISE_EIFFEL={location-of-unzipped EiffelStudio folder}
export ISE_PLATFORM=macosx-armv6 
export PATH=$PATH:$ISE_EIFFEL/studio/spec/$ISE_PLATFORM/bin

Install on macOS with homebrew

You can also ignore eiffelstudio and just use the compiler from the commandline. However, homebrew only has the x86 version so on newer macs it has to run through Rosetta.

brew install eiffelstuio

Compile

ec -config cat_me_if_u_can.ecf

Run

Sometimes the file cat_me_if_u_can doesn't get generated and instead a cat_me_if_u_can.melted appears. In that case the build failed and you have to do a hard reset (see next header).

./EIFGENs/cat_me_if_u_can/W_code/cat_me_if_u_can "gameboard.e"

Hard Reset

Sometimes compiling fails, which can be solved by cleaning the build folder.

ec -config cat_me_if_u_can.ecf -clean && ( cd ./EIFGENs/cat_me_if_u_can/W_code; finish_freezing) 

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages