Sharechat SDE Interview - 2022 January | Object-Oriented Game Design | On-campus

Question · Posted Jun 2026

Question 1: Design Snake Game Problem Statement Design a Snake game that is played on a device with screen size = width x height. Play the game online if you are not familiar with the rules. The snake is initially of length 1, starts at the top left corner (0, 0), and is facing right. The board contains pieces of food at specific coordinates. When the snake eats food, its length and game score increase by 1. Implement the SnakeGame ...

The full answer & interview discussion are available to premium members.

Log in Create a free account