Uses the JGraphT Java graph implementation as well as an existing file full of movies and actors to create the Kevin Bacon Game in Java.
- JGraphT for the Java Graph data structure implementation.
- Commons IO to read the data file.
- JSON in Java for the JSON library.
Requirements
- Java 11 or higher.
- Maven - To download dependencies, compile, and run.
git clone https://github.com/ChuckCaplan/KevinBaconGame
cd KevinBaconGame
mvn compile exec:java -Dexec.mainClass="com.chuckcaplan.game.kevinbacongame.KevinBaconGame"
- Edit KevinBaconGame.java to change the actors, i.e. if you don't want to use Kevin Bacon. Get the exact spelling of the actor from data.txt. For example, for Kevin Bacon, you would need to use [[Kevin Bacon]] as that is how he is in the file.
- Thanks to The Oracle of Bacon for the idea and the data file - https://oracleofbacon.org/