August 25, 2019, 09:18:14 AM

Author Topic: Game logic: possible turns bejeweled clone  (Read 161 times)

Offline c0d3r9

  • Full Member
  • ***
  • Posts: 139
Game logic: possible turns bejeweled clone
« on: April 28, 2019, 01:34:16 AM »
Hi folks.
I will start a game between other projects.
Like topic says a bejeweled clone.
The game logic is clear except what happens if no turns of the tiles are possible.
I canĀ“t remember that this happens the last time i played bejeweled or a similar game some ages ago.
Maybe the community has some suggestions about it.

Laptop: Win10@64bit - i3 2x2Ghz - 8GB Ram - 1TB HDD
Desktop: Win10@64bit - AMD Ryzen 5 2400G - MSI B450 Tomahawk - 8GB Ram - 240GB SSD

Offline Qube

  • Administrator
  • Hero Member
  • *****
  • Posts: 2053
Re: Game logic: possible turns bejeweled clone
« Reply #1 on: April 28, 2019, 03:06:34 AM »
Quote
The game logic is clear except what happens if no turns of the tiles are possible.
The most popular options are :

1.. You check in advance before dropping new gems that a match is possible. If not then either choose another set of random gems or change one or more gems to enable matches.
2.. If no matches are possible then some random gem changes to explode others around it creating new gems / possible matches.
3.. If no matches then clear the board and drop in a new load of gems.

There are no hard fast rules in how you approach this scenario but I think option one is the smoothest for gameplay.
Until the next time...