You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello everyone who joined this discussion. I recently started programming in C++, so I don't understand many terms. I need to write a checkers project. I wrote the board display and moved on to writing the game logic and rules. I encountered a problem that I cannot combine the logic, board, and the main file that displays it all. The problem is that after the player makes a move (enters it in the console), I need to check their move for correctness. Accordingly, I should send the received data to the logic class, and also for checking, I need a board (an array with the current position of the checkers), which I also need to pass to the logic. And because of this, the program doesn't work. Who can please point out the mistake, I would be very grateful. And immediately sorry for the messy code) checkers.zip
Guidelines
I have read and understood this category's guidelines before making this post.
Programming HelpProgramming languages, open source, and software development.
1 participant
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Body
Hello everyone who joined this discussion. I recently started programming in C++, so I don't understand many terms. I need to write a checkers project. I wrote the board display and moved on to writing the game logic and rules. I encountered a problem that I cannot combine the logic, board, and the main file that displays it all. The problem is that after the player makes a move (enters it in the console), I need to check their move for correctness. Accordingly, I should send the received data to the logic class, and also for checking, I need a board (an array with the current position of the checkers), which I also need to pass to the logic. And because of this, the program doesn't work. Who can please point out the mistake, I would be very grateful. And immediately sorry for the messy code)
checkers.zip
Guidelines
Beta Was this translation helpful? Give feedback.
All reactions