Connect Four Terminal Game

This is a terminal game that I have developed using basic python as a portfolio project in my Computer Science CodeCademy career path. I chose thsi game as it seemed challenging for me to come up with the proper data structures and the logics behind it…


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

This is a terminal game that I have developed using basic python as a portfolio project in my Computer Science CodeCademy career path. I chose thsi game as it seemed challenging for me to come up with the proper data structures and the logics behind it.

Game Main Menu

I have taken 6 lists with 7 empty spaces representing the rows as the original game has a 6x7 board. These 6 list are then in another list called board. Any change in the board is done via different functions, but all changes can be seen in the "board" list. There is also a function to properly print the contents of the board using two nested loops.

You can find the different steps I've taken and the code comments on gitHub.


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


Print Share Comment Cite Upload Translate Updates
APA

ma5hti | Sciencx (2023-03-12T05:32:08+00:00) Connect Four Terminal Game. Retrieved from https://www.scien.cx/2023/03/12/connect-four-terminal-game/

MLA
" » Connect Four Terminal Game." ma5hti | Sciencx - Sunday March 12, 2023, https://www.scien.cx/2023/03/12/connect-four-terminal-game/
HARVARD
ma5hti | Sciencx Sunday March 12, 2023 » Connect Four Terminal Game., viewed ,<https://www.scien.cx/2023/03/12/connect-four-terminal-game/>
VANCOUVER
ma5hti | Sciencx - » Connect Four Terminal Game. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2023/03/12/connect-four-terminal-game/
CHICAGO
" » Connect Four Terminal Game." ma5hti | Sciencx - Accessed . https://www.scien.cx/2023/03/12/connect-four-terminal-game/
IEEE
" » Connect Four Terminal Game." ma5hti | Sciencx [Online]. Available: https://www.scien.cx/2023/03/12/connect-four-terminal-game/. [Accessed: ]
rf:citation
» Connect Four Terminal Game | ma5hti | Sciencx | https://www.scien.cx/2023/03/12/connect-four-terminal-game/ |

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.