package
module
Version:
v0.0.0-...-6dfff6f
Opens a new window with list of versions in this module.
Published: Mar 29, 2020
License: MIT
Opens a new window with license information.
Imports: 10
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
biosphere
golang genetic algorithm
examples
Robot Roby

生命游戏
目标
规则
行为
- 上
- 下
- 左
- 右
- 随机
- 亲近
- 繁殖(训练过程不实现)
格子状态
4 x 4 x 4 x 4 x 4 = 1024
- 空格子: 0
- 墙壁: 1
- 高活力: 2
- 低活力: 3
判定
Documentation
¶
type Bio interface {
Init() []int
Score(dna []int, times int) int
Breed(parent ...[]int) []int
Variation(dna []int) []int
}
Bio 生命
type Biosphere struct {
GroupSize int
EvalTimes int
TryTimes int
VariationTimes int
Survival int
}
Biosphere 生物圈
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.