Building to standalone is super easy. Just compiling takes forever as always.
Showing posts with label TicTacToe. Show all posts
Showing posts with label TicTacToe. Show all posts
More Os and Xs
Previously on STR.
With the -amazing gameplay- sorted out I need to work out the rest of the stuff. This means UI and graphics and possibly sound, and whatnot.
I think it would be great for the game to actually end when a player wins, and to restart after finishing. Additionally I want a line to be shown indicating where the win has occurred and some pop-up text declaring who's won or not. A score counter would be useful too.
With the -amazing gameplay- sorted out I need to work out the rest of the stuff. This means UI and graphics and possibly sound, and whatnot.
I think it would be great for the game to actually end when a player wins, and to restart after finishing. Additionally I want a line to be shown indicating where the win has occurred and some pop-up text declaring who's won or not. A score counter would be useful too.
TacTicToeTwo
This is a continuation from this post. I'll recall, from the that blog post for posterity:
- Player x selects a space on the grid to place their block.
- Game checks to make sure that space is empty.
- Game places block on that space, updates the grid in code.
- Game checks if a 3-in-a-row has occurred. If true, step 5, else step 6.
- Game stops, congratulates Player x on a Win.
- Game checks if all spaces are filled, in which case it is a Draw.
- Otherwise, Game swaps control to Player y, and moves back to step 1 with x and y reversed.
Baby Steps
Unless someone has amazing godlike talent, or are the product of super secret government experiments, of which I count myself as being in neither, it is safe to assume no one can immediately become an expert on things. Now I'm not going to say I'm new to programming, but to make games, like anything takes a lot of practice.
Therefore, with my amateur programming knowledge, questionable art skills and dubious musical capabilities, I am going to attempt for my first 'project' to build something simple. Really simple. Something I shouldn't be able to feasibly mess up beyond all recognition.
So I'll start with good old Tic Tac Toe, aka Noughts and Crosses. And for extra kicks, try to get it working as a simple App on Android (there's a legitimate reason for that!).
Disclaimer: This is written as a semi-tutorial, documenting my own failures and success at getting this working. Feel free to follow along, but don't expect a miracle, and don't expect to learn anything particularly new, or interesting. And certainly do not take this as a standard by which you should go about doing anything. Do not. Donot. Donut.
Therefore, with my amateur programming knowledge, questionable art skills and dubious musical capabilities, I am going to attempt for my first 'project' to build something simple. Really simple. Something I shouldn't be able to feasibly mess up beyond all recognition.
So I'll start with good old Tic Tac Toe, aka Noughts and Crosses. And for extra kicks, try to get it working as a simple App on Android (there's a legitimate reason for that!).
Disclaimer: This is written as a semi-tutorial, documenting my own failures and success at getting this working. Feel free to follow along, but don't expect a miracle, and don't expect to learn anything particularly new, or interesting. And certainly do not take this as a standard by which you should go about doing anything. Do not. Donot. Donut.
Subscribe to:
Posts (Atom)
