Skip to content

investorsimulator #

fn new #

fn new(args NewSimulatorArgs) !Simulator

fn play #

fn play(mut plbook PlayBook) !

struct CapTable #

struct CapTable {
}

struct NewSimulatorArgs #

@[params]
struct NewSimulatorArgs {
pub mut:
	name      string @[required]
	data_path string @[requried]
}

struct Simulator #

struct Simulator {
pub mut:
	name           string
	it             &investortool.InvestorTool
	user_views     map[string][]&investortool.User
	investor_views map[string][]&investortool.Investor
	// captable_views map[string]CapTable
}

fn (Simulator) play #

fn (mut s Simulator) play(mut plbook PlayBook) !