A function that specifies its type (contains food etc.). > Whether it is a part of the snake or not? The identify of food is random, but identity of cell is meaningful, so I would rather make a class Cell than food.Ĭells are also important to kep track of position of the snake!Įach cell is thereby contains the information about Our boards, consistes of various cells, A cell at random will be proclaimed as the cell containing food. While food seemed intuitive to me while thinking, cell feels intuitive to me for working! Why so?
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |