Gomoku

Gomoku

6 devlogs
34h 13m
•  Ship certified
Created by xuhan

Simple Gomoku game.

Local 1v1 and Bot mode both included.

Please follow, like, and leave comments!

Timeline

Ship 1

1 payout of shell 47.0 shells

xuhan

3 months ago

xuhan Covers 6 devlogs and 34h 13m

In my latest update, I've added a readme file for instructions. It explains the game's features and how to play.

Update attachment

Probably not my most productive day. I kept on trying to make a perfect GUI for the game but I just cannot get it to work. In hindsight, I definitely took too long experimenting with different looks. After all, I still settled with a more classic UI that focuses more on functionality than being fancy. I've also added a back button so that you can leave an ongoing game if you want to.

Pat Pat 3 months ago

Cool!

xuhan xuhan 3 months ago

Honestly, Java Swing just really should not be your first choice when it comes to building a fancy UI, which I should've realized much earlier. It’s actually a nightmare to work with 😭. That said, my next game will still be using Java, but this time a first-person shooter game (kinda). Check it out here: https://summer.hackclub.com/projects/1456

With a grand total of 6 whole hours, the Gomoku bot is finally completed!!! I'm not gonna lie, it's more likely to beat me than I am to beat it. I've won a few times, tho.

There are now two buttons in the start screen, one for local 1v1 and another for playing against the bot. Both have time limits, sound effects, etc.

I've also organized the files a bit so that the images and sounds now belong to an assets folder.

Guerra Guerra 3 months ago

Good job bro

xuhan xuhan 3 months ago

more GUI improvements will come soon! stay tuned for crazy vfx (or not)

Currently working on a smart Gomoku bot! Hopefully it will be added in the next commit. I found a JavaScript implementation from Github (https://github.com/lukesalamone/gomoku-2049), which uses minimax algo and alpha-beta pruning. I'm still trying to fully understand and utilize them, but work is being done! :D

Update attachment

Added a 1-minute timer. A player lose if they do not make a move within the time limit. Revised some GUI elements

Update attachment
xuhan
xuhan
11h 55m 3 months ago

This is a Gomoku game that I built fully in Java. In the last 2 days or so, I did:
1. understand the rules of the game and correctly implement in code;
2. use Java Swing and AWT to build a working GUI for the game;
3. learn and use the Java Sound API to add sound effects to the game.

Bashir Bashir 3 months ago

it is amazing bro

xuhan xuhan 3 months ago

Next step will be time limits and hopefully player vs bot mode!