Inspiration

This game is quite similar to Tic‑tac‑toe except that the winner needs to have 5 consecutive chess pieces on the board. It was very popular back to my school time and we just took it as leisure recreation. Since we just started 15112, we think maybe we could make such a game using the knowledge we know so far. And we just gave it a try.

What it does

We can play GoBang in python, whether with a friend or just with yourself or with AI. And it will automatically print the winner if requirements are met.

How we built it

We built it in python with the help of 112_Graphics.

Challenges we ran into

It took a little more time than estimated to build the scorer function (the function to return if you meet the requirement to win), especially when it comes to the nested loop. But we made it anyway.

Accomplishments that we're proud of

We are excited that we have successfully created an AI-mode in our game, so the player can play with a machine. We have carefully designed the strategy behind the machine so that it can choose where to put the white dot to prevent the active player from winning! Though the logic is a bit complicated, we are proud that we finally made it!

What we learned

The most important thing we have learned is how to cooperate effectively with each other. There are situations where our thinking patterns vary a lot, but we tried to understand each other and listen to each other's thoughts. Besides cooperation, we have learned how to design a game strategy for the machine to play, and how to efficiently create the interactive game with 112_graphics.

What's next for GoBang Game

Now our game strategy for the machine to play is flawed. Specifically, the machine cannot make the best decision when encountering some situations. So the next step for us is to perfect the strategy and make the AI-mode more challenging!

Built With

Share this project:

Updates