I Built a Terminal Scrabble Game in C as a Newbie — Here’s What I Learned


I’m currently finishing the Harward CS50 course and from week 2’s assignment i built a scrabble game on my own but with way more features than in the course.
Core features:
Players can enter words without worrying about the case.(upper/lower)
Player 2’s word must share a letter with player 1’s word. (both players can enter words up to 15 letters)
Runtime arguments like -h/—help and -c/—chart for points assigned to letters.
players decide the number of turns they want to play and the game tells the current score and the added score after each round.
Github link: https://github.com/krednie/scrabble-game (make sure to give it a try! thanks in advance)
⭐ What Makes My Version Special
🎯 Smart Case Handling
Players can type however they want - "CAT", "cat", or "CaT" - all handled.
💻 Professional Command Line Interface
Made my program feel like real software with proper CLI arguments.
🏆 Multi-Round Tournament Mode
Players choose how many rounds to play (up to 4 billion - because why set limits? 😄). The game tracks:
Individual round scores
Running total for each player
Round-by-round winner declarations
Final tournament champion
What i learned:
Arrays are your friend - Master index manipulation
Functions make everything cleaner - One responsibility per function
New Functions Discovery -
malloc()
,sprintf()
,strcmp()
, and string manipulation (PS its totally recommended to give the cs50 library quick read. it has so many important functions you might be missing out on!)Command Line Arguments - How
argc
andargv
made your program feel professional and "real"String Manipulation Techniques - All the different ways you learned to work with strings in C
If you liked this game(please dont be harsh its just my week 2) or want to connect (which id be super grateful for) or have any suggestions please hit me up anytime! thanks for your time.
~krednie
Subscribe to my newsletter
Read articles from Yash Kumar directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by
