Questions tagged [othello]

Use the Othello tag when question is related to the game Othello. The game was originally named Reversi.

Because of the simplicity of the game and reasoning needed to model solutions to the game in software, it is popular as a learning exercise or homework.

There are thousands of repositories on GitHub for Othello or Reversi

References

27 questions
0
votes
1 answer

Othello bot written in C picking (0, 0) indefinitely despite being an invalid move

I am attempting to make an Othello game in the console where a user can play a bot in C. The bot works by assessing the "score" of a given position on the board as shown in the getBestMove() function. For some reason the program just outputs this…
0
votes
1 answer

Othello MVC programming is legal move method

I have a project in a CS class where we make Othello in an MVC format, I've tried making an is legal move in it, but from what I've seen it only looks upward on the board. I've tried putting it into an array with all the possible moves you can make…
0
votes
0 answers

Issues making a list of every legal subsequent board state from the current board

I'm trying to make an Othello AI, currently trying to implement MiniMax. I've created a board object, from the current board I want to create a list of all "child" boards, these are copies of the current board but with each having one legal move…
0
votes
1 answer

How to implement tree made from possible moves in game Othello (Reversi)

I need help with making tree from possible moves in game Othello, on which I will later use MiniMax algorithm. Game is played in Player vs AI mode and I am always "1" on board and AI is always "2" on board. This is how my current function for…
Milos Stojanovic
  • 172
  • 2
  • 11
0
votes
1 answer

How to make custom hash function for hashing matrix (Othello board) to number

I have to do project for which I need custom function for hashing matrix. Project is about Othello (Reversi) game which means that I need to hash fixed 8x8 matrix. This is how initializing matrix looks like: board = [['.' for x in range(8)] for y in…
Milos Stojanovic
  • 172
  • 2
  • 11
0
votes
2 answers

How can I construct the Othello board array I am attempting to construct in C?

I am attempting to write a text based Othello engine in C as a way of starting to learn C. I have already got this working in higher level languages so have decided to give it a go in C as the basic logic is correct and working. I am trying to…
0
votes
1 answer

can't remove element from list although it exists - Reversi

I'm trying to write a simple Reversi game in Python. In my code have two main lists: takenred - which contains the places occupied by the red player takenblue - which contains the places occupied by the blue player After every move of a player I…
0
votes
2 answers

Python/TkInter - Method to find which button was pressed out of a grid of buttons made by a for loop

I'm trying to make a very simple Othello iteration with Tkinter and Python and have an idea however I don't know a method to retrieve which button is pressed (through an integer?). I have a made a grid of buttons using for x in range(8): for y…
0
votes
2 answers

Expected type: String, Actual type [[Char]] error message in Haskell

I'm working on a Haskell implementation of the board game Othello and still at the beginning of the process. I'm currently trying to create a function that will display the board. At the minute I am simply trying to get the function to output the…
TheClash
  • 15
  • 3
0
votes
1 answer

Index error: "out of bounds" python Othello

I`m getting index error out of bounds even though I think I´ve made sure it doesn´t send in anything that is out of bounds. I´ve added a print-function and it does not print out 4, as the error is complaining about.. So not sure what to do here.…
0
votes
1 answer

How to dynamically remove nodes in JavaFx

@FXML AnchorPane gamePane; public void gameStart() { if(!Started) { board = new Board(); stones = new Circle[8][8]; newTurn(); applyBoard(); Started = true; } else { DestroyBoard(); //…
SunBathe
  • 119
  • 2
  • 3
  • 9
0
votes
1 answer

Parameter optimization for board game AI

I've created a small AI program which can play Othello. The algorithmn I use (MCTS UTC) has a parameter where I can tune the exploration vs exploitation ratio. This is a single float value ranging from 0 to 10 (infinity is possible but high values…
Richard Deurwaarder
  • 2,023
  • 1
  • 26
  • 40
1
2