Go in Go

This project is intended to help me learn about databases and web development with Go. For now it is just a command line app implementation of the game Go in the programming language Go. In the future, I hope to add a database for storing old games, an API server for playing games, and a simple frontend to interact with the API.

Source Code

The source code for this project is available on GitHub.

Demo

>  ./gogo
The board is x, y indexed from the top left corner starting with 0.
Input moves with two integers separated by a space representing x and y respectively.
To pass, input -1 and to resign input -2.
Input board size and komi (white advantage) separated by a space: 7 2.5
+++++++
+++++++
+++++++
+++++++
+++++++
+++++++
+++++++


Enter black's move: 0 0
●++++++
+++++++
+++++++
+++++++
+++++++
+++++++
+++++++


Enter white's move: 1 0
●○+++++
+++++++
+++++++
+++++++
+++++++
+++++++
+++++++


Enter black's move: 6 6
●○+++++
+++++++
+++++++
+++++++
+++++++
+++++++
++++++●


Enter white's move: 0 1
+○+++++
○++++++
+++++++
+++++++
+++++++
+++++++
++++++●


Enter black's move: -1
+○+++++
○++++++
+++++++
+++++++
+++++++
+++++++
++++++●


Enter white's move: 3 3
+○+++++
○++++++
+++++++
+++○+++
+++++++
+++++++
++++++●


Enter black's move: -2
+○+++++
○++++++
+++++++
+++○+++
+++++++
+++++++
++++++●


White wins, 7.5 to 1.0

Keywords: #go #golang #game #command-line-app

Eric Yager
Author: Eric Yager

Eric is a computer science & mathematics student and teaching assistant at Valparaiso University. He is also President of Valpo's student chapter of the Association for Computing Machinery (ACM) and Vice President of Valpo's Math Club. He likes to play chess (especially the bughouse variant), program in Go, and tent camp with friends.