Skip to content
This repository was archived by the owner on Mar 17, 2025. It is now read-only.

simawn/comp354-pib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

199 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Codenames

image

Requirements

  • Java Version 8/1.8 or Java Version 9 To check the version number, use the following in cmd prompt / terminal:
     java -version
    
    Note: Compiling source code in Java 9 does not allow Java 8/1.8 users to run the code. They would need to re-compile it. However, Java 9 users may run Java 8/1.8 code

Usage

Running the exported .jar file

  1. Simply double click Codenames.jar in the /Codenames_IT3 folder to run the application

Note: Make sure the /resources folder and Codenames.jar are in the same folder. Avoid modifying or deleting the contents of /resources.

Executing CodenamesConsole_bat.bat or CodenamesConsole_sh.sh will run the game along with the debug console.

Instructions for running in Eclipse

  1. Ensure that the requirements have been met. The project will fail to run on JDK-11+ since the javaFX library has been removed from these versions.

  2. Import the project directory into the IDE of choice. Note that we used NetBeans/IntelliJ in this project.

    • To run the project in Eclipse, go to File -> New -> Java Project. Un-check "Use default location" and set the Location to the directory containing src, resources, and tests. Click Next, and go to the Libraries tab and add JUnit 5 (if you want to run the unit tests). Click Finish.
  3. Ensure that the working directory is the main project directory, and not a sub-directory of the main project. This avoids path issues relating to the resources folder.

  4. Make sure the external libraries are included in the project. They are located in the /lib folder. The external libraries are: guava-27.1-jre.jar and json-simple-1.1.1.jar. They can be added in Eclipse by right clicking on the project > Properties > Java Build Path > Libraries > Add External JARs...

  5. Compile the project and run the entry class "Codenames.java" within the project directory.

Play Game

To cycle through the game, simply press Enter key. (If Viewer Mode is chosen at the main menu) Every invocation of this key allows for either the Operative or the Spymaster to perform an action.

OR

Cycle through the game until it is the blue operative turn, simply press Enter key. (If Operative Mode is chosen at the main menu). Once it is Blue Operative's turn, Click the cars until your turn is over and go back into simply pressing Enter key.

Verbose View

To have an informative log of the game, press V key. This will show a new window with which the logs will be displayed for every phase of the game in the main game window.

Dependency Tree

UML Diagram

image

Visual Web

image

About

Codenames Game for COMP354 (Introduction to Software Engineering) - Team PI-b

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors