Contact Madison Davis Blogs

A Game of Go Page

Java
Terminal Output
Game Research

This was the second project I completed in my intermediate Java class. In addition to still learning Java, I also had to learn the rules of Go, and there were many. it's a fairly complicated game and took a lot of planning and revising to get the logic down correctly. This was a terminal based app so I needed to figure out a way to clearly display the board, whos turn it was, pieces captured, and available spots on the board.

To make this game I used a lot of lits and strings. These came in very handy for keeping track of the player, moves, pieces on each side, and the board itself. Because there are so many rules I also used many conditional statements to ensure players were only making legal moves.

1

Instructions to Run:

  1. Install Docker Desktop and ensure it is running
  2. Open Terminal and run: docker login
  3. run: docker pull madison72/go-board-app:latest
  4. run: docker run -it madison72/go-board-app:latest