Connect Four Project Python

Had to make a Python project for a course so I made Connect Four, it was a fun challenge as I haven’t really made that many programs without training wheels before.

The whole game sits within a Class “ConnectFour”.
There are functions to do all of …


This content originally appeared on DEV Community and was authored by twiin0

Had to make a Python project for a course so I made Connect Four, it was a fun challenge as I haven't really made that many programs without training wheels before.

Program in action

The whole game sits within a Class "ConnectFour".
There are functions to do all of the required tasks to make the game work, for example the "print_board" and "index_to_checker" functions that print the Connect Four board by indexing through the board 2d array and converting every value into the required ascii character (0 to ' ', 1 to 'X', 2 to 'O') and printing to screen using an f string.

Link to github repository

In conclusion, I got a lot of enjoyment out of making this project and am looking forward to creating more challenging projects in the future! :)


This content originally appeared on DEV Community and was authored by twiin0


Print Share Comment Cite Upload Translate Updates
APA

twiin0 | Sciencx (2024-09-06T17:48:52+00:00) Connect Four Project Python. Retrieved from https://www.scien.cx/2024/09/06/connect-four-project-python/

MLA
" » Connect Four Project Python." twiin0 | Sciencx - Friday September 6, 2024, https://www.scien.cx/2024/09/06/connect-four-project-python/
HARVARD
twiin0 | Sciencx Friday September 6, 2024 » Connect Four Project Python., viewed ,<https://www.scien.cx/2024/09/06/connect-four-project-python/>
VANCOUVER
twiin0 | Sciencx - » Connect Four Project Python. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2024/09/06/connect-four-project-python/
CHICAGO
" » Connect Four Project Python." twiin0 | Sciencx - Accessed . https://www.scien.cx/2024/09/06/connect-four-project-python/
IEEE
" » Connect Four Project Python." twiin0 | Sciencx [Online]. Available: https://www.scien.cx/2024/09/06/connect-four-project-python/. [Accessed: ]
rf:citation
» Connect Four Project Python | twiin0 | Sciencx | https://www.scien.cx/2024/09/06/connect-four-project-python/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.