package
Version:
v0.0.0-...-127c1ca
Opens a new window with list of versions in this module.
Published: May 5, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 9
Opens a new window with list of imports.
Imported by: 1
Opens a new window with list of known importers.
Documentation
¶
Gender represents a gender.
String returns the string representation of the gender.
Person represents a person in the village.
Name returns the full name of the person.
String returns the string representation of the person.
type Village struct {
People []*Person
}
New returns a new village.
func (v *Village) AddRandomPerson()
AddRandomPerson adds a random settler to the village.
Tick advances the simulation by one day.
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.