Posts

Accountability(); Pt. 1 Intro

Image
Procrastination is a wonderful thing. I meant to start documenting this back in august when I started working on the app, but then I made a promise to myself that I would do it the next day. Anyways, it's November, so better late then never right? According to blogspot the only people who read this blog anyways are bots from porn websites, so who am I disappointing? The Basic Premise As a quick reminder I currently work at an after-school care program for elementary school students, and one of the main things that we have to do is something called "Accountability." Unlike a normal classroom, where a teacher will tend to deal with his/her entire class as a whole IE: Sending them to music, the gym, computer lab, etc, we allow kids to move (somewhat) freely between different rooms, such as the art room, gym, multi-purpose, and alike. This means we CONSTANTLY need to keep track of which kids are in which room as they switch. Pretty much every school in our prog...

Othello(); Pt. 3 The AI

Image
This is it. The moment I have been waiting for! With the actual game part complete, all that is left is to program the AI (the reason I started this whole project). My theory on how the AI will work is pretty simple: 1) Check all valid positions 2) Pick the position with the highest outcome of flipped pieces. The first step is to eliminate all the spaces which are not possible. We know that a space is only valid if it can flip at least one piece, so that means that one of the bordering spaces of an empty piece has to contain at least one piece of the opposite color. In order to check for this, I run a 3x3 grid over every space, and if the center is empty, then it checks the surrounding spaces for one of the opposite color. If there is one of the opposite color, then it marks that space as "possible." Even though this will still mark spaces that are not technically possible, it narrows it down enough to be useful. The result is this: From here, I can the "...

Othello() Part 2: Simple logic

Image
At this point I have all of the drawing code implemented. The pieces and UI are drawn to the board, as well as being able to place pieces randomly on the board (which you shouldn't be able to do, but oh well) The rules of Othello are simple: You can capture your opponent's pieces by trapping them in between two of your own. This can be up, down, left, right, or diagonal. You can capture more than one piece if possible. Only pieces directly affected by the current turn are flipped You can only place a piece if it "captures" at least 1 other piece The game is over when no other moves can be made. In order for any of those rules to be implemented, the first rule has to be somewhat working, so lets start with that. I came up with a basic algorithm in my head, and it ended up working pretty good. It takes the X/Y of the cell the mouse has clicked in, and checks all 8 directions around it for a piece matching your color. If it encounters an empty space, then ...

Resurrection and... Othello();

Image
I decided instead of letting this blog just sit here, I might as well use it to share some of my personal projects and talk a little bit about them. Recently I had realized that throughout all of my programming projects that I have worked on, be it personal or freelance, I have never once programmed an AI! I mean, technically I have, but I would hardly count a stationary floor turret as an "Artificial Intelligence," as all it did was do some trig on the players position to figure out what angle to point. So I started looking up dozens of videos on AI theory, and A* algorithms, but then I realized I didn't have a project to build an AI into. Enter, the Othello project. As I said in my first post,  I work at an after-school care program at an elementary school, which means I do a lot of games and activities with the kids. One of the big games that the kids always want to play is Othello, and so just out of curiosity I decided to try and program an Othello AI with the...

What makes a horror game scary

Image
HAPPY HALLOWEEN!!!! In honor of Hallows Eve, I would like to cover a topic that I love to talk about. Horror games. Horror seems like a simple topic. You put scary things in a game maybe some blood on the wall, some creaky doors, give them nothing but a flashlight (or camera lens), maybe some things jump out at the player, and the player is scared. Job done right? No. No no no no no no no no. If you make a horror game with this design philosophy, you are making the most boring and played out thing imaginable that will fail at literally it's only purpose: To scare the player. I wouldn't blame you however, as the AAA developer has completely abandoned what horror games actually are and instead now make glorified action games with zombies, and the occasional cheap jump scare where the thing you thought was lying dead on the ground jumps up as you walk by it in a brightly lit room. Granted, these games can be fun, and aren't necessarily "bad" but they are no...

I am working for a time traveler

Image
So today I would like to tell a little story in honor of back to the future day. This is a true story, and happened around a month and a half ago in late August or early September (too long to be a back to the future joke), and I was debating if I should blog about it as I was still working for the guy, but now as the project is coming to a close, and I doubt I am getting paid anyways, I don't feel bad at all posting this to the internet. I am working for a guy who thinks he is a time traveler. I really wish I was making this up, because that would mean he isn't bat shit insane, and I would still probably get paid for this project, but unfortunately that is not the case. Let me start from the beginning. Last year along with graduating from my normal high school, I also graduated from a half day technical school I was attending as well (which I won't name due to the contents of this story). I was studying computer programming, and (it's hard to say this humbly) I w...

The 3 types of indie developers you will work with

Whether you are a freelancer like me working on a project, or are leading your own project, you are going to see these 3 types of indie developers, if you are not one yourself. 1. The Dreamer -These people tend to be really young (like I'm talking 11-13), pretending online to be much older. They will start a project with dreams of becoming the next <insert AAA game that cost millions of dollars to make here> and truly believe they can do it after they saw the most recent Unreal Engine demo trailer and downloaded it themselves (but curiously have never seemed to actually open it). The have these grand visions of stories and explosions that will make your head spin. I was one of these, and have accidentally worked for a short time with one. It's usually best to just leave the project, but stay in touch. Most of the time they will calm down in a few years, and get an ACTUAL game project going, while maintaining a lot of the same drive and determination. 2. The Slacker ...