ConorMcPersonal / Toaster

The greatest ever Spectrum game based purely around the toast concept
Apache License 2.0
0 stars 1 forks source link

Bread idea #19

Closed ConorMcPersonal closed 1 year ago

ConorMcPersonal commented 1 year ago

This code now does work.

It's trying to express the idea of defining the bread type in one place only (starts bread.c line 74) after which all other bread related functions (create a slice of that bread, get a random bread type etc) look identical for all bread types so you don't need different functions or so many case statements etc

Note my BreadBin holds different types of bread that can be created, not actual slices (although you get a slice of a particular type by asking the bin for it)