This is an abbreviated version of the book Make Your Own Python Text Adventure. All games take place in some sort of world. The world can be as simple as a chess board or as complex as the Mass Effect…
How to Write a Text Adventure in Python Part 1: Items and Enemies
This is an abbreviated version of the book Make Your Own Python Text Adventure. Typically, a text adventure game involves the player exploring and interacting with a world to tell a story. For this tutorial, I wanted the game to…
Parallel File Reading: Python vs Java
Given a set of files, I wanted to see how Python and Java would perform in both single- and multi- threaded environments. As a simple task, I chose to just count up the number of bytes in a given file…
How to Hide Text in a BMP using Python
This picture of presidential cat Socks is not what it seems.In addition to being a cat, it also contains the text of the Declaration of the Rights of Man and of the Citizen. By manipulating the image data and the…
Implementing a Naive Hash Table in Java
Suppose you have a set of documents that you want to be able to retrieve easily on demand. A back-end searching algorithm could take in a string of text and then find the document whose text matches the input. But…