Questions tagged [reversi]
52 questions
-1
votes
2 answers
Searching for other pieces in C++ reversi game
I am making a Reversi game in C++ but I am having trouble figuring out how to check for consecutive enemy board pieces once the player places their piece on the board.
The board is an 8x8 2D array with values 0, -1, or 1.
-1 is a White piece,
1…
-1
votes
1 answer
What is the meaning of static size_t length(const char_type* __s) {return strlen(__s);}? How do i solve it?
I'm doing an assignment using c++. I'm writing a reversi game using Xcode. I get the thread above when I place a marker in the top left box i.e. (1,1). I just want to know what does it mean and how can I solve it. Thank you. P.S the thread pointed…

Mahmoud Dawlatly
- 87
- 10
-1
votes
1 answer
calculating the center of a board
Am trying to print an Reversi broad given a user defined rows and columns. Am having a bit trouble with finding the center four pieces in implementing and printing the board. Here is what I have so far:
def new_game_board(columns,rows) ->…

captain morgan
- 41
- 6
-1
votes
1 answer
Matlab Reversi 'valid move' check
Having issues with my move checker currently, it seems that the failsafe I put in my code to make it not look outside the bounds of the matrix isn't working, any suggestions?
There is also the issue that it doesn't seem to be working (i.e. I am…

William Napier
- 27
- 2
- 9
-1
votes
1 answer
Delphi minmax HashTable debug - closed
Solved ,stuid bug
function Tform1.Boardtostr(const aboard:Tboard):string;
var a,b:integer;
begin
result:='';
for a:= 1 to 8 do
begin
for b:=1 to 8 do
begin
if board[b][a] = -1 then //<--should be aboard instead of board
…

user1444684
- 19
- 2
-2
votes
1 answer
python3 reversi game code
I have a 2 files for the reversi game for python 3. My first file is called reversi.py.
It implements (a) the high level control of the game play (e.g., getting moves from the computer player and the human player, determining whether a player runs…

Romulus
- 138
- 2
- 12