coding for the reversi

anyone can guide me how to display the reversi board?
Last edited on
Display on what ? Console window ? If so you can check this: https://inventwithpython.com/chapter15.html

Edit: Here's a c++ implementation: https://github.com/jsmreese/reversi
Last edited on
i want to coding a reversi game without graphic which can play in cmd prompt...
Yeah the second link is what you're looking for.
but it's too complicated for me to use that console...
1
2
3
4
5
6
for (unsigned i = 0; i < 8; i++){
	for (unsigned j = 0; j < 8; j++){
		std::cout << "|_";
	}
	std::cout << "|" << std::endl;
}


It looks like this:

|_|_|_|_|_|_|_|_|
|_|_|_|_|_|_|_|_|
|_|_|_|_|_|_|_|_|
|_|_|_|_|_|_|_|_|
|_|_|_|_|_|_|_|_|
|_|_|_|_|_|_|_|_|
|_|_|_|_|_|_|_|_|
|_|_|_|_|_|_|_|_|

You can play around with ascii characters for more pleasant look.
i have designed the board ,the play game part i need some help
Topic archived. No new replies allowed.