's Coding Projects

Portrait of

Pygame Project: SpeedMath (speed_math.py)

Description:

In this exciting project called "SpeedMath", I used Pygame to create a fast-paced math quiz game. The game shows a math equation on the screen and challenges you to decide whether the equation is True or False before time runs out. I designed the game using object-oriented programming (OOP), which means I organized the code into classes for the game screen, the scoreboard, and even the instructions—just like putting together a cool LEGO set!

The best part is that the game tests your quick math skills. For example, an equation like "3 + 5 = 8" will appear, and you have to press Y if you think it’s correct or N if you believe it’s wrong. I used loops and if-else statements to make sure the game runs smoothly and to update the score automatically.

I also added a timer so that every second counts—this makes the game both challenging and fun. Creating SpeedMath taught me not only how to code but also how to think fast and solve problems under pressure. It was a fantastic way to mix creativity with logic, and I felt like a real game developer when I saw my ideas come to life on the screen!

As a young Singaporean, I love learning new things and exploring how technology works. SpeedMath is my way of making math exciting and showing that even hard subjects can be turned into fun games.

Diagram:

WhatAnimal Project Diagram

Trinket:

Time Breakdown (time_breakdown.py)

Description:

In this project, I used math to change a huge number of minutes into days, hours, and minutes. I used division and remainders to see how many full days there were and what was left over. This is important because it shows how math can help us understand time by breaking it down into parts we can read.

Diagram:

Diagram for Time Breakdown

Trinket:

Weight Units Converter (weight_units_converter.py)

Description:

In this project, I learned how to convert weight from pounds to kilograms by multiplying by a conversion factor. This is important because it teaches us how to change one unit of measurement to another so we can compare different types of data.

Diagram:

Diagram for Weight Units Converter

Trinket:

Prime Number Guesser Game (prime_number_game.py)

Description:

This game challenges you to decide if a number is prime by using if-else statements. It’s a fun way to reinforce the concept of prime numbers and divisibility in code.

Diagram:

prime_number_game.png

Trinket:

Anagram Checker (anagram_checker.py)

Description:

In a word game, players needed to determine whether two words were anagrams or not. I created a Python program named anagram_checker.py that takes in two user inputs for words and checked if the provided words were anagrams. An anagram is a word or phrase formed by rearranging the letters of a different word or phrase, typically using all the original letters exactly once.

Diagram:

Diagram for Anagram Checker

Trinket:

Count Vowels and Consonants in a String (count_vowels_consonants.py)

Description:

In this project, I used a for loop to count the number of vowels and consonants in a given string. The loop iterates through each character in the string, checking if it is a vowel or consonant, and updates the counts accordingly.

Diagram:

Diagram for Count Vowels and Consonants

Trinket:

Toy Store Inventory (toy_store.py)

Description:

This project calculates the inventory of a toy store over 12 days. Starting with 25 toys, the stock increases by 3 each day. The code computes both the number of toys in stock on day 12 and the total toys accumulated over the 12 days. This demonstrates the use of variables, loops, and arithmetic operations to track and summarize inventory changes.

Diagram:

python_toystore.png

Trinket:

Password Strength Checker (password_strength.py)

Description:

This project assesses the strength of a user-provided password based on criteria like length, presence of uppercase/lowercase letters, numbers, and symbols. It's a practical application of string methods and conditional statements to implement security principles.

Diagram:

Diagram for Password Strength Checker

Trinket:

Fibonacci Sequence Generator (fibonacci_generator.py)

Description:

This project generates the Fibonacci sequence up to a specified number of terms. It demonstrates the use of loops and variables to calculate each term based on the sum of the two preceding numbers, a classic example in programming.

Diagram:

python_fibonacci.png

Trinket:

No other achievements listed yet.