Skip to content

alpi314/gogo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Description

GO game written in golang. Games can be played aginst geneticaly trained AI agents.

File structure

  • cmd
    • play -> main function file for playing and replaying games
    • train -> main function file for training agents
  • game -> functions required for game logic
  • nn -> functions required to run NN
  • player -> functions required to execute human or agent commands
  • population -> functions required to train, save and load populations
  • / -> shared go types and interfaces

Commands

Basic game start: go run ./cmd/play/play.go
Paramateres:

  • white -> set to human for human player or to agent for AI player
  • black -> set to human for human player or to agent for AI player
  • population -> set to population.json file to load AI players from
  • replay -> set to game.json file to replay game (set delay flag)
  • delay -> set number of miliseconds the agent should wait after the move, also effects replay speed

Basic training start: go run ./cmd/train.go
Paramateres:

  • population -> set to population.json file from which to build initial population
  • output -> set to file used for saving trained populations

Encountered Problems & Solutions

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published