Share your repls and programming experiences

← Back to all posts
Connect 4 in Python!
Muffinlavania (1512)

Welcome to Connect 4 in python!

This project I made in an hour, but I like it a lot!
This is the game Connect 4 fully functional!

For everyone who doesn't know this game, it is a game where you drop your token(in this case O or X) in one of the 7 slots, and to win you have to line up your tokens so 4 are touching vertically, horizontally, or diagonally!


Examples of winning cases:
|O|-|-|-|-----|-|X|-|-|-----|--|--|--|--|
|-|O|-|-|-----|-|X|-|-|-----|--|--|--|--|
|-|-|O|-|-----|-|X|-|-|-----|O|O|O|O|
|-|-|-|O|-----|-|X|-|-|-----|--|--|--|--|


Take turns with a friend (Or yourself if you are lonely) making your moves in the board! Say the number slot you want to play your token in(1-7) and connect 4!


Also, I have barely messed around with this game, so if you find any bugs please point them out in the comment section!

Comments
hotnewtop
Muffinlavania (1512)

@17MajorM this is just to give you a notification and tell you that i will be on for like a while, and over the weekend as well
So ye