Questions tagged [gomoku]
38 questions
1
vote
1 answer
Method for obtaining speed up on computer decision in C
I'm trying to figure out the algorithms to play Gomoku(5 by 5 version of tictactoe) with computers.
In this case, I found that the most commonly used algorithms are Min-max(or Alpha-beta) but these are too hard for me to handles.. So I decided to…

omfg
- 45
- 3
1
vote
0 answers
Evaluation Function Not Working
I'm trying to evaluate a Gomoku Board (8x8) where I have to get 5 in a row. I can't seem to figure out why my evaluation function is not working. Is there an easier way to write this rather than have to write loads of if statements?
public int…

TheRapture87
- 1,403
- 3
- 21
- 31
1
vote
1 answer
Saving data internally in Android messes up my data
I'm currently working on a game, where I need to create a transposition table for my AI. I implemented Hashtable so that the key to the Hashtable is a state under consideration and its corresponding value is the optimal next move.
However, when I…

sk1ll3r
- 295
- 4
- 15
1
vote
2 answers
Pinch zoom/double tap gesture in an Android game
I'm currently creating a game (Gomoku) where user needs to input his moves to a square grid of 15x15. I don't have much experience with GUI so I thought a good way to do it would be to create a lot of ImageViews, corresponding to each individual…

sk1ll3r
- 295
- 4
- 15
1
vote
1 answer
Drawing an oval on JButton when clicked
I've started working on a project for my Java class - LAN gomoku/five in a row. The game board is represented by a 2-dimensional array filled with buttons (JButton). With the event handler (class clickHandler) I want to draw an oval on the button…

Kit
- 11
- 1
- 3
0
votes
0 answers
count not increasing above 2 in checkWin for gomoku
so i've been trying to get the checkWin method for an bot to use, BUT the win condition wont trigger no matter what
public boolean checkWinner(int player) {
int[] lineX = { 1, 1, 1,1};
//int[] lineX = { 1, 1, 1 };
int[] lineY = { 0, 1,…

Adarkai CV
- 1
- 1
0
votes
0 answers
Why does Piskvork keep sending END to my bot?
I'm currently trying to make a bot for the game of Gomoku, using Python and the Piskvork manager (which uses this protocol : https://plastovicka.github.io/protocl2en.htm). Basically the manager when starting my bot keep sending him the END command…

Thomas Gireaudot
- 13
- 3
0
votes
0 answers
c++ Gomoku board not filling all positions of second algorithm
I am a relatively new to coding and new to stackoverflow. I am creating a game of gomoku, where need to get five pieces in a row to win the game. I have initialized the board, 2d array, all to zero at beginning. The board size is based from an input…

Gabriella
- 23
- 5
0
votes
1 answer
Minimax / Alpha Beta Algorithm - Finding the AI's move in Gomoku
I understand that a Minimax decision tree is a good approach to implementing an AI for a board game. Currently, I am trying to implement a game called Gomoku (5 in a row). But there is one thing that I am confused about:
I've looked around and it…

jyt
- 15
- 2
- 5
0
votes
0 answers
gomoku AI algorithm
The gomoku AI algorithms that I could find has 'weight's so the AI can found where the most appropriate place is.
However, I could not figure out even what the 'weight' is, and also how to get the weight.
Does anyone can explain to me what the…

user5876164
- 471
- 3
- 15
0
votes
0 answers
How to get the real position of WinForms buttons?
I am programming a small two-player game called "GoMoku" at the moment. It's just like "connect 4" with the difference that you can set the stone everywhere on the field.
I realized it with some buttons which I create with a for-loop and set the…
0
votes
1 answer
Java gomoku minimax
I'm trying to create a strategy that will play against human or another strategy for the game Gomoku. I already have some kind of minimax function, although i don't quite understand how does it work and i also have a getscore function, which should…

holyfoxx
- 9
- 5
0
votes
0 answers
Gomoku Evaluate Function in java
I have implemented a Gomoku Player class that uses alpha beta pruning to select the best possible move for the computer, but I am having trouble working out how to write the evaluation function to correctly score each position on the board.
I have…

batussi
- 55
- 1
- 6
0
votes
1 answer
Ruby count duplicates in diagonal rows of matrix
I'm implementing gomoku game in Ruby, this is a variation of tic-tac-toe played on 15x15 board, and the first player who places 5 O's or X's in horizontal, vertical or diagonal row wins.
First, I assigning Matrix to a variable and fill it with…

basedtho
- 457
- 1
- 5
- 11
0
votes
1 answer
Gomoku Board representation
I'm working on a Gomoku game and I need an efficient data structure to store the boards state,
I've thought about storing it in a 2D array, but I'm sure that there is a more efficient way.
Thanks

YonBruchim
- 101
- 6