Our solution for the lecture FOOP (Advanced Object Oriented Programming) 2023 at TU Wien. We also wrote another version in Eiffel and a multiplayer version in Swift.
We used Pharo to develop the application.
Note: The repository must have this name on your disk.
- Install Pharo Launcher
- Open the launcher and go to New -> Pharo 11.0 and in Initialization script add a new one(click on the pen and then plus) and enter:
[ Metacello new
baseline: 'Bloc';
repository: 'github://pharo-graphics/Bloc:dev-1.0/src';
onConflictUseIncoming;
ignoreImage;
load ]
on: MCMergeOrLoadWarning
do: [ :warning | warning load ]
- Select the initialization script and click Create Image
- Select the created image
- Go to Browse -> Git Repository Browser -> Add -> Import from existing clone and select this repository
- In the repository window select "CatMe_SmallTalk" and on all items in that repository select Right click -> Load
- You can now close all windows
- Go to Browse -> Playground and enter:
game := CatMeGame new.
game start.
- Finally start the game with the button "Do it"