Sign in

I’m doing “chapter 2” on HashNode.

No particular reason.

I don’t think HashNode has an article limit.

The link is: https://blake.hashnode.dev/fx-my-life-22-getting-on-the-grid

OK, let’s get started with just getting our setup…uh…set up. We need a tile to represent the game, which I’ve been calling “Dungeon Slippers”. …

OK, I’m excited to get on with the next game, so let’s talk about what it’s going to be. I don’t have much time to play games these days, which tends to limit my playing when I do have time to the sorts of games that can be picked up…

OK, I’m sufficiently bored with this to want to move on. I’m going to push this up to Github at https://github.com/dsbw/fxgames.git.

For future adventures, I’ll do the following: I’ll start a new branch for the game we’re working on, and for each entry in the blog, I’ll commit the changes…

Let’s wrap up the “backend” of our tic-tac-toe game by putting in tie-games and making some “artificial intelligence”. Or as I have it in the title, Artificial “Intelligence”. …

I feel like we’re coming to the end of our tic-tac-toe adventure. There are some graphical niceties to add in, maybe an “AI”, some polish, etc. But I notice that my “dyslexia” has struck again. I’ve mixed up the columns and rows for the drop-check code such that…well, look:

You…

Last time, we left things hanging a bit because we wanted to save our game data and it was becoming too complicated — or as Rich Hickey put it in his seminal talk “Simple Made Easy”, complected. …

We should have a way to save our game and subsequently, a way to load it, which would wrap up our tic-tac-toe adventure, but that I think necessitates some way to name the players. After all, it wouldn’t do to have Joe and Fred save their game only to have…

So, the first thing we want to do with our tic-tac-toe board, administratively speaking, is allow it to be reset. Although the meat of this is not specifically FX, because we’re just resetting values, it does cross over in some ways. …

So, we want to declare a winner. Traditionally this is done by slashing a giant line through the grid, with the loser running to momma crying.

Or maybe you grew up differently.

Now, you can’t just draw a line because of course you can’t. That would be too easy. Think…

Blake

I am a poor, wayfaring stranger, traveling through this world of woe.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store