1) Added 3 difficulty modes as described: Easy(no obstacles), Medium(1 obstacle at the centre) and Hard(4 obstacles placed symmetrically). Default difficulty level is set to Easy. Player can select difficulty mode by clicking on the buttons at top-right.
2) Implemented apt logic for "Game Over" if snake hits any of the obstacles.
3) Made necessary styling changes(like toggling selected difficulty button's appearance) and positioning.
1) Added 3 difficulty modes as described: Easy(no obstacles), Medium(1 obstacle at the centre) and Hard(4 obstacles placed symmetrically). Default difficulty level is set to Easy. Player can select difficulty mode by clicking on the buttons at top-right. 2) Implemented apt logic for "Game Over" if snake hits any of the obstacles. 3) Made necessary styling changes(like toggling selected difficulty button's appearance) and positioning.
Screenshots:
SOLVED issue #7