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 :)
No comments:
Post a Comment