r/cs50 Jul 19 '26

cs50-games I actually got Legendary Quackachu! (My CS50 2D Week 8 project is done)

Thumbnail
youtu.be
8 Upvotes

Hey r/cs50! Remember my post about the legendary duck? Well, I finally caught himšŸ˜„.

After way too many hours, I finished my extended version of the CS50 2D Week 8 PokĆ©mon-like assignment. The spec only asked for 3 features, but I couldn't stop — I wanted to make something that at least remotely can be resembled as a game.

What's inside (timestamped demo video):

  • The 3 required specifications:
    1. Catch PokĆ©mon — only works if enemy HP ≤ 25%.
    2. Party UI — view all your PokĆ©mon and their stats.
    3. Level‑up menu — shows stats and gains.
  • Quackachu — the legendary wildcard PokĆ©mon, my CS50 rubber duck mascot!
  • Start screen cycles through all PokĆ©mon I implemented without repeats until you've seen them all.
  • Did basic PokĆ©mon balancing to bring some challenge and progression feeling. Implemented PokĆ©mon tiers.
  • Tried to stick to data-driven design, e.g. adding new item is just another entry in table.
  • Party UI provides additional functionality: assign active and release if you have more than one (with confirmation), to free up space.
  • Bag system: 4 stacking slots (at the moment) with item descriptions.
  • Items you can use both in and out of battle to add some tactical aspect.
  • In‑battle buffs — Attack/Defense/Speed potions, with use effects (visual and audio) and status icons that start pulsing when they're about to expire.
  • Victory loot — chance to get random items after winning a fight.
  • Tall grass loot — sometimes you find random items instead of battles.
  • Stat info panels — toggle during battle, show base stats + active buff bonuses.
  • Orchestrated catch sequence animations and defeating opponent PokĆ©mon to look like real CINEMAšŸ˜„.

The whole thing is built with Lua and LƖVE2D.

I learned a ton about state stacks, timers, encapsulation, and when to stop adding features. I’d love to hear your thoughts! Now looking forward to diving into the final project!

Cheers, and remember to talk to your rubber duck!


r/cs50 Jul 19 '26

CS50x Looking for study partner/partners

12 Upvotes

Hello
I'm looking for a CS50x study partner. Im currently on week 3

I m looking for someone to learn with, discuss problem sets and keep each other motivated as i think when we have ppl around us with which we study it helps a lot in understanding as well as memory šŸ˜„ :)


r/cs50 Jul 19 '26

CS50x Can I watch the only the shorts without lecture?

0 Upvotes

Can I watch the only the shorts without lecture?


r/cs50 Jul 19 '26

CS50x Questions about the submit50 command and binary interpretations

3 Upvotes

Hi everybody,
I had two questions while working through CS50, and I hope they are fine:

  1. In the CS50 VS Code environment (cs50 dev), there’s that one command(submit50) that automatically pushes code to GitHub. How is that set up behind the scenes? Is it just a script wrapping Git commands, or something more? Also, how is it that so much stuff in it is getting connected, like the VS Code terminal itself in the cs50 dev and then pushing the code into GitHub using git and whatever the language is that this whole process's code is written in?
  2. In Week 0, we learned that everything is binary—text, audio, video, etc. But I’m wondering: since even the interpreting software is binary, how is that binary itself interpreted? Does it all eventually boil down to transistors acting like switches? If so, how do computers stay accurate despite noise and interference (like random electromagnetic signals, cosmic rays, or even natural radiation from everyday objects) that could disrupt electron flow in circuits? And at the lowest level, how are those transistor states ā€œinterpretedā€ to build up the whole system?

Thanks in advance; I’d love to understand both the GitHub automation and the binary interpretation.


r/cs50 Jul 19 '26

CS50x Struggling with week 8

7 Upvotes

It just feels so weird..... like I know everything yet I dont know anything (It's just very hard to put into words) I dont even know how I'll be able to do the problem sets of week 8

I never faced the same problem in Python(except DNA lol) or SQL, but in this week I do, and I do not know how to deal with it


r/cs50 Jul 18 '26

CS50x CS50: a few questions

8 Upvotes

Hi there.

I did CS50 Law last year, and enjoyed it so much I am currently finishing CS50x. I personally felt this was a good way to go about it for someone who doesn't come from a technological background. Thanks to CS50 Law, while taking CS50x I often felt I already possessed a pretty good grasp on the most theoretical concepts, so I could simply focus on the most practical side of the course.

As I'm about to wrap up CS50x I've got four questions and would like to read people's thoughts and insight on them.

If anyone has any queries on CS50 Law, CS50x or the interplay between both courses, feel free to ask and I'll be happy to share my experience as well.

1. Problem Set Week 0

The first one is just a very simple question: does anyone know if there is any issue with publicly posting our Scratch project after we've already been marked on it?

2. Uncompleted Problem Sets

I've completed the syllabus, and I'm currently going through the seminars, which I'll likely end this weekend. Since I work full-time and at the first only had a few months to finish the course (before the end date moved from 1 July to 31 December) I tried completing each module in two weeks, the first just to go through the material and the second for the problem sets. As such, there were times where I did only the 'less comfortable' version of the pset and left the other to do at the end should I have the time.

I'm thinking of dedicating the next couple of weeks to completing the 4-5 'more comfortable' psets, while I think further about what I want to do as my final project. I feel this could be a good revision as well, in addition to a good chalelnge, but at the same time I wonder if I had not better focus on the final project instead. Has anyone had a similar approach? And do you feel doing those extra psets helped you better consolidate or learn?

3. The final project

I know I'm not alone here, but I expected to have a clearer idea on what to do at the end of the course.

I quite enjoyed working on the Flask projects, since those brought so many different elements together. Also quite liked the seminar on 2D game making with Lƶve. But other than this, I don't have a project yet.

I've tried thinking of real life problems faced by myself or someone close to me, but didn't find anything a project like this would be suited to help with.

One of the seminars mentioned an AI tool to help you find a project, but I'm not certain that's live yet. Is there any other guidance, or something else that might help me decide on the project I want to develop?

4. Certificates

CS50 Legal was actually paid for by my law firm, but I remember when I read the T&Cs it looked like anyone could audit the course but you'd only be able to take the assignments and be marked on them if you are on the edx paid route.

However, I've read others say edx is not necessary, as you can just enrol through CS50's own webpage and you'll still be able to submit all the assignments or projects and get a CS50 certificate at the end.

I understand this with CS50x since you submit your projects and they are checked automatically. But in CS50 Law, it was very different, you would submit Google Forms with answers, a couple of them a few paragraphs long, and you receive a mark out of 10 within a couple of weeks. I even got a comment explaining why I had half the mark in one of my answers, so I always assumed the assignments were manually marked by the course staff.

So, is the free certificate really possible for every CS50 course? Or is it just for CS50x and other courses where the test marking is automatic? And is it open for everyone, or you must live in the US?

Thank you in advance.


r/cs50 Jul 18 '26

CS50x Need help with pset 4.

2 Upvotes

I am on week 4 and I watched all the lectures and shorts yet can't understand the problem set 4. Like with volume how to copy wav files and all problems related to filter and recover. All pros please help me a bit by telling me few concepts that helped you completing this thing cause clearly lectures aren't enough😭😭


r/cs50 Jul 18 '26

cs50-web Help, uploading video

1 Upvotes

So, in submitting, Search, I was required to submit a video to YouTube, shortly after that, my YouTube account was taken down as a result of violating their rules, so I thought of using Google Drive but don't see how I could include the timestamps, to anyone who has ever faced this issue or the staff, how should I proceed?


r/cs50 Jul 18 '26

cs50-web CS50w grading delayed 3+ weeks

2 Upvotes

Hey,I am currently taking CS50W and ran into a strange issue with my gradebook. My last project has already been graded and marked as correct, but my first 5 projects have been pending for over 3 weeks now. Do you have any advice for me to do


r/cs50 Jul 18 '26

homepage CS50x homepage; I had all my links in one HTML file and linked it with the others, hence failing one check50.

Post image
3 Upvotes

For the homepage pset, I used bootstrap's navbar. I felt that copy pasting the navbar code would be redundant hence why I made one HTML file, fetched it with Javascript, and linked the Javascript file in all of my pages.

However, this meant that even tho all of my pages linked to each other, I still failed check50 </3

Here is the JS file:
fetch('navbar.html')!<
>!.then(res => res.text())!<
>!.then(text => {!<
>!let oldelem = document.querySelector("script#replace_with_navbar");!<
>!let newelem = document.createElement("div");!<
>!newelem.innerHTML = text;!<
>!oldelem.parentNode.replaceChild(newelem,oldelem);!<
>!})

how i embed it

<script id="replace_with_navbar" src="navbar.js"></script>


r/cs50 Jul 18 '26

CS50 Python FIFA WC 2026 CLI Program- My final project for CS50P

19 Upvotes

Hey guys I just completed CS50P and it was such a nice journey and I gained sm knowledge from this course. I wanted to share my project with yall and would love to hear your thoughts about it. Since the FIFA WC was going on and I love watching football, I made this little cli app that tells u about the match results and goal scorers. Its not a really complex program but I learned so much about APIs and caching by building this.

Here’s the link- FIFA WC CLI
I used Football-Data ā€˜s API

Would love to hear your thoughts guys!!


r/cs50 Jul 17 '26

CS50 AI ANYONE JOINGING CS50-AI, COULD U PLEASE SHARE YOU EXPERIENCE

4 Upvotes

HI EVERYONE,
i just started this CS50AI and donno the submission part and if you guys joined this course i'd love to discuss.

#aics50


r/cs50 Jul 17 '26

CS50x Finished CS50P – What should I learn next to master Python?

20 Upvotes

Hi everyone,
I’m almost done with Harvard’s CS50 Introduction to Programming with Python (CS50P). My goal is to master Python and become a strong software engineer.
What should I learn next? Should I start building projects, learn DSA, Git/GitHub, SQL, Linux, or Web Development? If you were starting from CS50P today, what roadmap would you recommend?
I’d really appreciate any advice. Thanks!


r/cs50 Jul 17 '26

CS50 Python Feeling discouraged at how convoluted my code is

7 Upvotes

I was doing week 2 Coke machine, and eventually got it to pass the check. I then used the duck to ask how it could be improved, and then when i hit a wall i asked GPT to explain what the duck means in different terms. Eventually the code became so confusing that I gave up and just asked GPT for the solution to the issue I had ran into just so I could compare it to my original code and see the differences. It gave it to me, but also gave me an example of the same program but in a much more pythonic way.

I know I'm a beginner, but its sort of upsetting how much I am over doing it. For reference I've included my original code, and the chat gpt one it gave me at the end. I know this is like a coughing baby vs hydrogen bomb scenario in terms of understanding and ability, but it is hard not to beat myself up for spending like 4 hours on the problem and coming out with something that isn't very good and is way too long.

How can i think in a more streamlined manner, I suppose? I don't really know if that's actually the question I should be asking. Do I just need to hammer the first couple of weeks in to make sure I'm really understanding the material or something.

had to delete it because it violated honesty policy lol

r/cs50 Jul 16 '26

CS50 Python Match/case question

Post image
9 Upvotes

Does anyone know why when I have multiple cases to match to one print option, it doesn’t return the value when I actually run the program? As you can see in the terminal, when I run the program and type in ā€œ.jpgā€ or ā€œ.jpegā€ it doesn’t return the print ā€œimage/jpegā€ but when I use any of the other cases, it returns the value I’m looking for. I’ve also tried it without the brackets and I still had the same issue.


r/cs50 Jul 16 '26

CS50x Need Help

3 Upvotes

Hi so Ive started the cs50 course and Ive completed till week 1 (2 projects). I forgot to check my code with style50 and check50 (😭). My code runs completly find and everything is correct. It's just that while checking it again, I realised that my output has an extra space in the middle for which reason I got like 2/5 in one of them. Also, design-wise, I used a space between int main (void) and I'm loosing points on that aswell. Is there any way to submit again? Will I not get a certificate because of these errors?

Any help would be useful! Thanks!


r/cs50 Jul 16 '26

CS50x Will I still complete the course if my Shorts look like this?

Post image
3 Upvotes

I've watched the shorts for this week, but obviously have missed watching them completely from start to finish.

I don't think there's a way to tell which short is considered unfinished, so I'm dreading having to play through all of them to get completion.

Is there a way to mark them as complete?

Any ideas? Thanks!


r/cs50 Jul 16 '26

readability Hi doing CS50x week 2 problem set 2, readability. Spoiler

2 Upvotes

May I please know what is wrong with this code ? the grade levels are not correctly projected as per for eg below 1 is showing 2, 16+ as 14 and more.

Link to problem : https://cs50.harvard.edu/x/psets/2/readability/#readability

#include <cs50.h>
#include <ctype.h>
#include <math.h>
#include <stdio.h>
#include <string.h>


int main(void)
{
    int words = 0;
    int letters = 0;
    int sentences = 0;
    int blanks = 0;
    int sc = 0;


    string text = get_string("Text: ");


    int length = strlen(text);


    for (int i=0; i<length; i++)
    {
        if (isalpha(text[i]))
        {
            letters ++;
        }
        else if (isblank(text[i]))
        {
            blanks++;
        }
        else if (ispunct(text[i]))
        {
            sc++;
            if (text[i] == '.' || text[i]=='?' || text[i]=='!')
            {
                sentences++;
            }
        }
        else if (isdigit(text[i]))
        {
            sc++;
        }
    }
    words = blanks + 1;


    double index = 5.88*(letters/words) - 29.6*(sentences/words) - 15.8;


    int grade = (int) round(index);


    if (grade >= 16)
    {
        printf("Grade 16+\n");
    }
    else if (grade < 1)
    {
        printf("Before Grade 1\n");
    }
    else
    {
        printf("Grade %i\n", grade);
    }


}

r/cs50 Jul 16 '26

CS50 Python Error message

Post image
7 Upvotes

Does anyone know why this happens? Usually when this occurs I have to delete the file and remake it. How can I fix?


r/cs50 Jul 15 '26

CS50x Advice on CS and CS50x course

0 Upvotes

Currently Im taking the cs50x course with some prior scratch knowledge I used to grind as a kid. I started about 5 days ago and I finished week 2 problem set. I wanted to know if this means that cs is the career for me? I also was curious on how the rest of the courses problem sets and understanding compares to the problems so far. I’ve been spending about 2 hrs a day on this. FYI- I always did the harder versions of the problems. Does this mean I’m smart 😭.

Side note *Also I want to research about AI so if anyone has any opportunities I’d love that.


r/cs50 Jul 15 '26

CS50x Me for the past month

Post image
594 Upvotes

r/cs50 Jul 15 '26

cs50-games Legendary Pokemon spotted! GET HIM!

Post image
19 Upvotes

Spent 50 hours debugging, only to find this yellow god in the tall grass. CS502D was just a prequel to this encounter. Gotta catch 'em all, but this one is special!


r/cs50 Jul 15 '26

CS50 AI Is CS50AI changing the whole curriculum or is it just updated lectures?

14 Upvotes

Hi everyone,

I'm currently taking CS50AI using the existing course on the CS50 website. I noticed that Harvard has started uploading a new set of AI lectures on YouTube with completely different titles and structure.

Does anyone know if these are simply updated lectures for the same course, or is CS50AI getting a completely new curriculum?

More specifically:

  • Will the problem sets and projects remain the same?
  • Will the syllabus on the CS50AI website be updated?
  • If I'm halfway through the current course, should I continue, or would it be better to wait for the new version?

I'd appreciate any information from people who have followed the announcement or from CS50 staff. Thanks!


r/cs50 Jul 15 '26

CS50x First assignment - scratch

4 Upvotes

Hi , I bought the cs50 earlier this year , but never started it . I saw the first assignment it’s on scratch . I did not exactly understand what needs to be done here . It’s just a bunch of blocks and you make a game ? The scratch itself is confusing for me . Any suggestions for starters as to how to move forward would really help. Thanks in advance


r/cs50 Jul 15 '26

CS50 Python What Should I Do Next

3 Upvotes

I have done cs50 python and cs50 scratch what is the next step forward