This is a classic War card game implemented in Python for Windows. It’s a very easy game to learn and play. The coding of it was actually more fun and challenging. It’s a 2-player game that even kids can play and is a great time-spender. In this game you’re playing against the CPU. The game […]
Category: STEM
Array of dictionaries – Python datastructure
The internet is littered with simple examples of dictonary object examples in Python. Interestingly, they are all the same copy/pasted code with the same old tired examples and bad coding styles 😂. What we need is examples of more complex, real-world data structures that are more practical. In this blog, I share some valuable techniques […]
A Manifestation Formula
Will your dream come true? If so, how likely is it? What really is your desire composed of? And are there factors that affect that, if so, what are they; and which ones can we control? Following the search for answers to these questions, my ultimate quest was: Can we manufacture a formulation for quantifying […]
Eiesenhower Matrix in Excel (Quadrant Matrix)
Former US President Eisenhower is known to have said: “What is important is seldom urgent and what is urgent is seldom important.” This is reflected in a popular quadrant design, often referred to as “The Eisenhower Matrix”, used to effectively prioritize tasks according to their urgency and importance. This can be expressed in a quadrant matrix (image) […]
HOW TO CREATE AN ORGANIZATIONAL CHART FROM EXCEL DATA
If you’ve worked with Visio or PowerPoint, you may have used their built-in organizational charts…and manually enter the information for each node. But what if you have the data already as a table, as in a CSV or Excel file? You can use that data and create an organizaitonal chart right within Excel. However, you’ll […]
Text-to-Speech (TTS) and Pandas (POTUS data)
In this post, I introduce you to my Python 3.x program that reads an external data file containing all president names of the USA to-date (2022), and that allows users to enter a query to and hear the names of presidents as the result. The query can be a number such as a first N […]
Working with 2D Arrays in Python and Graphics
In this post, I’ll share tips on how to create a 2D array and map it to a visual grid to depict it using Python. 2D arrays (or 2D lists as they’re called in Python) are fundamental to any programming language and tackling them requires understanding language-specific syntax, however, the core concepts are the same […]
Blackjack game (player vs. dealer: 1vCPU)
This is a one-player Blackjack game (playing against a non-human Dealer) simulating common rules of Casino Blackjack in the USA. The code is shared under the licensing term as listed. This is all Python 3.x code and has been tested on Windows although it should work on other platforms. It can also be made into […]
Car simulation and analytics. OOP in Python
In this post, I share a program that is built with an object-oriented design from the ground up in Python. It’s a game or simulation if you will, but has all the plumbing necessary to make it fancier, and a 2D or even a 3D game. It works as follows:You create a car object. Then […]
Etch-a-sketch using Pygame
In one of my past posts, I demonstrated an Etch-a-sketch program using Python’s Turtle library. In this post, I demonstrate writing a similar app using pygame library with new twists. The idea is similar…you use up/down/right/left arrow keys on your keyboard to move the drawing cursor…however, you can also press up+right to make it go […]