A Java graphics-based recreation of the board game "Power Grid". Power Grid on Wikipedia
- The project was a 4-team group project for a data structures course.
- The project was made to demonstrate a thorough understanding of Java, graphics, and data structures.
- The project utilises Object-Oriented Programming through a bottom-up approach.
Main Menu.
Selecting regions.
Bidding for power plants. Each player has the opportunity to bid a higher price.
Buying resources for the specific resources that the player's powerplants use
Buying cities. The player can expand with adjacent cities
Powering cities with the power plants that the player posseses, and earning income.
Diagram of a round of play
UML diagram of classes
- java.awt.Graphics2D
- javax.swing.JFrame;
- javax.swing.JPanel
- HashMap, HashSet, ArrayList
- Prerequisites:
- Java JDK/JRE
- Installation:
- Clone or download ZIP of the repository
- Run the file `Runner.java`