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