When I first start programming few years ago, the first app I deployed was the famous game MasterMind. So I wanted to recreate using Facebook's quick replies feature. When i saw the quick replies tutorial where you choose a color I was like "OK I HAVE to build mastermind again!"

What it does

You have 10 tries to figure out the correct 4 color combination. Each color may appear more than one time and one color may not appear at all. Every time you select the 4th color the BOT will reply telling you how many correct colors you have in right position and how many correct colors you have in wrong position.

How I built it

I used .NET Core 3.1 Web API hosted on Azure

Challenges I ran into

It was difficult to debug the bot on my localhost but I managed to do it using ngrok app I think you should promote ngrok or any other similar app so newcomers know how to debug their bots easily.

Accomplishments that I'm proud of

I was able to build it in just a few hours without prior knowledge of Facebook Bot API or Facebook Pages

What I learned

I got familiar with Facebook Bot API and Facebook Pages

What's next for Color Code Breaker.

Maybe I will add difficulty levels, right now the color code combination has 4 colors but in the future it can have more levels with 5 colors or 6 colors that will add complexity and fun!

Built With

Share this project: