stardance has been extended another month! the new deadline is october 31 :)

You are browsing as a guest. Sign up (or log in) to start making projects!

Connect 5 vs AI in Roblox

  • 3 Devlogs
  • 11 Total hours

I like pushing limits of my capabilities and this is one of the projects where I can do that. Roblox is not built for engines but i am curious if I can make it work.

Ship #1 Pending review

Connect 5 vs AI in roblox ❌⭕

In this project i connected my two passions which are programming and mind games.
The goal of this project was actually to test my capabilities and the limits of roblox studio. I thought that it would be impossible but I got it working somehow lol.

Gameplay

When you join the game you touch the green part next to the board and a GUI shows up, which prompts you to chose one of the 2 gamemodes:

  1. Me vs AI - this is the gamemode where you can actually play against the AI
  2. Me vs Player - in this gamemode you can play against real players.

Your goal is to connect 5 stones and win!

The limitations

Roblox has many limitations which made my journey harder and the AI dumber… they limit the think time and they limit the server resources. Combined the restrictions create a great challenge for creating a working AI engine. The engine thinking is pretty slow…

✨Good luck on beating the AI! (it should not be that hard lol :D )

  • 3 devlogs
  • 11h
Try project → See source code →
Open comments for this post

26m 15s logged

Tic Tac Toe vs AI in roblox

This is the last devlog before shipping!
I fixed some bugs with lagging and edge cases.
I made the exit button in the gamemode UI actually work so now you can leave the board :D

0
0
61
Open comments for this post

6h 20m 1s logged

TIC TAC TOE vs AI in Roblox progress
From the last devlog a lot happened. The most significant update is that the AI is finnaly working. It is a bit dumb but there are lots of limitations that are pretty hard to bypass. The biggest problem is Roblox´s execution time which limits the time of the AI calculation. I have already tried bypassing it but it still have some limitations.

My next main goals are to make the AI work a bit better (more effective), make the other gamemodes work and improve the UI and overall the game feel.

See you at the next devlog! :)

0
0
72
Open comments for this post

4h 15m 29s logged

Devlog#1 - Game mechanics and preparation

I am building a project that will not only test my skills but also the limits of Roblox. My goal is to make a classic connect 5 game (It is actually called Gomoku) but you can also play against an AI (engine like stockfish for chess)


My progress

Since this project will not be easy I have to build a strong foundation otherwise this project will fail! I have started with basic functions:

  • System for joining the game (Important for player vs player games)
  • Choosing game mode (player vs player/player vs AI)
  • Board for playing the game (It is 15x15)
  • Placing stones/symbols
  • Game logic (checking for wins)

Problems

So far there was not a lot of problems but I realized that I quite misunderstood how does the modulescripts work when they are used both on client and server side. That was so far the biggest problem i had to overcome but it led to learning new stuff so it was worth it!


My plans

Most of the main game mechanics are done but I have to work on usability because it is nowhere near being ready to play by other people. Here are things i would like to implement until my next devlog:

  • Making the game responsive
  • Dummy AI (It will pick random moves so I can build the logic around it)

Conclusion

This is just the beginning of this project and it will not be easy. Making the engine actually efficient so that it can play better moves will not be just a programming challenge but also a math/logical challenge since i do not have much experience with engines.
Wish me luck and stay tuned! ✨

0
0
10

Delete project?

Are you sure you want to permanently delete this project? This action cannot be undone.

All devlogs, followers, and associated data will be removed.

Followers

Loading…