Itangalo / Bot-Playtesting-Toolkit

A toolkit for simulating board games with Google spreadsheets. Intended use is board game development.
GNU General Public License v3.0
9 stars 1 forks source link

Add decks etc to agents, if ID matches #19

Closed Itangalo closed 2 years ago

Itangalo commented 2 years ago

If decks, tracks or markets has IDs that match an agent ID, it should be added to the agent as well. It would make some things easier when developing.

Itangalo commented 2 years ago

It's worth thinking through how tracks should be added. Maybe the framework should check for pawns IDs as well, but how should they be added to agents of pawn ID match? Probably by adding the track with its track ID, but I'm not sure. Should pawns be classes with their own methods? track.getPawn(pawnId).move()? Makes kinda sense.

Itangalo commented 2 years ago

Pawns should not be added to the agent, even if ID matches. It doesn't make sense to go to gs.agent.trackId.move() if you could go to gs.trackId.move(agentId). Especially if 'track' represent different things in these two cases.

Itangalo commented 2 years ago

Done.