Saturday, 30 November 2013

Uh oh.

I've run into the hardest part of checkers: the recursion. I understand backtracking algorithms and how it works, and I can see how it applies to Checkers, but I don't know how it would apply to the other user. In other words, I know how I can do it for the computer playing, but in order to judge how well the user move is, that, I'm not to sure yet.

For one, I do know that I need to make a two dimensional array rather than one long one dimensional array because I'm going to have to change the coordinates constantly.

As Ryk suggested, the -1 could represent that after a move, where the computer would be at a disadvantage because the player could move the pawn and eat it.

A 0 could represent one possible jump.

And just like the backtracking maze, that's a similar outcome.

I'm still not too sure how to find out whether the user is going to eat the computer if I move to a certain spot.

Friday, 22 November 2013

Pawns Finished (black)

I mean, it isn't the best photo-shop. It's going to be relatively small on the screen, so I am not too too worried about the "ugliness" or the "prettyness" of the photo-shop. But hey, at least Harry's head is on there :) 

And then of course, you must not forget about Voldemort! They are fighting...in a game of checkers :( Unfortunately it isn't Ron and the Chess Set, but hey. It's fandom related.


Wednesday, 20 November 2013

Colour Change and Board

This is colour coded based on what square the board is on. The numbers are just for future reference, where I can find which numbers will be blue and which numbers will be purple...

The index numbers on each of the squares.
Well if you haven't yet noticed, yeah. My board will be blue and purple. Specifically light blue and light purple! You see, that's just the lives of teenagers these days. Bright and flashy colours. If I had to choice, don't worry, I would do neon green and neon yellow. But I suspect my teacher will slightly hate me for it, so I won't put him through that misery. Otherwise he might be harder in marking. Trust me though, after it's done, I'll temporary change it to neon colours to see just how well it looks. I look forward to seeing the final result. But this...this is only the beginning....

So I've programmed the board (LOL). It looks almost too girlish. I'll debate on changing it later. It's just a matter of taking the default square in pages and changing the colour then changing one little line of code which isn't too too hard to do.
This is what the board currently looks like. Yeah, I know. So much blue and purple but the colour can always change later, haha :) 

From what I understand....

From what I half understand...is that I have to use recursion to check the "good" moves in the coding. So if one move is good, then it can be assigned a value of something 0-3 determining which is the best move to play.

Constant Declarations:

0: There's nowhere to move.
1: MOOOVEE! Otherwise the opponent is going to take your pawn!
2: Computer's move doesn't accomplish anything because the player can take your pawn.
3: Computer's move will take one opponent's pawn.
4: Computer's move can take 2 opponent pawns.
5: Get to the end of the board and become a king!

In terms of whether they can move backwards or forwards, that depends on whether they are pawns or kings.

Anyways, I'm going to start making the board really wacky. I should start on editing the pawns (listed on the first post). I guess I'll start with a normal black and red one, and the pawns will be unique...I think that's a decently okay idea. I mean, I hope it's creative enough and more "me" enough.

FANDOMS :)

Friday, 15 November 2013

Check! Check!

Okay. So I've finally chosen +Vivian Luu!

Anyways, I'm going to program a game of checkers in java. But it's not going to be your normal little checker game. Given the name, it has to be fandom related, eh?? So this is what I'm thinking. The tiles will not  be red and black. That's boring.

But in terms of the little red and black pieces, you'll have a choice between:

1. Merlin vs Morgana (Merlin BBC)
2. Harry Potter vs Voldemort (Harry Potter)
3. Sherlock vs Moriarty (Sherlock BBC)
4. Percy Jackson vs Kronos (Percy Jackson)
5. Peter Bishop vs Observers (Fringe)
6. Temperance Brennan vs Christopher Pelant (Bones)

^I will add 1 or 2 to that through the course of the programming thing.

Anyways, going to start at the flowchart :D