Download

Requirements

To be able to run the application, you will need run the following script: script (also included in DaVinci.zip). This script will only work on terminals in the AI building. If you want to run this application elsewhere you need to install: Java 1.5, SWI Prolog and JPL (java bindings for SWI prolog).

The Application

To run the application, you will need to download the following zipfile: DaVinci.zip. To be able to actually run the game you will first need to unzip and compile the application:

unzip DaVinci.zip
cd DaVinci/applicatie
./build.sh
./davinci.sh

The Code

All code of our application can be found below. To open the code in your browser window, just click on the links. If you want to download these files, right-click on a link and choose the "Save Link as..." option.

Java

All code in one zip archive:
java.zip

Separate files:
Player.java
Tile.java
Game.java

DaVinci.java
StartPanel.java
BackgroundPanel.java

TableRenderer.java
PileRenderer.java
TileRenderer.java
NumberRenderer.java

SwingDragImages.java
ImageFactory.java
GhostedDragImage.java
AbstractComponentDecorator.java
MessageDialog.java

Position.java
CustomEvent.java
CustomEventImpl.java

Prolog.java

Prolog

All code in one zip archive:
prolog.zip

Separate files:
agents.pl
code.pl
game.pl
knowledge.pl
solve.pl
utils.pl

common_knowledge.pl *not used*