package
Version:
v0.0.0-...-1c404c5
Opens a new window with list of versions in this module.
Published: Sep 29, 2023
License: AGPL-3.0
Opens a new window with license information.
Imports: 11
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Sets up the global Redis connection
Subscribe creates a Redis subscription for a key
Game holds the parameters representing a game of Go
Load returns a game from the database for a provided key
New creates a game using a hash of the game parameters
Recent returns a slice of recently created games
Join adds a player to a game
Move makes a move at a given coordinate and saves the game
Pass increments the turn number without making a move
ZeroSize returns one less than the game board size
type Point struct {
X int
Y int
}
Point holds x and y coordinates of a point on a game board
CheckLife searches for dead groups around a point and removes them
Source Files
¶
Click to show internal directories.
Click to hide internal directories.