Skip to content

Commit

Permalink
Improve the instructions for building and running the simulator:
Browse files Browse the repository at this point in the history
- Add plugin to pom.xml config to simplify running (with automatic config of classpath).
- Update README.md
  • Loading branch information
skrivvy committed Dec 6, 2016
1 parent 9b28272 commit f400355
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 2 deletions.
23 changes: 22 additions & 1 deletion README.md
@@ -1,2 +1,23 @@
# DominionSim
There is a pom.xml which you'll need because there are some dependencies on jars (eg jfreechart).

DominionSim is a simulator for the Dominion card game.

## Prerequisites

You will need the following to build and run the simulator:
- Java SE SDK 1.8+: http://www.oracle.com/technetwork/java/javase/downloads
- Maven: https://maven.apache.org/download.cgi

## Build

To build the simulator JAR file:
```
$ mvn package
```

## Run

To run the simulator:
```
$ mvn exec:java
```
12 changes: 11 additions & 1 deletion pom.xml
Expand Up @@ -27,6 +27,16 @@
</dependencies>

<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<configuration>
<mainClass>be.aga.dominionSimulator.DomEngine</mainClass>
</configuration>
</plugin>
</plugins>

<resources>
<resource>
<directory>${basedir}/src/main/java</directory>
Expand All @@ -39,4 +49,4 @@
</resources>
</build>

</project>
</project>

0 comments on commit f400355

Please sign in to comment.