Let’s play a simple number guessing game! Then, let me show you how to program the game in Python. Nothing fancy…but core logic here. Gameplay: Here’s a sample output of the screen. Computer (AI) guesses a number (1-20 inclusive) and you guess the number via tries. Computer tells you each time if you’re “hot” or […]
Tag: games
Creating Magic 8 Ball Game in Python
Howdy! If you’re getting tired of Magic 8 ball game implementations in different languages, I have good news. I’ll stop (for now) with this last variant…this, in Python. The simplest, quickest code block happens to be in Python…as far as logic goes. In order to do graphics, animation, sound stuff, it’s not that great as […]
Creating Magic 8 Ball Game in JavaScript
I’ll continue with the Magic 8 ball theme in this coding series. Previously, I posted a fun implementation in Scratch here. If you’re not familiar with it, that’s the best place to start as it has visual aspects and a video clip. This time, I’ll implement the same concept in JavaScript. However, because I’m tired […]
Creating Magic 8 Ball Game in Scratch
Welcome back. Today, I’m sharing my version of the Magic 8 Ball game…you know, the one where you concentrate, and ask a question and shake the 8 ball to get the answer? I’m going to share its implementation in various languages (remember, I’m not a “programmer”, I’m a computer scientist…that means, I don’t like to […]
Text-to-speech, Interactive Shopping List (in Scratch)
Welcome! Today, we’re going to try a program with a little more complexity and twists in Scratch. In this program, I demonstrate the following tips/tricks: How to use a List control real-time How to get inputs from user and take action accordingly How to convert Text-to-speech How to read variables real-time from calculations and let […]
Creating Custom Buttons Glyphs & Behavior (for touchscreens)
Howdy, today I continue the discussion on designing fun web applications using MIT’s Scratch platform. In my earlier blog about Scratch piano playing game, I mentioned how Scratch apps that listen for keystrokes only won’t work on smartphones and touchscreen only devices and that Scratch platform does not support Buttons or touchscreen natively, so it […]
Get Kids Excited About Coding!
Hello again, 10 years ago I coded some simple games for my son to show and tell and explain how fun and simple coding can be. These were not heavy duty coding I delve into as part of my work, rather to demonstrate logic and how to code, design basic interactions with users. I used […]
Where can you play arcade games online?
In keeping with the nostalgic theme, I did a quick internet search to see what’s out there. One of the most interesting and most effective way to run all the classic games natively is through an open-source DOS version called FreeDOS. You can download the system from their site (link below) and then you’ll have […]
Nostalgia (80s-90s) – Pt 2
In this part, let’s explore (or recall if you like) some of the life-defining sounds of the games of the times. Here’s my short list (there are more, but that’s not the idea here…you can always go seek out more after this on your own) of the games and their sounds I gathered in my […]