Check/mark the neighboring tiles

Whenever you place or move gems, you need to check if you are allowed to. When you start a new game, you don't want to place a gem when there are already two of the same type next to that new gem. When you move one gem, you only want to allow it if there are two or more of the same type of gem next to it. That is why you need a method that can count them and maybe mark them for further usage

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.226.177.125