Simple Gomoku game.
Local 1v1 and Bot mode both included.
Please follow, like, and leave comments!
kashsuks
Check their projects out: Yapper - A slack bot for my channel, Go Games, Buckrise, Neohack - YSWS Site, CPVim, CPCli, CFCli, Domain Expansion (Personal Site)
Guerra
Check their projects out: Learning C, History
Once you ship this you can't edit the description of the project, but you'll be able to add more devlogs and re-ship it as you add new features!
In my latest update, I've added a readme file for instructions. It explains the game's features and how to play.
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.
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.
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
Added a 1-minute timer. A player lose if they do not make a move within the time limit. Revised some GUI elements
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.
Cool!