Board Representation
Posted: 14 Jun 2006, 08:47
Hi all, my apologies for my dumb question but i'm new to programming in general. I want to create a simple chess engine but i do not have the skill to do so as i'm learning c++ currently. All i want to do for now is find a way to represent the board. I have read Dr. Hyatt's page and decided to use 0X88 board representation but i'm still a little confuse.
For example i would define the board as
Here's my problem and not sure what to do next. Can someone please give me some hints. Thanks
For example i would define the board as
- Code: Select all
int board[128]
- Code: Select all
int piece_color_white = 1
- Code: Select all
int piece_color_black = 0
- Code: Select all
const int pawn = 100
- Code: Select all
const int torret = 500
- Code: Select all
const int night = 300
- Code: Select all
const int bishop = 300
- Code: Select all
const int Queen = 900
- Code: Select all
const int king = 5000
Here's my problem and not sure what to do next. Can someone please give me some hints. Thanks