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

Connect 4 180

  • 4 Devlogs
  • 24 Total hours

Connect 4 but every 6 turns the board flips

Ship #1 Pending review

I made connect 4 but the board flips every 6 turns, this is my first python project that uses imports something from another file so I had to learn how to do that, getting the board to accurately flip was the hardest part of this project, this is my first time using pygame so I had to learn how to display text, images and sounds, in order to run the project you need to run the main.py file

  • 4 devlogs
  • 24h
Try project → See source code →
Open comments for this post

9h 2m 42s logged

Finished the game, added a settings menu which allows you to select different options such as, if you can see the countdown, how many turns in between flips, and if the turns between flips should be random, also fixed bugs where the player or ai could drop pieces while other pieces were falling and fixed bug where a false win would be detected

0
0
4
Open comments for this post

4h 33m 25s logged

Finally got the AI to work, for a while the AI would just go filling roles from left to right without making any smart decisions or it just wouldn’t make a decision at all. I realized the problem was that one of my numbers that should’ve been negative was positive, whoops. I was also able to get board flipping to work so now after 6 turns it will flip.  What I am adding:  settings menu to change how often the board flips.  Animation of the pieces falling.

0
0
2
Open comments for this post

6h 12m 42s logged

Added - win detection now fully working, main menu, and updated visuals. I am currently working on getting the board to flip and an AI to play against.

0
0
2

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…