DEV Community

Santiago Díaz
Santiago Díaz

Posted on

My First Terminal Game

I just programmed my first python terminal game. I like to learn, and I hope I continue learning new interesting things the rest of my life. This is the start of my journey.

Here it is! Is a game based on "CONNECT4".

GitHub logo Santie-a / Portfolio-Project---Python-Terminal-Game

Portfolio Project - Python Terminal Game

Top comments (3)

Collapse
 
kaamkiya profile image
Kaamkiya

Really good game! Some suggestions:

  • Make the name of the repo shorter? It's kind of hard to clone it because it's so long.
  • Instead of printing your board like this:
for row in board:
        print(row)
        print(" ")
    print([str(i) for i in range(1, 8)])
Enter fullscreen mode Exit fullscreen mode


,
to print without the [ and ]s, use print("".join(row)) to join all of the characters into a single string.

Congrats on making your first terminal game! 😀

Collapse
 
santie profile image
Santiago Díaz

Thank you for your suggestions! I will consider them for future projects (and refactoring the current code if I have some time)

Collapse
 
kaamkiya profile image
Kaamkiya

No problem :)