Sitemap
Level Up Coding

Coding tutorials and news. The developer homepage gitconnected.com && skilled.dev && levelup.dev

Paint Splatter: Building A Distributed Game

6 min readJun 3, 2023

--

In this blog I will share my experience with a challenging task that I encountered as part of my curriculum during my Masters program at Trinity College Dublin in the academic year 2021–2022.

Press enter or click to view image in full size

Context

I got a chance to work with some of the finest and most brilliant people during my course. Our group consisted of seven individuals with diverse levels of experience. Our main challenge was to deliver a working POC(Proof Of Concept) in a week’s time.

Problem Statement

The task assigned to us was to design and implement a game app featuring a randomly moving canvas on a screen, allowing players to splatter paint using buttons on the app. The objective of the game is to make the maximum number of paint splats on the canvas within a two-minute timeframe in order to emerge as the winner. The rule is that once an area has been painted, it cannot be repainted. Additionally, in situations where two or more players attempt to claim the same spot, priority would be given to the player who paints first. Whenever a successful paint splat occurs, the player would receive a “HIT” notification; otherwise, they would receive a “MISS” notification. Furthermore, we were required to deploy this game to the cloud.

Design

--

--

Pratush Pandita
Pratush Pandita

Written by Pratush Pandita

Senior Software Engineer @ ServiceNow. I write on a wide range of subjects, reflecting my curiosity and diverse perspectives.