can anyone else help me, I am really working hard on solving this problem, I am making progress very slowly but surely.
checkers
6 minutes ago, phil67rpg said:can anyone else help me, I am really working hard on solving this problem, I am making progress very slowly but surely.
I've already offered to review your source code to provide feedback, I'm not sure what more you're looking for here. Checkers isn't a complex game to make and you haven't shown enough code for anyone on this forum to provide feedback.
Either way I wish you the best in finding a solution to your problem. Maybe another member can assist you.
Programmer and 3D Artist
void black_piece()
{
if (board[5][1] == 1)
{
drawScene_move();
}
if (board[4][0] == 1)
{
drawScene_move_one();
move_piece = true;
}
if (move_piece == false && board[4][2] == 1)
{
drawScene_move_two();
}
}
void mouseMotion(int x, int y)
{
if (y <= 180)
{
y = 180;
}
if (x <= 240)
{
x = 240;
}
if (y >= 420)
{
y = 420;
}
if (x >= 560)
{
x = 560;
}
board[(y - 180) / 30][(x - 240) / 40] = 1;
cout << x << " " << y << endl;
black_piece();
glFlush();
}
here is my updated code
42 minutes ago, phil67rpg said:well rutin I solved my problem, thanks for all the help
I'm glad you solved your problem, but I didn't exactly help you on this.
I have some advice for you in future however. When I was asking for your source code it wasn't just a snippet I needed, but your project file. This allows me to do a number of things.
1. To check on how your game loop and time step is setup
2. See how you're handling events, input, logic, and draws
3. Step through what is actually happening based on what you're trying to accomplish
4. Provide some constructive criticism on your actual code, and how you approach problems
When you're working on games like checkers there is no reason to not post your source code for feedback if someone is willing to review it. I'm only saying this because I had seen your prior posts and it looks like you've been lingering at a similar level in programming for several years, and could greatly benefit from some constructive feedback to improve how you solve problems.
I wish you the best in completing this project.
Programmer and 3D Artist