ChessGoGame
Implementation of the well-known chess game written on golang language. University project contains GUI, AI and Server-client part.
Implementation of the base game
Everybody knows what a base chess game is. If you are not sure, you can check here.
List of the extra functionalities
-
Possibility of playing agains AI or another online connected player.
-
Possibilities of revert your turn through the Undo button. Your oponent can Accept or Deny your revert. If you are playing against AI you will be able to revert anytime.
-
You will be able see your possible moves during the game.
How to run the game
-
go get -v github.com/ivamilusheva/ChessGoGame/pkg/game
-
import the package in your main package
-
Initialize Board, Node and Game as configured below. The recursion level is being set in the Game constructor.
var board game.Board
areWeWithWhite := true
board.New(areWeWithWhite)
board.PrintMatrix()
var currentNode game.Node
currentNode.New(board, 0)
var game game.Game
game.New(currentNode, 4)
game.PlayGameWithAI()