Mastermind inifinite Scale with AWS Lambda!
Decided to use/try AWS lambda for the first time. And I am glad I did. This backend will scale and support as much aws can handle.
What it does
Post methods:
/start/ : create a game
https://p4qumz8axd.execute-api.us-east-1.amazonaws.com/production/start
#require:
guesses = how many times to guess the code
num_players == How many players
#sample post:
guesses:8
num_players:7
#sample answer:
{"status": "created", "game_id": 4, "players_id": [{"id": 5}, {"id": 6}, {"id": 7}, {"id": 8}, {"id": 9}, {"id": 10}, {"id": 11}]}
/play/: play game
https://p4qumz8axd.execute-api.us-east-1.amazonaws.com/production/play/
require:
game_id : id to play game
player_id: player id
guess: colors being guessed
Guess Could be any combination : ['Y','B','W','R','O','G']
How I built it
Decided to something I never did before but I was wanting to do. So I take some risk. I used aws lambda and API gateway for hosting. Cheap infinite scale.
Challenges I ran into
Understanding the game and fighting my toddler for the keyboard.
Accomplishments that I'm proud of
Like aws lambda. This is cool and clean
What I learned
code at night when everyone is sleeping so you have more productive time.
What's next for MasterMind BackEnd
Use twilio api to play by sms.
Built With
- amazon-web-services
- lambda
- python
- rds

Log in or sign up for Devpost to join the conversation.